r/oculusdev • • 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

7 comments sorted by

View all comments

Show parent comment

1

u/Silly_Eye7710 Aug 28 '24

It's all good :) There is an open thread at the moment on GitHub that's dealing with the new migrations to V67 on how the depth texture is being handled etc, apparently the new texture is now 512x512. I'm going to go through that I think as I've found the code it was using and it seems to be semi working although not without its own hitches lol. The implemenation they have got there only seems to work for 3DoF which is a pain but hopefully I might be able to jig a work around for 6DoF.

Here's the link to that thread on GitHub.

DepthAPI v67 broke the depth retriever script · Issue #49 · oculus-samples/Unity-DepthAPI (github.com)

I think I've also found the source code as well for a project similar if not the same project as that laser shooter. Only problem is that this didn't seem to work for me when i was trying to use V66 before the update, But looks like it could come in handy for figuring out the transform etc of the camera.

anaglyphs/lasertag: A mixed reality multiplayer game for Oculus Quest 3 (github.com)

2

u/mcarrowgeezax Aug 28 '24

Oh wow thanks for showing me that discussion, really good info in there and that looks like it would be a million times more performant than what I was suggesting you try lol.

There's a comment in there from 3 weeks ago that suggests Meta is currently working on providing this as a user-friendly feature for the SDK so hopefully you can just fall back on that if necessary. Good luck.