How Gevme works with other vendors

Gevme has Github integration.

Developer to connect Github repo then vendor can make changes and sync the changes accordingly.

Vendor needs to Pass Gevme server domain for whitelisting for Leadership board host.


PlayCanvas Integration

Including the source files

Upload the javascript files provided to playcanvas project assets.

You will have access to 4 scripts in the playcanvas script component.

1.    cameraPath

2.    gevmeBlocks

3.    lookCamera

4.    venueEditor

Using the javascript files

Add a script component to the Root entity and attach 2 js files, “venueEditor” and “gevmeBlocks”. No additional configuration is required.

Camera Control

Add a script component to Camera entity (name must be “Camera”) and attach js files “lookCamera”. “cameraPath” is optional.

Adjust the parameters as needed.

-    Min Zoom / Max Zoom = minimal and maximum fov camera will zoom using mouse scroll wheel. Set the same value to both to disable zoom.

-    Camera FOV = limit the camera angle rotation to 90, 180 and 360 degrees.


cameraPath

This is to achieve the effect of flying camera on initial load. It requires an additional entity to define the camera paths. The first child entity is the initial camera position and rotation. The last child entity is the final camera position and rotation which must be the same as “Camera” entity position and rotation.

-    Path Root = Parent entity to hold the paths information (CameraPaths in this example)

-    Duration Secs = How long it takes in seconds to travel from first child entity to final entity.

 

Defining the 3D panels to display the content blocks

These are the 3D entity Plane which will interact with the venue editor.

The name of each panel must be unique and alphanumeric only. Add “GEVME_BLOCK” as a tag to the entity which will be detected by the venue editor. These panel names are used in template.json as keys for the “predefinedBlocks”.

Scripts loading order

Under playcanvas scene settings, arrange the scripts loading order as follow.


Loading screen (Optional)

Use a custom loading screen script or the included script “gevme_loadingScreen.js” under scene settings.

Exporting the project

From playcanvas version control, go to builds & publish screen and download as zip.

**Important**: Uncheck Concatenate Scripts

Attendee Profile

GEVME Virtual supports a top level object called “GEVME”. With this object we can get information about the page, project.and logged in user.


How to get user fields

window.GEVME.user returns the user object. In this object you can find company, email, firstname, id, jobTitle, lastname, projectId.


{

    "id": "M4GktXYw360i3aDrcademo",

    "firstname": "John",

    "lastname": "Doe",

    "email": "johndoe@acme.com",

    "jobTitle": "CEO",

    "company": "ACME Inc",

    "projectId": "64001f6b4576610145893d788769adfuy"

}