[osg-users] transparency becomes dark

dimi christop dimi_christop at yahoo.com
Fri Jul 25 01:15:33 PDT 2008


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 <dieter.pfeffer at nl.thalesgroup.com>
To: osg-users at lists.openscenegraph.org
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.


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20080725/b0ab8631/attachment-0003.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: osgviewer_alpha.cpp
Type: application/octet-stream
Size: 8041 bytes
Desc: not available
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20080725/b0ab8631/attachment-0003.obj>


More information about the osg-users mailing list