[osg-users] osg pick problem
robert.osfield at gmail.com
Fri Jul 25 02:03:37 PDT 2008
The osg::Drawable class has an accept(PrimitiveFunctor&) method that
is used to extract the geometry information in a way that the
IntersectionVisitor can use, so if you want picking support then
you'll need to implement this.
2008/7/25 forest37 <forest37 at 163.com>:
> when i use the function computeIntersections to pick a drawable in the
> scene,it's Ok when i use osg::ShapeDrawable to build the scene。but the
> computeIntersections doesn't work when i use self drawing,
> I derive a class from osg::Drawable,and overwrite the function
> computeBound() and drawImplementation（）.
> why doesn't it work?
> thanks for any hint
> osg-users mailing list
> osg-users at lists.openscenegraph.org
More information about the osg-users