Sign in to follow this  
Programmer101

OpenGL Light Direction Problems

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this