Hi Stephan

Yes GL_BLEND is on :

osg::StateSet* state = g->getOrCreateStateSet();
>
> state->setMode(GL_BLEND,osg::StateAttribute::ON|osg::StateAttribute::OVERRIDE);
>     osg::Material* mat =
> (osg::Material*)state->getAttribute(osg::StateAttribute::MATERIAL);
>     if(!mat) {
>         mat = new osg::Material;
>     }
>     mat->setAlpha(osg::Material::FRONT_AND_BACK, alpha);
>     state->setAttributeAndModes(mat,osg::StateAttribute::ON);
>     state->setRenderingHint(osg::StateSet::TRANSPARENT_BIN);
>     state->setMode(GL_LIGHTING, osg::StateAttribute::OFF);
>



2008/7/11 Stephan Maximilian Huber <[EMAIL PROTECTED]>:

> Hi,
>
> Vincent Bourdier schrieb:
>
>> Lightning is already set to ON...
>>
>> But nothing appear transparent...
>>
> is GL_BLEND enabled? a.ka. state->setMode(GL_BLEND,
> osg::StatetAttribute::ON);
>
> cheers
> Stephan
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to