Hi, I want to transform my scene into a VR scene, is the renderer.XR.enabled = true enough?
1 Like
There are several things that I do when converting to a VR scene.
import three/examples/jsm/webxr/VRButton
renderer.xr.enabled = true
document.body.appendChild(VRButton.createButton(renderer))
- Use the
renderer.setAnimationLoop()
function instead ofrequestAnimationFrame
See simple example and source code here
2 Likes
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.
2 Likes
oh understood, thank you.
Thank you!
1 Like