I’m writing a few very simple demos for a presentation I’m about to do. I have a single quad which I animate by rotating around all its axis. The problem is that I get a very annoying flickering at the edges of the quad when animating the scene. I’ve tried several variations on this with the same result. I use a GLCanvas in an AWT Frame (with the background color set to the same as in the one I use in glGlearColor) and the recommended VM-parameters (-Dsun.java2d.opengl=true -Dsun.java2d.noddraw=true -Dsun.awt.noerasebackground=true). I guess I’m missing something here but I just can’t figure out what I’m doing wrong.
I’ve attached the code so that you can see what I’m doing. Very simple demo, pressing space will start/stop the rotation and escape will quit. Any suggestions for avoiding the flickering at the edges would be appreciated.