Hello Hawk (or is it Night? :-)
> I see that there is some "traversal mask" to be used. But did not find
> much info on how to use it? What should be the mask that I set to the
> Text HUD to make it non pickable?
Indeed, the node mask is probably the best way to make an object not
pickable.
Just set the HUD's node mask to something non-zero (so it's still
rendered) but not 0xFFFFFFFF (which is the default), for example 42.
Then pass a traversal mask of 0xFFFFFFFF - 42 or ~42 (NOT 42) to
computeIntersections.
The traversal mask and node mask of the object being considered are
ANDed together, and if the result is nonzero the object is added to the
intersections list. In the case above, 42 & ~42 gives 0, so the HUD will
not be picked.
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