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
blender, obj, and transparent texture
sorry, I find the solution. Just put
in the code ![Smile :)](./images/smilies/icon_smile.gif)
Code: Select all
node->setMaterialType(EMT_TRANSPARENT_ALPHA_CHANNEL_REF);
![Smile :)](./images/smilies/icon_smile.gif)