Archived

This topic is now archived and is closed to further replies.

Polygon Tearing?

This topic is 5886 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, can someone help me out here? I am drawing a height-mapped terrain, and this is fine and good. I am then drawing a water-surface at a certain height. The water-surface is just one big square polygon with a semi-transparent texture. Where the water interfaces with the land I am getting a really jagged appearance(looks like 100''s of triangles). I am also getting this whenever a mesh clips into the land (where the mesh intersects, the boundary is triangulated). The land is generated using normalised triangle-strips with a directional light-source coming in at a vector(-1,0,-1). This is in DirectX8.0 Any ideas why this happening and how I could solve it would be appreciated. ''Doing the impossible is kind of fun'' - Walt Disney

Share this post


Link to post
Share on other sites
It sounds like a Z-buffer problem. Basically the precision isn''t high enough to make a clean line where the water meets the land.

You can fix it by making the far clipping plane nearer, which is done when you create your projection matrix.

Hope this helps.

- Pete

Share this post


Link to post
Share on other sites