PDA

View Full Version : Drawing Problem



lud2k
10-01-2004, 11:50 AM
Hi,

I've got a problem, i've made a simple program to draw a height map. it's working well but i don't know why, i can view thought the montains of the map in some camera directions.

It seem that the montains draw after are display in front of the montains before.. it's very strange.. how can i fix this problem ?

Thanks a lot

Aeluned
10-01-2004, 12:03 PM
sounds like you don't have depth testing enabled.

add this before your render:
glEnable(GL_DEPTH_TEST);

if that doesn't do it, could you post a screen shot?