-
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 Plane Detection #3068
WebXR Plane Detection #3068
Conversation
I'm not sure how to deal with a TypeScript error as it fails to find XRPlane, and not sure where to add a "polyfill" for such a test. Please advice @mvaligursky #typescript-problems |
Self note: add project https://playcanvas.com/project/782753/overview/webxr-plane-detection to tutorials section |
OK, LGTM now, @Maksims. Can you resolve the |
src/xr/xr-manager.js
Outdated
@@ -181,6 +183,9 @@ class XrManager extends EventHandler { | |||
* }); | |||
* @param {object} [options] - Object with additional options for XR session initialization. | |||
* @param {string[]} [options.optionalFeatures] - Optional features for XRSession start. It is used for getting access to additional WebXR spec extensions. | |||
* @param {boolean} [options.depthSensing] - Set to true to attempt to enable {@link XrDepthSensing}. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a duplicate of the param definition at line 190
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Except that declaration is an object
Implementation of an experimental draft spec: https://immersive-web.github.io/real-world-geometry/plane-detection.html
It is available in Chrome for Android 89, with enabled chrome://flags#webxr-incubations flag.
Plane detection provides information about real-world surfaces estimations in form of planes.
Each plane can have its position, rotation and a list of edge points making a complex polygon.
New APIs:
Test project:
https://playcanvas.com/project/782753/overview/webxr-plane-detection
This project builds mesh, updates it when the plane is changed and draw lines for each detected plane.
Test build:
https://playcanv.as/p/f2ESRGge/
Ensure you have chrome://flags#webxr-incubations enabled
Video:
https://twitter.com/mrmaxm/status/1379802592163864581
I confirm I have signed the Contributor License Agreement.