Skip to main content
New Participant
June 23, 2025

Accessing the Environment Depth Buffer from the Quest 3 Cameras

  • June 23, 2025
  • 1 reply
  • 376 views

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

    willilukAuthor
    New Participant
    June 23, 2025

    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!