lud2k
October 1, 2004, 11:14pm
1
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
lud2k
October 2, 2004, 12:32am
2
Problem Resolve
Lucky i am today lol
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 :-).
Silkut
October 2, 2004, 1:20am
3
Tiens un français ! ça roule ?
system
October 2, 2004, 4:14am
4
lud2k
October 3, 2004, 12:41am
5
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.
lud2k
October 3, 2004, 11:46am
7
ha oki pas idiot
Bonne nuit a tous v faire dodo
Have a nice night and sweet dreams, i’m gonna sleep.