Hi Sergey; osg::Quat quad; osg::Matrix matrix; matrix.makeLookAt(headVector, directionVector, upVector); matrix.get(quad);
Hope this helps. Regards. 2009/5/21 Sergey Bocharov <osgfo...@tevs.eu> > Hi, All > > I have direction vector , how can I convert it to rotation quat? As I know > I need also Up vector, I can take Z_AXIS. > > So I need formula to convert direction and Up vectors into Attitude quat. > > Thank you! > > Cheers, > Sergey > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=12648#12648 > > > > > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > -- Ümit Uzun
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org