blender, obj, and transparent texture

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
paooolino
Posts: 50
Joined: Wed Dec 21, 2005 12:17 pm
Location: Brescia, Italy
Contact:

blender, obj, and transparent texture

Post by paooolino »

Hi guys. I'm trying to apply a transparent texture on the default cube of Blender. The texture is a .png 256x256 image.

The texture is UV mapped. In the blender 3D window the texture looks correctly transparent, but as I export the .obj model and load it into irrlicht, the transparent zones are rendered as black.

I managed to set a transparency playing with the cube default material values, setting the ALPHA value in the material tab to 0.000. The result is that, although correctly transparent in irrlicht, the other colors of the texture looks modified - very lighter than they should be.

I've tried also setting z-transp, and map-input to UV and map-to to ALPHA but the result is identical.

The .obj is exported with default values for the exporter options.

Anyone can help?

thanks
paooolino
Posts: 50
Joined: Wed Dec 21, 2005 12:17 pm
Location: Brescia, Italy
Contact:

Post by paooolino »

sorry, I find the solution. Just put

Code: Select all

node->setMaterialType(EMT_TRANSPARENT_ALPHA_CHANNEL_REF);
in the code :)
Post Reply