I've been working on an interface using three.js and the CSS3DObject rendering tool. To control movement, I've disabled rotation by setting the orbit to 0, allowing only panning and zooming.
Just a heads up - I'm also utilizing Orbit Control in my project.
To position the camera at x=-2000, I used the following code:
camera.position.x=-2000;
camera.position.z=4000;
While this code moves the camera, it still ends up facing (0,0,0) which distorts the view. It seems that giving it a vector may solve this issue.
camera.up = new THREE.Vector3(0,1,0); //keeps the camera horizontal
camera.lookAt(new THREE.Vector3(2000,0,0)); //should point the camera straight forward
I'm still in the process of understanding how the lookAt function works, so any insights would be appreciated.