Hi Robert and John, 2013/2/15 Robert Osfield <[email protected]>
> > have scene graphs that embed Camera's and need an unbounded ray > intersection then they should use a RayIntersector from the start. > > So that's why I'm submitting this patch, which in my opinion can solve the near/far problem for cameras in scene graph. :-) Robert, you may review it and discuss if it is appropriate for the trunk with me when you have time. I agree that there can be two classes: LinesegmentIntersector and RayIntersector. It is the users who will need to care about which to choose. And having two different intersectors will help differentiate which kind of intersection test we just made. People may directly write code with a new RayIntersector instance if they need to do so, instead of using viewer.computeIntersections(). In most cases I don't see too much efficiency difference of the two (if we can solve the near/far problem caused by slave and embedded cameras this time) so maybe it is not a question for the viewer itself to automatically decide which one must be used. Thanks, Wang Rui
_______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
