On 7 May 2010 10:56, Simon Hammett <[email protected]> wrote:
>
> Andrew:
>
> The easiest way is to derive your own visitor and override apply(Node&)
>
> void NodeVisitor::apply(Node& node)
> {
> if(isPickableAndVisible(node)
> traverse(node);
>
> }
>
Opps, that's a little terse:
Have a look in osgViewer/View.cpp
bool View::computeIntersections(...)
Copy that setup code and replace the following line with your own derived
IntersectionVisitor.
osgUtil::IntersectionVisitor iv(picker.get());
That's for 2.8.2; don't know if there's an easier way to do it, but if use
your own visitor you
can make then make the selection criteria what ever you want easily.
--
http://www.ssTk.co.uk
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org