Page 1 of 1

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

Posted: Tue Jul 31, 2007 2:14 am
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...

:(

Posted: Tue Jul 31, 2007 2:30 am
by bandinopla
ok, solved...

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

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