Occlusion not working on latest ardk versions

  • Issue category: Real-time Mapping-Depth / Occlusion
  • Device type & OS version: Android 15 (I’m using a Nothing Phone 2a)
  • Host machine & OS version: Windows
  • Issue Environment : On Device
  • ARDK versions: 3.16 / 3.15.1 / 3.15
  • Unity versions: 6000.0.58f2 / 2022.3.62f2

Bug reproduction steps:

  • Create a new Unity project with recommended version (6000.0.58f2 or 2022.3.62f2) and with URP or built-in
  • Follow the doc to setup ARDK (link) with ARDK 3.15 or later + additional steps if needed for URP
  • Try to use occlusion with AR Occlusion Manager from AR Foundation or display depth as shader (link)
  • It works in editor with “Niantic Lightship SDK for Unity Editor” but doesn’t work on Android build

I tried a lot of different setups with both recommended versions for Unity, and with both URP and built-in ; but the problem seems to come from the ARDK’s version. I tried version 3.13 and 3.14 and it works as expected so far.

It would be great to have a fix since 16 KB page size support for Android is only available from version 3.15 or later.

Hi Flavian,

Any chance you can also send over a recording of the occlusion failing to work so that I can test and compare with what you’re getting?

Hi Jesus,

Thanks for the fast reply.

I realised when recording that this bug doesn’t happen all the time on 3.15+ versions.

At first, when testing I thought that occlusion/depth simply never worked on these versions since I was only testing right after creating the build. Now I see that the bug is related to the app focus.

On the recording we can see that the bug occurs when the application loses focus for version 3.16.

Version 3.16:

I also tried the same reproduction on version 3.14 to compare and we can see that the same bug never occurs.

Version 3.14:

I hope this helps.

Thanks for sharing. I’ll show this to our developers so that they can take a look. I’ll reach back out to you if I require any additional information

No problem. Thank you.

Hi Flavian,

I apologize for the delay, we hadn’t realized that some of our replies did not make it out to end users on our forums

We released version 3.17 of the Niantic SDK. Could you perhaps try it out and let me know if the issues that you were experiencing with occlusions are gone?