Hi Martin,
Some of this I can do with stateattribute so that eg. a gridline is always
drawn with no lighting but for things like picking the intersector visitor must
explicitly know to ignore a grid.
The point was to make a distinction between real model elements and
'decoration' elements - I just wondered if there was a common practice way of
doing this.
Why not just devote a bit in the nodemask for such elements? Then you
set the intersection visitor's traversal mask to ignore those elements.
const unsigned int NODEMASK_UNPICKABLE = 0x1000; // whatever
iv->setTraversalMask(~NODEMASK_UNPICKABLE);
That's how we do it.
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