Jump to content
  • Advertisement

Archived

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

wolfman8k

Triangle mesh legalities

This topic is 6042 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

Is it ok to have a mesh rendered like in the top pic, or is it nessesary to tesselelate the plane and render it as in the bottom(to reduce visual artifacts)? The hemisphere lies directly on the plane. On my graphics card(Geforce 2 pro) the top method looks almost ok, but not as good as the bottom.

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
The bottom method will always look at, since all triangles are connected. But it takes more faces. The top method relies onthe zbuffer to create the intersection. It''s quality highly depends on your near and far clipping ranges.

Share this post


Link to post
Share on other sites
I''m not using a whole sphere! The sphere is already perfectly clipped to the plane. The problem isn''t zbuffer zigzaging(what you sometimes see in terrain with water demos), it''s zfighting, only on the pixel row of the circle.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
> I''m not using a whole sphere! The sphere is already perfectly clipped to the plane

Right. It *is* a zbuffer problem You can''t position it ''perfectly'' on the plane, due to accuracy problems with floating point math. Try to make it float over the plane, just a tiny little bit. The effect should go away.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!