Hey Im on a VR project. I had to downgrade threejs to r110 due to incompatibility with angular. I reverted the XR stuff to VR and uncommented most of my VR code.
On localhost everything is fine, but on my server, it is crashing (only with VR code). There is no error, but the camera is doing weird stuff. Not really explainable. You can watch it here I feel like VR is not waiting till the “Enter VR” button is clicked. Its fighting over the camera control. In the last two releases a lot of VR changes happened and the documentation was adjusted.
This is what Im doing right now:
renderer.vr.enabled = true let vrBtn = WEBVR.createButton(this.sceneSetup.renderer) vrBtn.id = 'vr-button' vrBtn.style.left = '15px' this.container.appendChild( vrBtn )
I guess im not sure how VR in r110 works exactly.
I was looking through the code of WebVRManager, but I didnt know how to use it.
Couldnt find a r110 example with vr on the netweb. Does anybody know a example or knows how its done?