Hello Glenn,

> Is there a way to tell the osgUtil::IntersectionVisitor to stop searching
> once it finds one (or "n") intersections?

I don't know about IntersectionVisitor, but Adrian Egli's kdTree  
implementation for OSG supports this (in that case, it's to make  
raytracing shadows faster - you check a line segment between the  
current surface point and the light(s), and if there is an  
intersection you know the point is in shadow; no need to check for  
more than one intersection).

However, that contribution is currently not fit for integration into  
OSG. I have promised to do some work on that, but am currently too  
busy finishing up my Masters thesis... Once that's done I'll be able  
to put some work on this. In addition, the kdTree structure is a whole  
lot faster for the actual intersection test, especially if all the  
geometry is rigid (non-deforming - transformations by Transform nodes  
is OK).

Sorry for the bad news, but I wanted you to know that something's  
coming, just that it's not there yet.

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

Reply via email to