Hi Dženan, my issue is to rotate the scene by wheels under and beside the window. Unfortunately this is very essential for my application and I didn't manage it so far. But turning (somehow) in general works here. My solution has 2 differences to what you wrote: 1) I don't set the scene in the same event. I don't know what happens inside osg after setting a scene. So maybe you do it somewhere outside. 2) I don't use the clickEvent of the window. Are you sure it is called at all? Do some qDebug() output.
And also I'm not sure if an angle of 2 degrees is recognized easily. Make it bigger for testing purpose. Please keep me informed if you have any progress. I'm still searching for the correct matrix manipulation. Bye - Werner - Am Montag, 30. August 2010 12:35:09 schrieb DXXenan ZukiXX: > 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->getCameraMa > nipulator()->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 -- TEXION Software Solutions TEXION GmbH - Rotter Bruch 26a - D 52068 Aachen - HRB 14999 Aachen Fon: +49 241 475757-0, Fax: +49 241 475757-29, web: http://www.texion.eu Geschäftsführer/Managing Director: Werner Modenbach _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

