1 May 2006 14:25
Re: Re: Transparent subtrees
I'm glad I didn't start coding what I said. Thank you SO much! It works:) -Gazi On 01/05/06, Paul Melis <p.e.c.melis@...> wrote: > You don't have to change every stateset in the subtree. You can have a > stateset that only contains the attribute you want to override that is > set on a parent of your subtree. > > E.g. (c++ peusdo-code) > > m = osg.Material(); > m.setAlpha(osg::Material::FRONT_AND_BACK, /*desired alpha*/ 0.5); > > ss = osg.StateSet(); > // override alpha setting of downstream nodes (statesets) > ss.setAttribute(m, osg::StateSet::OVERRIDE); > > g = osg.Group() > g.setStateSet(ss) > g.addChild(<subtree>) > > Paul > > > Gazi Alankus wrote: > > > Let me answer my own question for future reference, > >(Continue reading)
Patrik
_______________________________________________
osg-users mailing list
RSS Feed