I have been trying to addLightSceneNode and parent it to the player node. The code compiles, but i see no light. I would really appreciate it if somebody helped point me in the right direction.
Here is my code for adding a light( based on API documentation http://irrlicht.sourceforge.net/docu/cl ... 37ccdb7095)
Code: Select all
// add light to player scene node
scene::ILightSceneNode* light1 =
smgr->addLightSceneNode(
smgr->getActiveCamera(), //parent node
core::vector3df(0,0,0),
video::SColorf(0.5f, 1.0f, 0.5f, 0.0f), 200.0f);- setting a light to a parent node does not also set the original pos of the light also(parameter 3)
the light is not being rendered
i am not setting the parent correctly
http://irrlichtirc.g0dsoft.com/paste/328
