Anyone??


From: "Jan Waterman" <[EMAIL PROTECTED]>
Reply-To: osg users <[email protected]>
To: [email protected]
Subject: [osg-users] Problem with Opacity map in OSG model
Date: Wed, 17 May 2006 15:13:51 +0200

Hi everybody,
 
I've exported a scene from 3DS Max with several objects on a floor. I've added a light above it so I can see the shadows of the objects. I made a lightmap texture for the floor by using Render to Texture. I chose this texture as an opacity map for the floor and it seemed to work fine.
 
Next thing. I used the exporter OSGExp to get the OSG file format. The lightmap was succesfully exported as a new .tif file. However, when viewing the OSG model, the lightmap doesn't seem to work... But when I look at the model in OSGEdit, I do notice a geode with a drawable that contains a StateSet. This StateSet consists of a Material, a BlendFuc and two tex unit 0's with a Texture2D attached. One tex unit 0 contains the texture of the floor, the other one contains the lightmap and has a TexEnvCombine attached as well. The BlendFunc source is set to Source alpha and the Destination is set to One minus source alpha.
 
Can anyone tell me what I'm doing wrong here? I'm really running out of ideas now. Is it even possible to use opacity maps in OSG?
 
Greets,
Jan

>_______________________________________________
>osg-users mailing list
>[email protected]
>http://openscenegraph.net/mailman/listinfo/osg-users
>http://www.openscenegraph.org/

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to