On 9/29/2011 4:44 PM, David Glenn wrote:
Turns out that what you did worked but if you looked at the object that I gave 
you, it's solid ( its suppose to be transparent) The transparency is set at a 
node that is labeled WATER that introduces the transparency to the face 
(Primary) color.

Hi David -- I finally got a chance to take a look at this. Comments below.

  So my partner (John Markano) looked at GeometryRecords.cpp around some ware 
after line 431 (OSG 3.0.1) or 331 (OSG 2.8.1) he added the line:

Code:

_PrimaryColor.a() = 1.0 - getTransparency();



Then he thought this would have unwanted side effects

I agree. :-)

  (even though I didn't see any) and adopted a change in the same file but at 
line 257 (OSG 3.0.1) or 157 (OSG 2.8.1) change the code:


Code:

colors->push_back(_PrimaryColor);




to the line :


Code:

colors->push_back(osg::Vec4(_PrimaryColor.r(), (_PrimaryColor.g(), 
(_PrimaryColor.b(), 1.0 - getTransparency()));

I zero'd in on the exact same change. I think this is the right thing to do. I'll post this to osg-submissions shortly.
   -Paul



_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to