Hi,

Thanks for sharing, but I did not modify the frame loop of the viewer, and the 
following code in Qt on-click event handler does not produce rotation:

Code:
mainForm.vis->setSceneData(my_object);
osg::Vec3 achse(0.1, 0.2, 0.974); 
osg::Matrixd myRotationMatrix; 
myRotationMatrix.makeRotate(osg::DegreesToRadians(2.0f), achse); 
mainForm.vis->getCameraManipulator()->setByMatrix(mainForm.vis->getCameraManipulator()->getMatrix()
 * myRotationMatrix); 


I thought maybe there was quick and easy way to programmatically imitate user's 
pressbutton-movemouse-releasebutton which gives object rotation. As I said, it 
is for my debugging purposes and is not very important.

Thank you!

Cheers,
Dženan

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=31149#31149





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to