I am trying to create an app using an AR project in Unity. I followed your tutorial to import package and files in the AR project, but when I try to build the app, I get the following errors:
Shader error in ‘Depthkit/Core/Depthkit Core Photo Look Built-in RP’: redefinition of ‘inRange_ii’
Would you be able to help me solve this issue?
Hi, @NAL - To help troubleshoot, can you provide the following:
- Which Unity version you’re working in
- Which render pipeline the project is using (Built-in, Universal RP, HDRP?)
- Which physical device you are testing
- Which operating system version is installed on that device
- Can you also share screenshots of how your Depthkit object is configured in the Inspector?
I’ll keep an eye out for your responses and go from there.
@NAL - The Samsung Galaxy A53 is one of many devices with a Mali GPU, which doesn’t support Depthkit’s compute shaders - See discussions here and here. Do you have an Adreno-based device to test on?
Also, be aware that the current version Depthkit Expansion Packages for Unity (Phase 9) is only tested with Unity 2020.3, so using it in newer versions like 2022 may produce unexpected results.
Thank you. I tried with an Adreno-based device and it worked well, with Unity 2022.
I know it might be hard to estimate, but do you have a rough estimate of when Mali-based devices will be supported (weeks, months or years)?
@NAL - Currently, the way to get Depthkit captures to playback with wide device/platform support is via third-party integrations like Arcturus HoloEdit (which has specifically only been tested with full-body Depthkit Studio captures, not single-sensor captures).
We have added a streaming mesh format to our roadmap, which may solve this compatibility issue with devices like the Mali-based devices you are testing, but I do not have timeline to share yet.
Hi @CoryAllen ,
Thank you. Do you have a channel to reach out to Arcturus Studio ? I tried to contact them several times via their website, without any response from them.
@NAL Can you confirm that you’re attempting to render a single-sensor Depthkit Core capture on your mobile device? Based on your use of the Depthkit Core components in Unity and the thumbnail if your combined per pixel video visible in the screenshots, I assume this is the case.
As I mentioned above, Arcturus is only intended for full-body, multi-sensor captures made with Depthkit Studio, but if this is what you’re trying to render, we can connect you to the Arcturus team.
If you are indeed rendering single-sensor Depthkit Core captures, another approach which may interest you is the Depthkit.js web renderer. This open-source repository is now community-maintained, and no longer falls under direct Depthkit support, but may be a suitable option for you.