I have a textured box. When I (the player) is outside the box the texture flickers in and out of existence whenever the player is moved or rotated. When I am inside the box everything is stable. I have tried gl.glFrontFace with both options to no avail. The problem could lie in the exporter except that the box appears as it ought in LWJGL with comparable code. Also, for some reason models imported into JOGL seem to be scaled down even though no glScale has been applied… they are definitely of a smaller size than the same models brought into LWJGL.
I had glu.gluPerspective(60.0, ratio, 0, 20); The 0 defining the near plane caused the textured model to flicker. By setting the near plane to 0.1 the issue has fixed. I do not know why if somebody could tell me.