View Full Version : Flickering Light

06-09-2009, 03:39 PM
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!

06-09-2009, 07:06 PM
Hi Phynix,

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.

06-10-2009, 12:53 AM
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.