ARKit Environment Depth problem

We are developing an ARKit app for outside exterior use. While testing inside, everything works fine and environment occlusion works as expected. But outside, when reaching a certain distance to the AR-objects, they start flickering until they disappear completely. Please see attached video.

I’ve tried to visualize the depth map, but i don’t see any change in the values.
If i switch off environment depth, the models appear again.

What causes this and why is the occlusion not happening according to the depth map?
For example at second 0:25 in the video you see occlusion is working, but the depth map is completely red?
Or is the depth map only visualizing what the LIDAR sees?

Or is this just a limitation of ARKit?

Thanks, Dietmar

Apple’s current LiDAR maxes out around 5 meters.

If you are able to scan the scene before moving away, you could try using the meshing approach with an occlusion shader to construct the occluding geometry virtually.
https://github.com/Unity-Technologies/arfoundation-samples#occlusionmeshes

1 Like

Thanks, i’ll look into that. But that still does not explain to me, why the flickering/dissolve appears even if there is no change in the depth map?