Hi, I want to transform my scene into a VR scene, is the renderer.XR.enabled = true enough?
There are several things that I do when converting to a VR scene.
import three/examples/jsm/webxr/VRButtonrenderer.xr.enabled = truedocument.body.appendChild(VRButton.createButton(renderer))- Use the
renderer.setAnimationLoop()function instead ofrequestAnimationFrame
See simple example and source code here
Thanks you, it worked ![]()
Hey, on changing to renderer.setAnimationLoop() worked for me.
I’m wondering why this is not mentioned in the official documentation. And if I could find some better documentation, thanks.
oh understood, thank you.
Thank you!

