[SOLVED] HELP! .x file with alpha texture error!

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
bandinopla
Posts: 28
Joined: Fri Nov 24, 2006 11:05 am

[SOLVED] HELP! .x file with alpha texture error!

Post by bandinopla »

i have a model in 3dmax that have a tga texture on it, i also try with png. So in 3dmax i only see the non alpha parts of the image. When i export with PandaExporter and load it in irrlicht, i dont see the texture as tga, i see the texture like a jpg, white where it should be transparent.

Some1 know how can i solve this problem?
I only load the .x file, i dont set the texture via irrlicht, so ther is no way i can turn some kind of alpha flag on the model...

:(
Last edited by bandinopla on Tue Jul 31, 2007 2:30 am, edited 1 time in total.
bandinopla
Posts: 28
Joined: Fri Nov 24, 2006 11:05 am

Post by bandinopla »

ok, solved...

using: xFile->setMaterialType(video::EMT_TRANSPARENT_ALPHA_CHANNEL);

thanks to: http://irrlicht.sourceforge.net/phpBB2/ ... ight=alpha
Post Reply