Search code examples
augmented-realitygoogle-project-tangoocclusion

Occlusion in AR


I'm trying make virtual objects be hidden when a real world object is positioned in front of it, but not having any luck with it, i've been playing with the occlusion settings in unity but the virtual objects do not become hidden?


Solution

  • You could fix this problem by building your augmented reality scene with the experimental meshing enabled.

    Here is an example of the concept https://www.youtube.com/watch?v=sn3bhnPlfcw

    You then could ray cast from camera to the virtual object and turn off the object if a mesh blocks the raycast.