[osg-users] Alpha Transparency control
Robert Balfour
bob at BAL4.com
Thu Aug 30 06:17:57 PDT 2007
I'm not current. This browser package I was using is probably still at
1.2, so I guess that explains it. It's always hard to find time for
"planned" upgrades - especially when it's working, until something you
need isn't working in a older version :)
Bob.
Robert Osfield wrote:
>
> Hi Bob,
>
> Which version of the OSG are you using? Check the src/osgPlugins/osg/
> directory to see if it has BlencColor.cpp, if not its time to update
> your OSG version :-)
>
> Robert.
>
> On 8/29/07, Robert Balfour <bob at bal4.com> wrote:
> > 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
> > _______________________________________________
> > osg-users mailing list
> > osg-users at lists.openscenegraph.org
> > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> >
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
More information about the osg-users
mailing list