Follow

I can see my content drawing over the real world on-device, even though the content should appear to be behind the real objects

Symptoms:
 
  • My content draws over real objects that the content should be behind.
 
Cause:
 
Phone-based AR draws the camera feed as a background to your app, and see-through AR headsets render content on top of what you’re seeing.
 
If no occlusion behavior has been defined in your scene, no occlusion will happen on device.
 
Resolution:
 
Create occlusion surfaces in your scene, most easily by creating Plane Visualizers, either from the MARS Panel Create panel, under Visualizers > Planes visualizer; or in the Hierarchy view, use Create > MARS > Data Visualizers > Plane Visualizer. 
These visualizers are set up with occlusion shaders, which will block content from rendering through the surface. This works on-device, and also in 'Simulation view'.
 
You should be seeing the same approximate behavior in 'Simulation view' as in the Editor. This is designed to help understand and address this on-device issue.
 
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.