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: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On Behalf > > Of Robert Balfour > > Sent: Tuesday, August 28, 2007 9:42 AM > > To: [email protected] > > 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: [EMAIL PROTECTED] _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

