Hello.
I started not long ago to study jogl to develop an app with it. For testing purposes I created a 3D map of the earth that can be viewed from different positions. The map is composed of many triangles to generate a 3d view of the heights on earth, and is covered with a geographical map of the earth as texture. As the map has a rectangular shape, I draw a box around to hide the back face.
The problem I have is that, on some platforms ( mainly Linux ), rotating the map with 180 degrees, the back face, although should be in front of the map, is obscured partially by the turned over map.
The effect changes when I change glDepthFunc params. I use GL_LEQUAL normally.
I also must mention that I first draw the map, and then the border ( box ). If I change the order, the effect also changes ( box over map ).
I recently updated my debian and the problem doesn’t shows up any more, but on other linuxes it is there. Also, on windows this efect never appeared.
If there is anyone who can help me, I would greatly apreciate it.
Also, the demo I’m talking about can be found at http://wn1.rogrid.pub.ro/~mluc/#map3