Hello,
I’m new to babylonjs and I am working on an app where I want to show a viewCube in a viewport scene over the main scene on the “desktop” side of the application, and allow the user to enter XR to view the main scene. I quickly made a litte playground to give you an idea of the initial state of what I have in the app :
https://playground.babylonjs.com/#F41V6N#341
In that context, when I enter in XR, it seems to be bugged (teleportation lines are not showing and sometimes it can crash after a few seconds) but if I remove the viewport scene, all works fine in XR.
I tried to fix it for a while now and I can’t figure out how to make XR work fine from this configuration.
I already tried some things when entering XR like stopping to render the viewport scene or disposing it.
I also tried other methods like using another canvas or a layer mask but without success (and I guess that the viewport approach seems to be better for a viewCube according to what I saw in the forum so far)
I’m probably missing some knowledge about it as I still discover the framework.
Can someone help me to clarify it and make it work ?
Thanks
PS: i’m french so my english can be bad sry