-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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 depth sensing API #2561
WebXR depth sensing API #2561
Conversation
Chrome 87 just has been released to Android. So it works behind the WebXR Incubators flag in release Chrome. Cl seems to be failing here, with "Setup Java JDK" errors. Not sure how to fix it. |
There have been recent changes to Depth Sensing API, based on community provided feedback. |
Hey @Maksims, can you resolve conflicts in |
Implements WebXR Depth Sensing API: https://github.com/immersive-web/depth-sensing/blob/main/explainer.md
Which is available in Chrome 87 (
BetaRelease) behind chrome://flags/#webxr-incubations flag.It provides two paths (CPU and GPU) to access depth information which is provided by underlying AR system.
New APIs:
Test projects:
CPU Path: https://playcanvas.com/project/732030/overview/ar-depth-sensing
It implements CPU path to test for depth in middle of the screen, and allows to plant grass (like hit test example), but works way more reliably than hit test path.
GPU Path: https://playcanvas.com/project/738358/overview/ar-depth-sensing-texture
It implements GPU path by accessing depth sensing texture, and rendering it on top of the camera view, with shader that unpacks depth information and represents it as a gradient (red > yellow > green > cyan) which is distance from 0 to 8 meters.
Depth Occlusion: https://playcanvas.com/project/738703/overview/ar-depth-sensing-occlusion
Demo: https://playcanv.as/p/UN0z1XE2/ (don't forget to enable chrome://flags/#webxr-incubations)
This demo has few things: cpu path object placement, gpu path occlusion using shader and light estimation.
Link to video: https://twitter.com/mrmaxm/status/1329151944540254208
I confirm I have signed the Contributor License Agreement.