Hi. I'm implementing node picking. As I understood, the usual approach is: 1) go through all nodes and set their node masks to some custom value like 0x1 2) set pickable/selectable node masks to some custom value like 0x2 3) set osgUtil::IntersectionVisitor's traversal mask to 0x2 4) IntersectionVisitor visits only those nodes that have 0x2 mask
I think the following approach is easier: 1) set pickable/selectable node masks to some custom value like current_node_mask MINUS 0x2 2) set IntersectionVisitor's traversal mask to default_node_mask MINUS 0x2 3) IntersectionVisitor visits only those nodes that have 0x2 mask EXCLUDED Am I correct with my assumption? Can OSG do that? Or why doesn't it do that? Thanks.
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

