[osg-users] Transparency on a drawable
gordon.tomlinson at sensor.com
Fri Jul 11 06:59:50 PDT 2008
You post your initial question at a little over 2 hours ago.. you need to
give people time to possibly respond maybe 1-2 days
also a search of the mailing list archive will throw up quite a few
discussions and solutions on this very subject
From: osg-users-bounces at lists.openscenegraph.org
[mailto:osg-users-bounces at lists.openscenegraph.org] On Behalf Of Vincent
Sent: Friday, July 11, 2008 8:54 AM
Subject: Re: [osg-users] Transparency on a drawable
No one have any idea of how to set an alpha transparency level on a geometry
It has no texture, juste one color...
2008/7/11 Vincent Bourdier <vincent.bourdier at gmail.com>:
Just a simple question on how to set a transparency effect on a drawable.
My geode contains 2 drawables, and I need only one to be transparent...
I've tried :
double opacity = 0.1;
osg::StateSet* state = mygometry->getOrCreateStateSet();
osg::Material* mat =
mat = new osg::Material;
Lightning is already set to ON...
But nothing appear transparent...
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the osg-users