Hi BJS devs, I’m new in the forum.
I’ve worked on a WebAR demo project that use ‘depth-sensing’ feature.
The demo shows a realtime depth estimation on Chrome for Android.
https://global.discourse-cdn.com/business7/uploads/babylonjs/original/3X/5/0/50b674ac487f84c1dbad224875ceeeaa6e59c2ed.mp4
WebXR Depth Sensing Module
is an experimental API of WebXR Device API, and I’ve been interested.
I published this project on
my GitHub
.
Thank you!!
We have an open issue for that, I just never managed to get started.
Depth sensing is very interesting. especially the way the data is being provided to you (CPU/GPU data is available).
I am constantly trying to find time to implement those wonderful features. On my TODO list for sure
highly cool demo –
@drumath2237
. I really like how you used dom-overlay feature real-time like that with grayscale. very easy to read repo as well. thank-you for sharing.
there is a doc on how to add XR features - i feel it’s missing some nuances of considerations like enter/exit vr type of things, but it’s a good starting point if somebody in the community had time:
WebXR Features Manager | Babylon.js Documentation (babylonjs.com)
Thank you so much for your reply.
I have started to try to implement the WebXR depth sensing feature somehow. (with some API proposals)
However, this is still a work in progress.
I’d like to ask someone’s opinion because I’m not familiar with contribute open source projects.
@sebavan
@RaananW
With my mobile phone, Google Pixel 4a 5G, I have checked it works correct with cpu-optimised mode (it seems that pixel 4a doesn’t support gpu-optimised mode)
twitter.com
That looks great! If you want help to open a pull request so I can review the code please let me know.
We always make sure that the feature is fully configurable and fully documented.