Hello Eduard,
I think that's still a bit beyond my osg/gl skills, and more so given my
time frame; hence the convenience of using library code.
I just checked, there doesn't seem to be this specifically, but you
could use osgUtil::PolytopeIntersector for this. It would be pretty slow
if you use it directly, because the default intersectors will build a
list of all intersections (because you might want the closest one, for
raytracing, for example). But you could subclass PolytopeIntersector and
just check the bounding volumes of drawables, for example.
I realize this may still be too complex for what you want to do and your
time frame, but it would be feasible. I may look into submitting some
basic test-intersection (versus find-intersection, which is what we have
now) to Robert some time in the future. It seems generally useful to me.
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