Jump to content
  • Advertisement
Sign in to follow this  
Armagedon

Weird artifacts on borders of triangles

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

Hello,

 

I've got strange artifacts on borders of triangles when rendering scene to texture, then applying it to other mesh.

As picture is worth a thousand words, here is a screenshot(here better quality: https://www.dropbox.com/s/qaqptxeojft3ggf/artifacts.png?dl=0):

[attachment=34607:artifacts.png]

 

What i learned from debugging is that problem occurs when rendering scene to texture, but in mainpass problem doesn't occur. I thought about some NaNs in shader, but even when i'm outputting solid color value artifacts occur(less visible, but still).

It only happens on borderes of triangles(artifacts layouts matches wireframe).

 

Do you have any idea what could output that weird results?

Edited by Armus

Share this post


Link to post
Share on other sites
Advertisement
Do you have any idea what could output that weird results?

Are the vertex's on adjacent triangles exactly the same?  If not I've heard floating point accuracy comes into play and can cause holes between triangles.

 

edit - actually I don't know if its FP accuracy or just rasterization "rules".

Edited by Infinisearch

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!