On Thu, May 21, 2009 at 10:42 AM, Ümit Uzun <[email protected]> wrote: > Hi Sergey; > > osg::Quat quad; > osg::Matrix matrix; > matrix.makeLookAt(headVector, directionVector, upVector); > matrix.get(quad);
A small tweak to the above is required. makeLookAt takes a eye point, center and upvector, so one would use: matrix.makeLookAt(osg::Vec3d(0.0,0.0,0.0), directionVector, upVector); Cheers, Robert. _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

