Hi,
What I've done, is :
material->setAlpha(osg::Material::FRONT_AND_BACK,alpha);
> ...
> stateset->setMode(GL_BLEND,osg::StateAttribute::ON);
>
Regards,
Vincent.
2008/4/16, nicolas peña <[EMAIL PROTECTED]>:
>
> Hi all,
>
> I have and osg::Box that is drawn using a osg::ShapeDrawable and
> I want to make it transparent.
> I have tried using the setColor method of the osg::ShapeDrawable as I
> understand that the fourth value
> of the vector passed to it is used to set the alpha value, but it looks
> like I need to enable the
> transparency somewhere else has it is just use the RGB components of the
> passed vector and draw
> a solid Box.
> Where can I enable the transparency for the box? Or what I need to do?
>
>
> Thanks,
>
> Nicolas.
>
> _______________________________________________
> 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