lud2k
10-01-2004, 11:14 PM
hi
I have always the same problem.. i can see thought the montains of my height map .. but now it's changed because before it was only by looking in direction of the origin (0,0) and now it's when i'm looking at the opposite :-/ i don't know what have done that made this :-(
(Screenshot at the end)
glEnable(GL_DEPTH_TEST) was already actived..
My Init Code:
--------------------
glClearDepth(1.0f);
glDepthFunc(GL_LEQUAL);
glEnable(GL_DEPTH_TEST);
Set_Camera(45.0f,640.0f,480.0f,3000.0f);
glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST);
glHint(GL_POINT_SMOOTH_HINT, GL_NICEST);
glHint(GL_POLYGON_SMOOTH_HINT, GL_NICEST);
Picture of the problem:
--------------------
http://perso.wanadoo.fr/lud2k/prtoblem.JPG
I have always the same problem.. i can see thought the montains of my height map .. but now it's changed because before it was only by looking in direction of the origin (0,0) and now it's when i'm looking at the opposite :-/ i don't know what have done that made this :-(
(Screenshot at the end)
glEnable(GL_DEPTH_TEST) was already actived..
My Init Code:
--------------------
glClearDepth(1.0f);
glDepthFunc(GL_LEQUAL);
glEnable(GL_DEPTH_TEST);
Set_Camera(45.0f,640.0f,480.0f,3000.0f);
glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST);
glHint(GL_POINT_SMOOTH_HINT, GL_NICEST);
glHint(GL_POLYGON_SMOOTH_HINT, GL_NICEST);
Picture of the problem:
--------------------
http://perso.wanadoo.fr/lud2k/prtoblem.JPG