[osg-users] StateAttribute inheritance

2008-03-24 Thread Virginia Holmstrom
I am trying to export osg to a vrml2 file. I am using a node visitor and am trying to retrieve the material properties from the node. I am using StateSet-getAttribute to retrieve the state attribute for a specific node. However, to the best of my understanding, this attribute does not

Re: [osg-users] StateAttribute inheritance

2008-03-24 Thread Robert Osfield
Hi Virginia, The inheritance of state is done dynamically during the cull traversal, its not embedded in the scene graph. If you want the effect of state inheritance you'll need to accumulate the state yourself. StateSet has a merge function that can help you with this. Robert. On Mon, Mar