Skip to main content
gamedev.net
🔒 Locked

Light Direction Problems

Started by Programmer101 Aug 19, 2006 at 2:17 PM 0 replies 700+ views
Original Post
Programmer101
Programmer101
Hey, recently I have been creating a simple 1st person OpenGL program. I have everything set up from the lights to terrain and controlls. My problem is that, when facing directly down the z axis (towards the negative z values) my terrain which is created from triangle strips appears very dark. When I move to the other side of the terrain and look the opposite way I was, at the same spot on the terrain, it is fully lit. Can anybody help me? A complication is that this only happens to my terrain, not the other models. I thought a few possiblilities for that were the fact that the terrain had no normals, and it was a triangle strip, not just gl_triangles?
ViLiO
ViLiO
Quote:
Original post by Programmer101
I thought a few possiblilities for that were the fact that the terrain had no normals, and it was a triangle strip, not just gl_triangles?

There is your reason right there, for OpenGL lighting to work, you need normals. The triangle strip/list thing will make no difference though.

Regards,
ViLiO
Richard 'ViLiO' Thomasv.net | Twitter | YouTube

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.