I use Three.js to render and move (my orbitControl changes camera.position) in a small scene.
Now I have an oculus rift. So I added VRControls and VREffect.
There is no problem to move the head.
But I can no more move in the scene because VRControls override the camera parameters :
object.quaternion.copy( state.orientation ); // object is the camera
I thought that it was easy to correct : I have only to update the camera instead of overriding it :
object.quaternion.copy(stateOrientationQuat.multiply(currentCameraQuat));
But it does not work : it renders a moving flicking scene. VRControls and orbitControl seem to fight...
Could you tell me what is to do to integrate VRControls in an existing project ? If you have the update code (I don't really know quaternions...) it would very help.
Thanks