Quest 2: Retain VR session when switching between VR experience #159
Unanswered
truonggiangdao
asked this question in
Q&A
Replies: 2 comments
-
This isn't easily possible with three. There's more to the session init than requesting it, you have to bind it to your canvas via layers/session state and I don't believe that's readily exposed. You could likely do this with a custom XR renderer (built on top of WebGLRenderer), as I outline here: |
Beta Was this translation helpful? Give feedback.
0 replies
-
@CodyJasonBennett, thanks for the advice. I'll try the custom XR renderer approach. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone, please advice: I'm trying to retain the VR session when user switch between 1 VR experience to another VR experience.
Our use case is we have a existing exported virtual tour (old) that have VR support, now we try to see if it's possible to create another VR tour (new) using react-xr and let user navigate from old VR to new VR. The code below works on browser using WebXR Simulator Extension but when I try on Quest 2 everything becomes black. I have to press Menu/Oculus button on controller to escape the VR mode then I see the page is not navigating.
Here is my current testing code:
I'm using react-router-dom to navigate from old page to new Page
Thanks in advanced!
Edit: I wondering if this is because the user was stuck in the old canvas even when it was destroyed. If that's the case, can the VRCanvas use the existing canvas instead of creating new canvas?
Beta Was this translation helpful? Give feedback.
All reactions