cnr-isti-vclab / meshlabjs

A javascript client based mesh processing tool. Built using vcg library, emscripten and webgl
http://www.meshlabjs.net
GNU Affero General Public License v3.0
231 stars 51 forks source link

Setting a camera view programatically #135

Open mrweix opened 7 years ago

mrweix commented 7 years ago

How can I set the camera to a certain angle. Lets say I want to rotate the scene on button click by 45 degrees.

_camera.rotation._x=0;
 _camera.rotation._y=Math.PI/4;
    _camera.rotation._z=0;

did not work. Can somebody point me into a direction? Thanks!