I’m new to opengl lighting, and I ran into a problem: the light keeps on turning off and on whenever I rotate/translate the camera (and thus when I rotate/translate everything in the scene). Please help. I have no clue what’s going on!
You need to give us more code for us to help you out.
That being said, if your polygons are on the same z-plane and you notice some flickering when rotating, this usually points to z-fighting.
What you can try to do is place your objects with tiny z-offsets apart. That always fixes my flickering.
Maybe he’s talking about the light that’s stationary in the viewspace.
Check the FAQ on lighting. That should really help you out on this.