Hello Guillaume,

I am trying to use a LineSegmentIntersector and want to specify start and end points in world space coordinates. Aditionally, the Drawable I want to intersect has parent nodes with transformations (translate / rotate / scale). How can I achieve this ?

When you use your LineSegmentIntersector with an IntersectionVisitor, the start and end will be assumed to be in the coordinate space of the node you use the visitor on. So if you want to specify start and end in world space, use the visitor on the root node of your scene graph. If you want them to be in screen space, use it on the camera.

When the IntersectionVisitor traverses the hierarchy down to the drawables, it will automatically accumulate the transforms.

Hope this helps,

J-S
--
______________________________________________________
Jean-Sebastien Guay    [email protected]
                               http://www.cm-labs.com/
                        http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to