Hi, I found another way to get the camera position, if it suits one's needs:)
you could use the previous solution: osg::Vec3 eye, center, up; viewer->getCamera()->getViewMatrixAsLookAt( eye, center, up ); then, the result you want is in the 'eye' variable, the other 2 vars are just 'fillers'. or: osg::Vec3 eye = viewer->getCamera()->getInverseViewMatrix().getTrans(); Thank you! Cheers, Drout ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=65657#65657 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

