Hello everybody.
I have loaded a bitmap in a 3D world to use it as an enemy. First I've used the 'SpecialFX' example code for it, but than the level turned black at some moments. Now I've changed some parts of the code with the code from the Techdemo, but now it's the bitmap that turns black at most of the time.
This is my code for loading the bitmap:
scene::IBillboardSceneNode* bill = 0;
bill = smgr->addBillboardSceneNode(bill, core::dimension2d<f32>(30, 30),core::vector3df(-70,80,0));
bill->setMaterialFlag(video::EMF_LIGHTING, false);
bill->setMaterialTexture(0,driver->getTexture("data/textures/enemies/boss1.bmp"));
bill->setMaterialType(video::EMT_TRANSPARENT_VERTEX_ALPHA);
Does somebody know what's wrong with this? I think it has something to do with lighting, but I don't know what it is.
Thanks in advance.