-
Notifications
You must be signed in to change notification settings - Fork 3.5k
WebXR Link Traversal #9860
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
Comments
@gabrieljbaker - I added preliminary support for the event. Had to change the UI component a bit. The implementation assumes that the default webxr experience is used. If it doesn't you can self-register the event and call the enterAsync in code. I tested on the oculus quest, switching between the playground and a self-hosted experience. It only worked in one direction, (because of the way the playground works), but I will try to incorporate this in the playground when I get the chance. When you get the chance, please test it after it is merged to make sure it works in your scenarios as well. I am waiting with closing the ticket until then. |
anyone know if this comes to MS edge? |
I'm very interested in this functionality but can't find any example code or guide to make it work. Would you be able to help? I would like to open a link from a self-hosted babylonjs page to another one, but without exiting the VR session on the Oculus Quest browser. Thanks! |
If you create a second page that has the default xr experience (or the xr ui component) initialized on page load it will work automatically. |
When in VR, I'd like to be able to click on a link to a WebXR experience and transition to that experience without breaking immersion. This is possible now via a feature of the WebXR API: https://github.com/immersive-web/navigation#api-proposal
A-Frame already has this baked into their "link" component which they describe as follows:
The link component connects between experiences and allows for traversing between VR web pages. When activated via an event, the link component sends the user to a different page, just like a normal web page redirect. To maintain VR across pages, the following conditions must apply:
The destination Web page listens to the window [sessiongranted] event and enters VR. A-Frame experiences behave this way by default.
I believe the Oculus Browser is the only browser that has this feature, but letting our users do this from that browser would be incredibly powerful. @RaananW
The text was updated successfully, but these errors were encountered: