Lights go out after a short distance.

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
thesmileman
Posts: 360
Joined: Tue Feb 10, 2004 2:20 am
Location: Lubbock, TX

Lights go out after a short distance.

Post by thesmileman »

Hmm, my lights on a scene go out(they go black) on all objects except for billboard objects and particle system objects. I guess because the billboard and partical system are not dynamically lit.

Is this some sort of clipping problem with my dynamic light distance? If so how can I fix it?

Any help would be great! 8) Below is the code for my lights:

Code: Select all

// create light(s)
   scene::ISceneNode* light1Node = 0;
   light1Node = irrSceneMgr->addLightSceneNode(0, core::vector3df(-135,150,550),video::SColorf(1.0f, 01.0f, 1.0f, 1.0f), 50.0f);
    
   scene::ISceneNode* light2Node = 0;
   light2Node = irrSceneMgr->addLightSceneNode(0, core::vector3df(-415,150,548),video::SColorf(1.0f, 01.0f, 1.0f, 1.0f), 50.0f);

   scene::ISceneNode* light3Node = 0;
   light3Node = irrSceneMgr->addLightSceneNode(0, core::vector3df(-415,150,258),video::SColorf(1.0f, 01.0f, 1.0f, 1.0f), 50.0f);

   scene::ISceneNode* light4Node = 0;
   light4Node = irrSceneMgr->addLightSceneNode(0, core::vector3df(-135,150,259),video::SColorf(1.0f, 01.0f, 1.0f, 1.0f), 50.0f);
thesmileman
Posts: 360
Joined: Tue Feb 10, 2004 2:20 am
Location: Lubbock, TX

Post by thesmileman »

Can someone shead some light on the situation?
thesmileman
Posts: 360
Joined: Tue Feb 10, 2004 2:20 am
Location: Lubbock, TX

Post by thesmileman »

I know someone knows something about this problem! Please Help
Boogle
Posts: 162
Joined: Fri Nov 21, 2003 3:16 pm
Location: Toronto, Canada

Post by Boogle »

Do you have the EMF_LIGHTING option set to True on your objects? Also, give us a screenshot..
Post Reply