Forum Discussion

williluk's avatar
williluk
Honored Guest
23 days ago

Accessing the Environment Depth Buffer from the Quest 3 Cameras

Hey all!

I'm a university student researcher trying to run object detection on the images captured by the Quest 3's passthrough cameras using Unity 6, and I've been struggling to find a way to access a environment depth buffer. I know the depth buffer exists because the internals of the Depth API appear to make use of it for its occlusion functionality.

My problem is that pretty much everything in the Depth API is private, protected, or internal by default, and the documentation makes no mention of actually accessing the buffer or making use of the API for anything but occlusion. 

Is there something I'm missing, or is there really no access point for this data? My next step will probably be making edits to the Depth API package itself, but does anyone know of a better way of accessing the depth buffer?

 

1 Reply

  • williluk's avatar
    williluk
    Honored Guest

    After some minor adjustments to expose the texture, my depth buffer seems to be filled entirely with 205 bytes. If anybody knows a potential cause for this issue it would be much appreciated!