[Gzweb] To set initial pose of the camera
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.
Asked by IsaacS on 2015-04-21 10:40:54 UTC
Answers
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.
Asked by suzanak on 2016-05-03 04:19:54 UTC
Comments