Jump to content
  • Advertisement
Sign in to follow this  
Programmer101

OpenGL Light Direction Problems

This topic is 4327 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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?

Share this post


Link to post
Share on other sites
Advertisement
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

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!