Hi, I dont see that you are doing anything wrong... It was not working for me either though but I think you messed somehow the logic up.
Here is an example based on what you sent which makes the model (I used cow.osg) fade in/out. Hope this helps ----- Original Message ---- From: Dieter Pfeffer <[EMAIL PROTECTED]> To: [email protected] Sent: Thursday, July 24, 2008 3:30:37 PM Subject: [osg-users] transparency becomes dark Hi I am trying to set the object transparency from 1.0 -> 0.0 and vice versa; but when I start changing the alpha of the material the object becomes dark. I have changed the material parameters but without success; when I look in the loaded model (for example cow.osg) for material, the material is always null. I have modified the osgviewer example and attached it. Could s.o. give me a hint what I am doing wrong ? Thanks Dieter Unclassified Mail Disclaimer: This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender and delete this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. Considering the inherent risks of the use of e-mail communication, Thales Nederland BV shall not be liable for any damage derived from it. Thales Nederland BV is seated in Hengelo (Ov.), the Netherlands, and registered at the Chamber of Commerce under number 06061578.
osgviewer_alpha.cpp
Description: Binary data
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

