Hello,
I am making a platformer game using Java and LWJGL.
I've run into a problem: when the camera moves, the tiles flicker...
I am using glTranslatef to translate...The camera can only move in y direction.
It is flickering more when in windowed mode, but is noticeable in full screen too. I do have v-sync enabled.
This has happened to me before, and I asked a question here on GameDev (http://www.gamedev.net/topic/663208-texture-error-when-camera-moves/), but the answers didn't help me. One of the answers was that it could be z-fighting but I tried to disable GL_DEPTH_TEST, increase clear depth and other stuff but it didn't work.. I'm not sure if it is a problem in code, or with my graphics card and drivers...
Has anyone encountered this? How did you solve it?
Thanks.
PS: Just a note, I am using texture atlases (divide coordinates by texture width/height so they are between 0.0f and 1.0f).