Rendering Problem

I have a problem with my ms3d file renderer.
Here’s a screenshot:

The scene is about 12000 triangles.
I use an octree.
But why are they some strange triangles between the water and the ground. And they’re moving when I’m rotating the scene.
If I zoom in, we don’t see them but when I zoom out they’re plenty of strange triangles

Thanks

Looks like a depth buffer problem to me.

Try moving the near clip plane forward, or increasing the depth buffer to 24-bit or 32-bit

i have the same problem: using a 32bit depth buffer didn’t help, and how can i move the near clip plane forward ?

Ok I’ve found.
It’s the clip planes

(For Penetrator)I’ve set a the init:

glMatrixMode(GL_PROJECTION);
glLoadIdentity();
gluPerspective(45,ScreenWidth,ScreenHeight,
4.0f,4000.0f);

Thanks Rudi

I have a new scene. It’s about 5 to 10 times the size of the old scene & I have the same problem again.
I tried to play with the values of the clip planes but it didn’t work…