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

XR frame pose === null should be a valid state #4675

Open
Maksims opened this issue Sep 28, 2022 · 0 comments
Open

XR frame pose === null should be a valid state #4675

Maksims opened this issue Sep 28, 2022 · 0 comments

Comments

@Maksims
Copy link
Contributor

Maksims commented Sep 28, 2022

Based on the WebXR Spec, pose can be null which is returned from frame: https://www.w3.org/TR/webxr/#dom-xrframe-getviewerpose
This can be due to many reasons: no tracking available, failure in subsystem to track, etc.
Previously engine assumed that pose is available always, which lead to an issue with Oculus Link, which did not provide pose, and it lead to an exception.
A fix: #4517 made a workaround, but it completely skips other XR system updates and prevents rendering, which is an issue, as some level of rendering and developer ability to render some UI should be still available.
This is especially apparent in AR session, for the first few seconds where tracking is not available, the developer should be able to provide UI to ask for device movement recommendations to the user, which should be rendered of course.

We need a better solution to this issue, and ensure rendering and other XR subsystems can handle null pose case gracefully.

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

No branches or pull requests

1 participant