Hi,

I'm the original poster, and the problem I had is that I cannot use a
material, because it will modify the state set, that is common for a lot of
other geodes...

But thanks for the answers, maybe i'll have some kind of revelation with
your help.

Can't it be interesting for OSG to have a setTransparency() method on a node
? using material or something else, but working in each case...

Thanks.

Regards,
   Vincent.

2009/6/9 Jason Daly <[email protected]>

> Andrew Cunningham wrote:
>
>> Adjusting the material color alpha will work for some geometries but I
>> have other  geometries where each vertex has a BIND_PER_VERTEX color ( think
>> of a contour plot of a value), so I would still need to adjust the alpha of
>> each vertex color.
>>
>>
>
> Actually you don't (unless you need a different alpha for each vertex).
>  Normally, the material's settings will override the color array values.
>  However, if you set the Material's color mode to some value other than
> NONE, the material color for that element (AMBIENT, DIFFUSE,
> AMBIENT_AND_DIFFUSE, SPECULAR, or EMISSION) will be replaced by the vertex
> color.  Unless you doing something fancy, you can typically set the color
> mode to AMBIENT_AND_DIFFUSE, which lets you make use of your vertex colors,
> but vary the alpha as you need to.
>
> Look in the red book, or the glColorMaterial man page for more info.
>
> --"J"
>
>
> _______________________________________________
> 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