Dear All
I have a questions about transparency.
I set the transparency of some nodes by these commands:

osg::StateSet* state = MyNode->getOrCreateStateSet();
osg::ref_ptr<osg::Material> mat = new osg::Material;
mat->setAlpha( osg::Material::FRONT_AND_BACK, trasparence );//Potrei 
risparmiarlo(tanto ci pensa il trasformer)
state->setMode( GL_BLEND, osg::StateAttribute::OVERRIDE | 
osg::StateAttribute::ON );
state->setMode( GL_CULL_FACE, osg::StateAttribute::OVERRIDE | 
osg::StateAttribute::ON );
state->setAttribute( mat.get() );

What happen is that I can see the transparency if I overlap the drawable with 
some objects...but overlapping the same drawable with other objects it doesn’t 
work...it seems that there is an order...does it depend by the Bin 
concept?...how can avoid it?


------------------------------------------------------
Passa a Infostrada. ADSL e Telefono senza limiti e senza canone Telecom
http://click.libero.it/infostrada

_______________________________________________
osg-users mailing list
osg-users@openscenegraph.net
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to