Movement and lighting

Started by Rainer, April 24, 2007, 07:38:01

Previous topic - Next topic

Rainer

Hi there
Anytime i solve a problem i ran into e new one  ::)

I did a small Landscape and set up lighting like
http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=07

Then, i did the moving through the scene like described in
http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=10

Now the problem is, there is a borderline from west to east, in front of it it's bright, behind it's dark. This line moves with the player, it's always located at the players position.
How can i get a lighting that makes sense?

Rainer

Problem solved, moved lighting initialisation to the render loop  ::)