Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebXR: Make Depth sensing occlusion tunable #27664

Open
michaelthatsit opened this issue Feb 2, 2024 · 0 comments
Open

WebXR: Make Depth sensing occlusion tunable #27664

michaelthatsit opened this issue Feb 2, 2024 · 0 comments

Comments

@michaelthatsit
Copy link

Description

We have use cases in mrjs that require we dynamically un-occlude parts of the environment.

Currently, without depth-sensing, we create plane meshes for the walls and disable colorWrite and set their rendering order to a value ahead of all other objects, then set visible to false when we want to see beyond them. see the screenshot below for an example

Screenshot 2024-01-30 at 4 13 14 PM

We'd like to be able to benefit from the better body occlusion provided by depth-sensing, without inhibiting our ability to achieve the above.

Solution

An API to tune depth-sensing occlusion by distance. something like

renderer.xr.depthSensing.near = 0.1
renderer.xr.depthSensing.far = 1

Alternatives

provide depth-sensing data without enabling occlusion by default.

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants