Greetings Paul:

I thought I was going to get a break, but I guess that there is no rest for the 
weary. Good news is that I have this guy that on-board that's on top of that. 

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. 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 (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())); 




Both seem to work in my perspective, but I was wondering what you thought or 
you had a better idea!

... 
David Glenn – D Glenn Computer Graphics & Media Systems

------------------------
D Glenn (a.k.a David Glenn) - Moving Heaven and Earth!

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=43123#43123





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to