Irrlicht lighting problem

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
Error1312
Posts: 23
Joined: Fri Dec 26, 2003 8:32 pm
Location: Belgium

Irrlicht lighting problem

Post by Error1312 »

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.
Post Reply