r/oculusdev • u/Silly_Eye7710 • Aug 25 '24
Environment Depth Texture
Has anyone been able to access the environment depth texture in order to create real-time colliers on objects during runtime Without baking anything in?
6
Upvotes
View all comments
Show parent comment
2
u/mcarrowgeezax Aug 28 '24
Sorry I probably wont be able to help much beyond that. It was several months ago when I stumbled on that and I only did a quick test to see what looked like not-junk values were coming in and I didn't go beyond that. Hopefully that dev will get back to you, if they do I'd appreciate a heads up on if/how you are able to get it to fully work.
But i wonder how are you testing this, by picking a point in the middle of the depth map at like 1000,1000 and trying to directly look at stuff and reading that one point's value? If it's not too much trouble I would try to visualize the entire 2000x2000 result by converting the entire map's depth values to rgb values and displaying the whole 2000x2000 rgb converted map on the screen somewhere, so you can try to visualize what the entire depth map is doing real-time as you look around the room, and maybe you can pick out shapes showing that it's working or verify if it's complete garbage or not.