Navigation Surfaces

A navigation surface (sometimes called NavMesh Surfaces) can limit which surfaces (within the 3d model) the avatar is allowed to teleport or walk to.

navigationSurfaces

Sometimes environments are complex and have many surfaces the user can walk to or teleport to. We can limit which surfaces (within the 3d model) the avatar is allowed to teleport or walk to by using the property navigationSurfaces in the metadata field.

For example, for the Exhibition Hall model (https://cache.learnbrite.com/_assets_/models/learnbrite_exhibition_hall_v2/exhibitionhall.gltf)

The value for the metadata property is:

{"navigationSurfaces":["floor_1", "floor_2"]}

Note: This is only possible if the environment has individual meshes for the inner parts, like floor, ceiling, walls, etc.

Example of making materials transparent and having a navigationSurfaces

{
 
"materialPropertiesOverrides": [
   {
     
"materialNames": [
       
"Glass_roof",
       
"glasswall",
       
"glassRoof"
     ],
     
"overrides": {
       
"transparent": true,
       
"opacity": 0
     }
   },
   {
     
"materialNames": [
       
" Metal white"
     ],
     
"overrides": {
       
"roughness": 0.8,
       
"metalness": 0.3,
       
"autoEnvMap": true
     }
   }
 ],
 
"navigationSurfaces": [
   
"floor_1",
   
"floor_2"
 ]
}

How useful was this article?

Click on a star to rate it!

We are sorry that this article was not useful for you!

Let us improve this article!

Tell us how we can improve this article?