PDA

View Full Version : Drawing Problem + Picture



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

lud2k
10-02-2004, 12:32 AM
Problem Resolve :D
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
10-02-2004, 01:20 AM
Tiens un franšais ! ša roule ? ;)

10-02-2004, 04:14 AM
This is z-fighting.

Learn to love your z-buffer:

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

lud2k
10-03-2004, 12:41 AM
comment tu as vu que gt francais lol ^^ ?

ZbuffeR
10-03-2004, 06:20 AM
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
10-03-2004, 11:46 AM
ha oki :-) pas idiot :-)

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

10-04-2004, 01:06 PM
Originally posted by lud2k:
comment tu as vu que gt francais lol ^^ ???? Ok, if you want to be impolite, whatever...