Hello Renan,
> As I recall, it was used as it is to keep showing the coordinates of
> the point you were on with the mouse cursor, in the osgpick example. Is it
> appropriate in my case? I just want the color to change when I push the left
> button...
No, in the osgpick example it's the event type that keeps checking for
intersections whenever the mouse moves. Your changing it to PUSH is
correct in that case.
The for loop you point to is actually because the intersection test
might return multiple results (objects behind one another, for
example). In your case, you probably just want the closest
intersection. Check the documentation for the
osgUtil::LineSegmentIntersector::Intersection structure to find out
how to get that.
J-S
--
______________________________________________________
Jean-Sebastien Guay [EMAIL PROTECTED]
http://whitestar02.webhop.org/
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org