If you have two different websites that both serve XR content you can move between them using the native sessiongranted event. this event is already automatically integrated in the default UI of our webxr implementation, so all you need to do is make sure you are initializing XR when the scene is created.
This will enable entering XR automatically if you click the 2nd link.
I came across A requirement that: first enter the panoramic mode of scene A, and then directly switch to the panoramic mode of scene B by clicking an object or button in scene A ( scene A and scene B use the same canvas ). I tested some code today and it didn’t work. My requirements are similar to (https://playground.babylonjs.com/#MXCRPS#1
). can you help me modify the demo code to make it work in vr glasses?
There is currently no way of switching scenes while in XR. This is because the xr resources are attrached to the current scene, and XR will need to re-initialize in the new scene.
The one way is to have two different URLs, with their XR context initialized on page load. Otherwise you will need to deal with a single scene scenario and change the scene’s state.
I plan to use these two pages to display two scenes. When in the VR mode on page one, by clicking on the GUI (the code is commented out by me) or other events, directly enter the VR mode in the scene on page two. How should I achieve it?
When I want to click the gui in the VR mode of the first page to enter the second page, I will exit the VR mode, and then I need to manually enter the VR mode of the second page scene. Can I directly enter the vr mode on the second page without exiting the vr mode?
But when I click on the gui, it jumps out of vr mode, and then enters the second page in flat mode. I used the version of v5.0.0-alpha.50 when test in glasses.
FYI, There is a tweet thread from Brandon Jones on changing actual pages while staying in immersive, from Nov 23. There are many exchanges / branches. There is no url. People are starting to see how this might work.
The babylon implementation is working on framevr, so it is already being used in production. Seeing a live example might help us understand why it doesn’t work in this specific use case
I asked a colleague to help me build the latest package from the git repository of firefox reality, but he said that the package was unsuccessful because of lack of a pico sdk. So, I don’t know if there is any other way. .
Firefox has stopped development of firefox reality a long time ago. They are updating the SDK from time to time, but they don’t add any new features and have no new releases (you can see here - Releases · MozillaReality/FirefoxReality · GitHub)
Not sure what can be done here… I hope firefox will ramp up and continue developing firefox reality further.