[osg-users] Alpha Transparency control
Robert Balfour
bob at BAL4.com
Wed Aug 29 09:45:24 PDT 2007
Thanks Paul. I have it working now. It works fine from code, but I
think I noticed that when I save the model subgraph out to an .osg file,
I did not see any stateset reference to BlendColor (or BlendEquation for
that matter), only the BlendFunc I set up, in the .osg file? So if I
reload the saved model just from the .osg file, BlendColor is not set
up? Am I missing something or is this expected?
Bob.
Paul Martz wrote:
>
> 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
More information about the osg-users
mailing list