Light radius too big?

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
fortikur
Posts: 25
Joined: Tue Nov 15, 2005 3:59 pm
Location: Hungary

Light radius too big?

Post by fortikur »

I have a mesh placed in the scene:

Code: Select all

core::vector3df human=node->getPosition();
human.X=158;
human.Z=-858;
human.Y=0;
node->setPosition(human);
and I have a light:

Code: Select all

 scene::ILightSceneNode * feny = device->getSceneManager()->addLightSceneNode( 0 ); 
   feny->setPosition(core::vector3df(131,323,-185)); 
   feny->getLightData().AmbientColor = video::SColorf( 0,0,0 ); 
   feny->getLightData().DiffuseColor = video::SColorf( 0.5f, 0.5f, 0.5f ); 
   feny->getLightData().Position = feny->getPosition() ; 
   feny->getLightData().Radius = 100.0f ;
as you can see, the Z distance between the light and the model is about 670 units. The radius of the light is set to 100.

But how can it be, that the model gets any light if it is out of the radius? It should be completely dark, shouldn't it? or.....
Post Reply