Directional Light & SW Renderer [solved]

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
LoneKiltedNinja
Posts: 4
Joined: Wed Sep 24, 2008 5:39 am

Directional Light & SW Renderer [solved]

Post by LoneKiltedNinja »

Would I be right in hypothesizing that the Burning renderer doesn't do directional lights? I'm currently wrapping my head around the engine with some simple coding trials on a stock cube. I have a directional light made with

Code: Select all

scene::ILightSceneNode* light2 =
		smgr->addLightSceneNode(0, core::vector3df(0,0,0),
		video::SColorf(0.0f, 0.0f, 0.0f, 0.0f), 800.0f);
light2->getLightData().AmbientColor=video::SColorf(0.3f,0.3f,0.3f,1.0f);
light2->getLightData().DiffuseColor = video::SColorf(1.0f,0.5f,0.5f,1.0f);
light2->getLightData().SpecularColor = video::SColorf(1.0f,0.8f,0.8f,1.0f);
light2->getLightData().Type=video::ELT_DIRECTIONAL;
light2->setRotation(core::vector3df(0,180,0));
but regardless of the rotation, the light behaves like a point light at whatever position I set it to. I have a crap graphics card with effectively no DirectX or OpenGL support until I get a new machine online, so I can't easily check whether the other renderers handle it correctly or whether I've just made a stupid error.

Edit: okay. New machine is up, and the directional light works. Now I just get to be annoyed that I'm sharing the only decent graphics card in the office with 4 other people :P
Post Reply