Renan Mendes schrieb: > In 3d coordinates... I know, we'll have to do something about the depth. > > Renan M Z Mendes > ------------------------------------------------------------------------ > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > Hi Renan,
what I do for this is the following: - compute the line behind the mouse cursor perpendicular to the screen. You will ned the transformation and view matrices for this - intersect this line with a plane parallel to the screen through the origin. You can use the line computed before as a normal vector for this plane The intersection gives a point that is a) behind the mouse b) as close to the origin as possible The choice for the depth might be another, but this one makes sense in some way! Regards, Andreas _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

