Hi Jerome, Have a look at the event handling in the osgmovie example as this does exactly what you are looking for.
Robert. On Thu, Apr 10, 2008 at 2:13 PM, Jerome Hummel < [EMAIL PROTECTED]> wrote: > Hi, > > > > I guess this is a beginner question here but I was wondering if there was > an easy way to retrieve a u,v coordinate from a ray with osg? > > > > The use case is the following: > > -a 3D Object is loaded (let's say a cube) > > -it is textured with a glsl shader > > -The user picks a point on the cube (using the mouse) > > > > From the 3D point in world coordinate, how can I retrieve the uv point in > the texture ? > > Thanks for your help, > > > > Regards, > > Jerome > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > >
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

