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

Detect XR usage #1379

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Detect XR usage #1379

wants to merge 5 commits into from

Conversation

avaer
Copy link
Member

@avaer avaer commented Aug 6, 2019

For a long time Exokit relied on the parent site knowing whether to open a Reality Tab in a 2D or 3D context, but this was one of the most common user mistakes in our UIs.

This PR attempts to implement an "XR autodetect" on the first Window tick of a reality tab, emitting an xrMode event on the HTMLIframeElement. With this, Exokit browser frontends can rely on a more automatic instantiation of reality tabs by first attempting the common 3D case and -- failing that -- falling back to the 2D browser plane implementation.

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.

1 participant