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 manual room capture #5774

Merged
merged 3 commits into from
Nov 6, 2023
Merged

Conversation

Maksims
Copy link
Collaborator

@Maksims Maksims commented Nov 1, 2023

With Quest 3 and similar devices, environment is captured at the special time instead of real-time like for Android devices.
So the extension to the WebXR Plane Detection Specs provides a new method for XRSession to initiate manual room capture.

This can be useful when developer want to use AR with Plane Detection or Real-World Meshes, and needs an up to date information, or user might have not pre-captured their environment at all. So developer can provide an option to trigger manual capture right from the AR session.
Our current API integration design takes asynchronous nature of real-world objects like planes into the account, so changes in underlying data will be reflected immediately without a need to refresh a page.

New APIs:

// pc.XrManager
xr.initiateRoomCapture((err) => { })
// Start manual room capture.
// If such feature is not supported, error with according message will be provided in callback.
// If capture was a successful, then callback will fire without an error.

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

@Maksims Maksims mentioned this pull request Nov 5, 2023
@mvaligursky mvaligursky merged commit 5a128c3 into playcanvas:main Nov 6, 2023
7 checks passed
@Maksims Maksims deleted the webxr-room-capture branch November 6, 2023 20:59
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.

5 participants