So far I have tried using all the transparency setting listed in the documentation
- # EMT_TRANSPARENT_ADD_COLOR : irr::video
# EMT_TRANSPARENT_ALPHA_CHANNEL : irr::video
# EMT_TRANSPARENT_ALPHA_CHANNEL_REF : irr::video
# EMT_TRANSPARENT_REFLECTION_2_LAYER : irr::video
# EMT_TRANSPARENT_VERTEX_ALPHA : irr::video
Depending on the combination I get either nothing transparent or everything transparent. (the vertex alpha messes up the models).
Code: Select all
scene::ISceneNode * window = smgr->addMeshSceneNode(smgr->getMesh(path+"/towers1win.x"));
window->setPosition(core::vector3df(512,26.2,575));
window->setRotation(core::vector3df(0,90,0));
window->setMaterialFlag(video::EMF_LIGHTING, true);
window->setMaterialType(video::EMT_TRANSPARENT_ADD_COLOR);
(I placed a cube behind it so you could see the transparency)
