(stange hm,hm… mistake i mean strange)
My init code is:
glEnable(GL_TEXTURE_2D);
glShadeModel(GL_SMOOTH);
glClearColor(0.0f,0.0f,0.0f,1.0f);
glClearDepth(1.0f);
glEnable(GL_DEPTH_TEST);
glDepthFunc(GL_LESS);
glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST);
And when i try to display a cube there are strange triangles on the edges of the cube.
The triangles have textures of the back face.
When the cube is moving the triangles are changing there shape according to the movement of the cube.
When i call the
glPolygonMode(GL_BACK,GL_LINE);
function then the effect is gone.
Is this a solution?? or?
(Picture of the effect: http://www.kmit.sk/~grex/)
[This message has been edited by Fredy (edited 02-21-2001).]
[This message has been edited by Fredy (edited 02-21-2001).]