I have a simple Tango Unity app which uses the Tango AR Camera
prefab to display a 3D object in augmented reality.
Following this question, I wanted to try out the occlusion feature provided by TangoARScreen
.
Therefore I have:
Tango Manager
Tango Point Cloud
with Update points mesh enabled.However the 3D object never gets hidden by foreground real-world objects. What am I missing?
Is there any sample project that demonstrates this "Enable Occlusion" feature?
Try to look in the Unity Examples, the one named ExperimentalMeshOcclusion.
I just ran it and the occlusion there works well, so you can see the scene objects and the code being used.
In order to use occlusion on TnagoARScreen
, you have to check the Update Points Mesh
checkbox on TangoPointCloud
prefab in the scene.
There is no sample, but here's steps to alter an existing sample to turn it on. Tested working on the Phab2.
I do find better results using the Experimental sample referenced by @Oren
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With