Maybe the node that you changed it's StateSet but it did not really change inherit states from it's parents. There is some kind of priority mechanism in the stateset. StateAttribute:: OVERRIDE, PROTECTED, INHERIT. Mybe you can set your new stateattributes with the mode StateAttribute:: PROTECTED | StateAttribute::ON?
Guy. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alberto Luaces Sent: Thursday, April 03, 2008 9:28 AM To: OpenSceneGraph Users Subject: Re: [osg-users] Replacing a stateset. El Miércoles 02 Abril 2008ES 20:07:53 Dorosky, Christopher G escribió: > Do I need to do something to clean up the node if it already had a > shared stateset? Statesets as the rest of Referenced objects are reference counted, so if the ref_ptr that holds its address is pointed to another Stateset, the count for the first is decremented. If that count reaches 0, the object is automatically destroyed. That is, you haven't to do anything ;) _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org