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 Plane Detection - Semantic Label; Example; #5795

Merged
merged 3 commits into from
Nov 7, 2023

Conversation

Maksims
Copy link
Contributor

@Maksims Maksims commented Nov 6, 2023

Add semantic label to XrPlane, as it is available on Quest 3.
This PR also implements ar-plane-detection example, that showcases how to track planes and build meshes for them.
It also slightly improves the way availability of plane detection is detected by using XRSession.enabledFeatures list.

This API works on mobile phones in real-time, while on Quest 3 is based on manually pre-scanned data and added features (like tables).

New APIs:

// pc.XrPlane
xrPlane.label // a string that describes a plane. If no description available it will be an empty string.
// list can be found here (not limited to): https://github.com/immersive-web/semantic-labels/blob/master/labels.json

Test link: https://examples.playcanvas.meta.space/#/xr/ar-planes-detection

I confirm I have read the contributing guidelines and signed the Contributor License Agreement.

@mvaligursky
Copy link
Contributor

Very cool! Please attach a screenshot of the example.

@Maksims
Copy link
Contributor Author

Maksims commented Nov 7, 2023

Very cool! Please attach a screenshot of the example.

Here is the example video.

789955c6d61bde1b6d6c09fa09905965.mp4

@mvaligursky mvaligursky merged commit f348546 into playcanvas:main Nov 7, 2023
7 checks passed
@Maksims Maksims deleted the webxr-planes-labels branch November 9, 2023 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants