Strange artifacts (with images)

Started by
4 comments, last by D3DXVECTOR3 18 years, 7 months ago
When an mesh is far some parts are missing (in a jigsaw pattern) but when I get closer to the object the jigsaw flattens/dissapears and the mesh looks oke. I dont know how to describe this, check the screens: ScreenShot001 ScreenShot002 What could be the reason for this strange effect?
Advertisement
First guess would be: z-fighting.
If only it wasn't so close to the viewer...
What are your zmin and zmax?
~def
yep, same as Deffer, it seems to be a problem of z-fighting
make sure you doesn't have a very close near clip and a very far away far clip (for example, 0.0001 and 1000000.0 are really bad values ^^)
These are my values:
nearPlane = 0.1f;
farPlane = 10240.0f;

Im using the same units as UT2003/2004. before that I uses a smaller unit scale.

edit:
I changes the nearPlane to 1.0f and it looks like that have dissapeared :D
well almost, in the 2nd pic you see the a vent that one isnt good yet. What values should I be using!?
You values are pretty much ok (but I would stick with 1.0 instead of 0.1).

How do you render the vent? Is it a full mesh, or a bilboard, or projection of some kind? (can't see well on the pictures).
~def
Its a full mesh. I have now set the nearPlane to 4.0f. because the 1.0f has still some z-fighting

I think that the 64 units in UT2003/2004 is about 1 meter. I dont hope that 4.0f will have issues with other things.

This topic is closed to new replies.

Advertisement