Hi Stephan<br><br>Yes GL_BLEND is on : <br><br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">osg::StateSet* state = g->getOrCreateStateSet();<br>
    state->setMode(GL_BLEND,osg::StateAttribute::ON|osg::StateAttribute::OVERRIDE);<br>    osg::Material* mat = (osg::Material*)state->getAttribute(osg::StateAttribute::MATERIAL);<br>    if(!mat) {<br>        mat = new osg::Material;        <br>
    }<br>    mat->setAlpha(osg::Material::FRONT_AND_BACK, alpha);<br>    state->setAttributeAndModes(mat,osg::StateAttribute::ON);<br>    state->setRenderingHint(osg::StateSet::TRANSPARENT_BIN);<br>    state->setMode(GL_LIGHTING, osg::StateAttribute::OFF);<br>
</blockquote><br><br><br><div class="gmail_quote">2008/7/11 Stephan Maximilian Huber <<a href="mailto:ratzfatz@digitalmind.de">ratzfatz@digitalmind.de</a>>:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
Vincent Bourdier schrieb:<div class="Ih2E3d"><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Lightning is already set to ON...<br>
<br>
But nothing appear transparent...<br>
</blockquote></div>
is GL_BLEND enabled? a.ka. state->setMode(GL_BLEND, osg::StatetAttribute::ON);<br>
<br>
cheers<br>
Stephan<br>
_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org" target="_blank">osg-users@lists.openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
</blockquote></div><br>