Hi,

I tried with the following code to get fading effect from the node  to be 
rendered . I don't get the effect. I wud like to know where I do mistake.
.....
........
.........
osg::stateSet* statSet=node->getOrCreateStateSet();
statSet->setMode(GL_LIGHTING, osg::stateAttribute::OFF);
statSet->setMode(GL_BLEND, osg::stateAttribute::ON);
statSet->setRenderingHint(osg::stateSet::TRANSPARENT_BIN);

osg::ref_ptr<osg::Material> material=new osg::Material;
material->setAlpha(osg::Material::face::FRONT_AND_BACK,0.5);
statSet->setAttribute(material.get());
....
.....
.......





Thank you!

Cheers,
Akilan

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=20859#20859





_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to