Jump to content
  • Advertisement
Sign in to follow this  
Klaatu

Jagged edges

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

I'm trying to track the cause of 'jagged edges' on a primitive. My application can render a surface primitive or a solid primitive (using the Parasolids kernel). When I render a surface, for example, a cylinder, it looks fine. If I render a solid cylinder, I get jagged edges. When I rotate the solid cylinder, the edges smoothe out and disappear when I've rotated it so I'm looking directly down on it. It almost appears to be a problem with lighting or shadows. Eventhough I can make out the boundary of the solid, the triangles at the edge appear to be in the 'dark'. Anyone have an idea what's casuing this?

Share this post


Link to post
Share on other sites
Advertisement
Sounds like Z-buffering.. shouldn't be if I understand the scenario... but jagged edges are (always?) the cause of Z-buffer when the precision gets too low.

Share this post


Link to post
Share on other sites
It could be a couple different things, depending on the serverity of jaggedness. Like Syranide suggested, it could be a z-buffer error. Could you post your projection matrix code? This is usually a source of z-buffer errors.

It could also be an aliasing issue, but the jaggies are usually a lot less noticable if this is the case.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!