|
Lighting Problem
Anyone know what I could do to check to see what is wrong with the below? The OpenGL code is pretty much straight from Lesson 7 of NeHe''s tutorials.
What happens is when the cube face that is facing the viewer turns away the "light" dims out, then when the cube face that was facing the viewer turns back toward the viewer again, the light fades back brighter.
It''s like the light itself is turning off and on when the 1 cube face faces the viewer. But as you can see from the code below I don''t change any of the lights propteries.
Below is the code I am using. I have included all the OpenGL code I am using besides what is needed to just create the window.
The program you can see this happening is here.
I did not include the image, you will get an error but the program will still run. Otherwise you can just supply your own image if you want.
-X-
How could I say ?
For lighting, you have a few rules to know :
you might define the normals
you may define the normals
you should define the normals
you ''d better define the normals
you gotta define the normals
you have to define the normals
you need to define the normals
you must define the normals
understand ?
For lighting, you have a few rules to know :
you might define the normals
you may define the normals
you should define the normals
you ''d better define the normals
you gotta define the normals
you have to define the normals
you need to define the normals
you must define the normals
understand ?

This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement