Skip to content

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

Closed
gabrieljbaker opened this issue Jan 28, 2021 · 4 comments
Closed

WebXR Link Traversal #9860

gabrieljbaker opened this issue Jan 28, 2021 · 4 comments
Assignees
Labels
Milestone

Comments

@gabrieljbaker
Copy link

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

@RaananW RaananW self-assigned this Jan 28, 2021
@RaananW RaananW added this to the 5.0 milestone Jan 28, 2021
@RaananW RaananW added the in progress Someone is currently working on this issue label Feb 16, 2021
@RaananW RaananW removed the in progress Someone is currently working on this issue label Feb 16, 2021
@RaananW
Copy link
Member

RaananW commented Feb 16, 2021

@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.

@RaananW RaananW closed this as completed Mar 19, 2021
@arpu
Copy link

arpu commented Mar 19, 2021

anyone know if this comes to MS edge?

@bruchansky
Copy link

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!

@RaananW
Copy link
Member

RaananW commented Dec 6, 2021

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.
We can discuss that at the forum if that's ok with you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants