[osg-users] How to Control a 3D Point's Position with Mouse in a certain Plane.
hello, i worked with OSG 1.2 in the past. and the osgProducer had function for obtaining the current position and rotation (of the camera?). i used: osgProducer::Viewer::getPosition() osgProducer::Viewer::getOrientation() and the relative mouse coordinates, obtained from: osgGA::GUIEventHandler::handle(...) with the help of: osgGA::GUIEventAdapter osgGA::GUIActionAdapter . now i updraded to osg 2.6 and i read trough the header files of osgViewer::Viewer and View and osg::Camera. sadly i had no idea where to start or how the procedure for obtaining the position and orientation of the actual Camera, View is? maybe some one can point me in the right direction ... thx and bye henry ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] How to Control a 3D Point's Position with Mouse in a certain Plane.
Hi Henry, El Jueves 23 Abril 2009ES 15:35:30 Mrs. Mister escribió: now i updraded to osg 2.6 and i read trough the header files of osgViewer::Viewer and View and osg::Camera. sadly i had no idea where to start or how the procedure for obtaining the position and orientation of the actual Camera, View is? You could: Viewer-getCamera(0)-getViewMatrix().decompose(translation, rotation, scale, scaleorientation); See the method osg::Matrixd::decompose HTH, Alberto ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org