Drawing Problem + Picture

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 :frowning:
(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

Problem Resolve :smiley:
Lucky i am today lol :slight_smile:

Just for the fun i’ve changed something to see what it is and that resolved my proble !

The Problem was :
gluPerspective(angle_of_vision,(GLfloat)largeur/(GLfloat)hauteur,0.1f,distance);

I’ve replace 0.1f by 1.0f and that worked :-).

Tiens un français ! ça roule ? :wink:

This is z-fighting.

Learn to love your z-buffer:

http://www.sjbaker.org/steve/omniv/love_your_z_buffer.html

comment tu as vu que gt francais lol ^^ ?

facile :
http://perso.wanadoo.fr/lud2k/prtoblem.JPG
gluPerspective(angle_of_vision,(GLfloat)largeur/(GLfloat)hauteur,0.1f,distance);

Sorry for the OT post.

ha oki :slight_smile: pas idiot :slight_smile:

Bonne nuit a tous v faire dodo
Have a nice night and sweet dreams, i’m gonna sleep.

Originally posted by lud2k:
comment tu as vu que gt francais lol ^^ ?
??? Ok, if you want to be impolite, whatever…