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?
相关问题
- Calculate the difference in azimuth angles between
- Render 3d Objects into Cameraview
- Extract Reality Composer scene for ARQuickLook
- How to play multiple Animations using AnimatorSet?
- ARCore Extended ImageTracking / Anchoring API in U
相关文章
- How do I set compatible devices to only ARKit comp
- How to find corner points of any object in point c
- TangoPoseData 'pose.status_code' always re
- 3d object recognition for AR android app
- Painting over JMF component
- Augmented Reality movement
- RealityKit – Load another Scene from the same Real
- Changing Textures of Object in AR core in runtime
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.
+1 on AndrewNakas's solution.
Another solution is to do the screen space depth buffer test. That means taking a depth image from the point cloud Tango provides, and compare it with the virtual camera's depth buffer.
Tango Unity SDK implemented this feature on the
Tango AR Camera
prefab. There's a checkbox namedEnable Occlusion
.