Vincent You post your initial question at a little over 2 hours ago.. you need to give people time to possibly respond maybe 1-2 days http://www.catb.org/~esr/faqs/smart-questions.html also a search of the mailing list archive will throw up quite a few discussions and solutions on this very subject
_____ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Vincent Bourdier Sent: Friday, July 11, 2008 8:54 AM To: osg Subject: Re: [osg-users] Transparency on a drawable No one have any idea of how to set an alpha transparency level on a geometry ? It has no texture, juste one color... Thanks, Regards, Vincent. 2008/7/11 Vincent Bourdier <[EMAIL PROTECTED]>: Hi All, Just a simple question on how to set a transparency effect on a drawable. My geode contains 2 drawables, and I need only one to be transparent... I've tried : double opacity = 0.1; osg::StateSet* state = mygometry->getOrCreateStateSet(); state->setMode(GL_BLEND,osg::StateAttribute::ON|osg::StateAttribute::OVERRID E); osg::Material* mat = (osg::Material*)state->getAttribute(osg::StateAttribute::MATERIAL); if(!mat) { mat = new osg::Material; mat->setAlpha(osg::Material::FRONT_AND_BACK, opacity); state->setAttributeAndModes(mat,osg::StateAttribute::ON); } Lightning is already set to ON... But nothing appear transparent... Thanks, Regards Vincent.
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

