I've been fighting with lights for the last 2 days and just can't seem to figure out what I'm doing wrong. I've tried multiple bsp files with and without lightmaps. All I'm trying to do is get one dynamic light to work. I'm using the Quake Level tutorial and have added the following lines for the light:
Code: Select all
node->setMaterialType(video::EMT_SOLID); //node is the level
scene::ISceneNode* lightNode = 0;
lightNode = smgr->addLightSceneNode(node, core::vector3df(0,0,0), video::SColorf(1.0f, 1.0f, 1.0f, 1.0f), 600.0f);
It seems as though any cylinders get full light and everything else gets no light. Either way all mats ignore the light.
I'm using gtkRadiant 1.5 to create the levels, I've tried D3D9, OpenGl and Software renderer's and none seem to work.
Any ideas would be appreciated.
