Hello Guest

Movement and lighting

  • 1 Replies
  • 4805 Views
Movement and lighting
« on: April 24, 2007, 07:38:01 »
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?

Re: Movement and lighting
« Reply #1 on: April 25, 2007, 07:54:36 »
Problem solved, moved lighting initialisation to the render loop  ::)