dsman Posted February 20, 2018 Share Posted February 20, 2018 How do we continue current webvr camera view inside HMD after loading another model using BABYLON.SceneLoader.Append? We have a scene, and a button to view in WebVR which works fine. Then there's some WebVR controller based interaction (Oculus controllers) that triggers loading of another model (basically something like teleporting to completely different model) using BABYLON.SceneLoader.Append. It just works fine just that Inside Oculus HMD, I see default oculus black screen with small loading graphic in bottom right (which the other model is being loaded) and then I see black screen forever (after the other model has finished loading). Although if I remove HMD and look at the page, it shows webVR split-screen view. But neither it tracks the HMD (The split screen view doesn't move based on HMD orientation) nor is there any display inside HMD. I tried camera.detachControl before calling BABYLON.SceneLoader.Append and camera.attachControl in the success callback of it. Quote Link to comment Share on other sites More sharing options...
Guest Posted February 20, 2018 Share Posted February 20, 2018 The problem is mostly because of how webVR works. We must keep the camera active. And this SHOULD work with Append as it is not changing the activeCamera. Can you repro in the PG? There must be something else Quote Link to comment Share on other sites More sharing options...
dsman Posted February 22, 2018 Author Share Posted February 22, 2018 I think this is due to browser behavior of killing VR connection if WebGL app doesn't render a frame for certain period. Since BABYLON.SceneLoader is not async, frame freezes in HMD and then it goes black. Actually, it goes black because I have disabled Oculus Client Software exe process using process blocker. Other I see Oculus home after 4-5 seconds. I will try to reproduce in PG. Quote Link to comment Share on other sites More sharing options...
dsman Posted February 23, 2018 Author Share Posted February 23, 2018 The problem was something else. The camera was somehow reset/affected by our code. Quote Link to comment Share on other sites More sharing options...
HoloLite Posted February 24, 2018 Share Posted February 24, 2018 As far as I tested it so far, the Append call works in winmr vr. I don't see the issues you mentioned. But I do have to keep using the same scene objectt, as multiple scene objects will kick me out of webvr session and back to the cliff house. (looks like the webvr got reset or something) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.