Hi Martin, Often times you can use either a nodemask or Switch node to do the same thing. I look at nodemasks as an encoding of a node state that is more than just on or off. For example, a nodemask can have one bit indicate it is a shadow caster and another bit for shadow receiver. When a nodemask can have a state other than on/off and you want to turn nodes on/off, it's often cleaner to use a Switch node than to keep track of Node and nodemask pairs.
---- Tom Jolley > From: Martin Beckett > > New in a series of embarrassing newbie questions :-* > > When do I need a switch node if I have a nodemask? > > Suppose I have a number of components to a model > (wings/body/wheels etc) these are all children of a single > parent node and each have a nodemask allowing them to be > switched on/off individually. > The same functionality is achieved by inserting a switch node > and setting the value for each child. > > Why - is there extra functionality from the switch, is there > a limitation of the nodemask? > > thanks > Martin > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=16645#16645 > _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

