[osg-users] Alpha Transparency control

Paul Martz pmartz at skew-matrix.com
Tue Aug 28 12:46:19 PDT 2007


Take a look at glBlendColor in the blue book. In OSG, the BlendColor
StateAttribute provides glBlendColor support.
   -Paul


> -----Original Message-----
> From: osg-users-bounces at lists.openscenegraph.org 
> [mailto:osg-users-bounces at lists.openscenegraph.org] On Behalf 
> Of Robert Balfour
> Sent: Tuesday, August 28, 2007 9:42 AM
> To: osg-users at lists.openscenegraph.org
> Subject: [osg-users] Alpha Transparency control
> 
> I want to put a stateset on top of a model subgraph to 
> override the alpha values of all its vertices, in order to 
> have global control of the model transparency. What's the 
> appropriate way to set this up using BlendFunc, 
> BlendEquation, etc.?  Or is the only way to traverse the 
> subgraph and change all the alpha values of each vertex individually?
> 
> Thanks.
> 
> 
> Bob.
> --
> Robert E. Balfour, Ph.D.
> Exec. V.P. & CTO,  BALFOUR Technologies LLC 960 South 
> Broadway, Suite 108, Hicksville NY 11801
> Phone: (516)513-0030  Fax: (516)513-0027  email: bob at BAL4.com 
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-opensce
negraph.org



More information about the osg-users mailing list