
this lighting is fine. its a rotating light though and when it moves over a little bit it gets unusual results.

This is my current lighting code
Code: Select all
scene::ISceneNode* lights = 0;
lights = smgr->addLightSceneNode(0, core::vector3df(0,0,0),
video::SColorf(1.0f, 0.6f, 0.7f, 1.0f), 600.0f);
scene::ISceneNodeAnimator* anims = 0;
anims = smgr->createFlyCircleAnimator (core::vector3df(0,60,0),50.0f);
lights->addAnimator(anims);
anims->drop();
lights = smgr->addBillboardSceneNode(lights, core::dimension2d<f32>(50, 50));
lights->setMaterialFlag(video::EMF_LIGHTING, false);
lights->setMaterialType(video::EMT_TRANSPARENT_ADD_COLOR);
lights->setMaterialTexture(0, driver->getTexture("media/particlewhite.bmp"));
lights->setID(ID_IsNotPickable);
I don't understand why it gets all bright/reflective and stuff. Are there any methods i can use to prevent this from happening?