You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers. No questions about C++ programming or topics which are answered in the tutorials!
Can somebody explain me how to load .x models with transparent textures?
As im understand Irrlicht not support alpha channel in tga textures , ok , im
use next code for set transparent textures on my Tree models
for(int i=1;i<TreeModel->getMaterialCount();i++)
{
video::SMaterial mat = TreeModel->getMaterial(i);
TreeModel->getMaterial(i).MaterialType = irr::video::EMT_TRANSPARENT_ALPHA_CHANNEL;
driver->makeColorKeyTexture(mat.Texture1,core::position2d<s32>(0,0));
}
Its worked , but its ruine all particles and billboards in scene!!! Particles
simple go to invisible and billboards have incorrect z-order ;(
Can somebody give me worked example for loading .x models and set
transparent color for part of model.
Tnx afecelis , but its stupid way.
Im want normal models with lighting , optionals shadow (Shadows impossible on Tree models) , etc
Currently its seems like a bug ;(
To Niko:
Any answer? Its a bug? if bug then can it be fixed in 0.7?