Hi, I solved. The Problem is a null pointer of material, after : osg::Material * material = (osg::Material *) wireframe_subgraph->getOrCreateStateSet()->getAttribute(osg::StateAttribute::MATERIAL); command.
I solved simply in this way : osg::Material * material = new osg::Material(); material->setTransparency(osg::Material::FRONT_AND_BACK, 1. - Opacity); wireframe_subgraph->getOrCreateStateSet()->setRenderBinDetails(0, "transparent"); wireframe_subgraph->getOrCreateStateSet()->setMode( GL_BLEND, osg::StateAttribute::ON ); wireframe_subgraph->getOrCreateStateSet()->setRenderingHint(osg::StateSet::TRANSPARENT_BIN); wireframe_subgraph->getOrCreateStateSet()->setAttributeAndModes(material, osg::StateAttribute::OVERRIDE); ... Sorry. Andrea ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=37886#37886 _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org