Home | Tutorials | Wiki | Issues
Ask Your Question

[Gzweb] To set initial pose of the camera

asked 2015-04-21 10:40:54 -0500

IsaacS gravatar image

Is there a way to specify the initial pose of the camera (the one that we see the view through) on Gzweb (I'm using version 1.2.0 but open for the higher version if any)? Thanks in advance.

#####In case if there isn't, an enhancement ticket is already opened.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-05-03 04:19:54 -0500

suzanak gravatar image

Yes, you can do so by adapting the arguments of these two function calls in gzweb/gz3d/src/gzscene.js to your needs:

this.defaultCameraPosition = new THREE.Vector3(0, -5, 5);

.. and

this.camera.lookAt(new THREE.Vector3( 0, 0, 0 ));

...and executing the updateGZ3D.sh script afterwards.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools


Asked: 2015-04-21 10:40:54 -0500

Seen: 921 times

Last updated: May 03 '16