PDA

View Full Version : zbuffer



01-17-2001, 10:19 AM
i have a 16bit zbuffer
when i have this two triangles
0.0 0.0 1.0
1.0 0.0 1.0
1.0 1.0 1.0

0.0 0.0 1.0
0.5 0.0 1.0
0.5 0.5 1.0

there are stupid artifacts
how can i get them away

RandyU
01-17-2001, 11:57 AM
Try to switch glDepthFunc gl_less and gl_lequal.
Also try bringing one of triangles in front
0.0 0.0 1.01
0.5 0.0 1.01
0.5 0.5 1.01

Randy