PDA

View Full Version : Rendering Problem



FatalError
04-05-2001, 02:40 AM
I have a problem with my ms3d file renderer.
Here's a screenshot:
http://mangasearch.forez.com/PIC.jpg
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

Rudi_P
04-05-2001, 02:53 AM
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

Alessandro_dup1
04-05-2001, 06:59 AM
i have the same problem: using a 32bit depth buffer didn't help, and how can i move the near clip plane forward ?

FatalError
04-06-2001, 05:04 AM
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

FatalError
04-18-2001, 02:04 AM
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...