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.
Including the source files
You will have access to 4 scripts in the playcanvas script component.
Add a script component to the Root entity and attach 2 js files, “venueEditor” and “gevmeBlocks”. No additional configuration is required.
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.
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
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.
"company": "ACME Inc",