I’m seeing an unusual error when using createDefaultVRExperience(). I load a babylon scene exported from Blender. The scene contains many objects, including a sky sphere named “skybox”. After loading in the scene, I want to change the materials on some of the imported objects.
The scene looks fine on desktop and in an HTC Vive. It also looks fine when I view it on my Android phone in Chrome, as long as I don’t enter VR mode by clicking on the goggles.
In the Android Chrome browser itself, this error appears:
BUT, if I change the material on any other object in the scene, it works great even after I click on the goggles icon.
To illustrate the problem, I created this playground: https://playground.babylonjs.com/#MVXR2J#17
If you set
true, it will change the material on the skybox to trigger the error. If set to
false, it will change the material on another object (“ER_distant”), which doesn’t cause the error.
Much thanks for any help you can offer!