Occlusion
Enable occlusion in your AR apps using the MultiSet Map mesh
Last updated
Was this helpful?
Enable occlusion in your AR apps using the MultiSet Map mesh
Last updated
Was this helpful?
To add occlusion in your AR scene using mesh, follow the below steps
The Map Mesh Handler provides runtime management of mesh occlusion through a dedicated "Enable Occlusion" option. This feature optimizes the handling of raw meshes and their occlusion materials during application sessions.
The Map Mesh Handler script performs two primary functions:
Downloads raw meshes as needed during runtime
Applies occlusion materials to these meshes based on session requirements
When working with MapSets, the occlusion system implements a selective application approach:
Occlusion is only applied to individual Maps where user localization has occurred
This selective application is designed to optimize memory usage throughout the application lifecycle
Other Maps within the MapSet remain unaffected until localization is performed
From Developer Portal download and import raw mesh, which is low poly and not textured. You can further reduce the size of this mesh in any 3D tool like Blender by reducing the poly count.
Create a simple occlusion texture and material that makes mesh invisible in the scene and will provide occlusion in AR if applied to a mesh. Below is a sample of it that you can use
Simply assign the occlusion material to the Mesh and it will become invisible in the editor, alternatively, you can assign this material in runtime using a script.