[osg-users] osg pick problem

Robert Osfield robert.osfield at gmail.com
Fri Jul 25 02:03:37 PDT 2008


Hi Forest,

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.

Robert.

2008/7/25 forest37 <forest37 at 163.com>:
>  hi,all
>
>     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
>
> forest
>
>
>
>
> ________________________________
> 22元超值饭面,8.5折纯珍比萨,必胜宅急送网上点餐优惠多
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>


More information about the osg-users mailing list