Hello,

In osgUtils::LineSegmentIntersector, there is a function "enter()" which invokes function " intersects( node.getBound()) ". That serves to check whether the LineSegment has intersection with the bounding sphere of the node.

However, if I put LineSegmentIntersector into a IntersectionVisitor and push a viewMatrix to the intersectionVisitor, which means that the linesegment and the traversal node are not defined in reference to the same coordinate system and the transformation is the viewmatrix. Then problem occurs. The intersection test might not stand enter() stage, because the lineSegment and the node to be traversed are considered to be in the same coordinate system in function " intersects( node.getBound()) ".

As in my program, the node is defined in global coordinate, but the drawables are far away from the origin. The LineSegments are defined in another coordinate system with start point (0,0,0) and a length of 200. Only if I put a drawable at the origin of the global system, the other drawables far away from the origin can be detected by the Linesegment, or else nothing is detected, though they should be.

Is there something wrong with my application or is that a bug with LineSegmentIntersector? I use osg version 3.0.0-2ubuntu1.

Thank you very much in advance!

Best regards

Shuiying
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to