Jump to content
  • Advertisement
Sign in to follow this  
peter_b

owerdraw artifacts

This topic is 4998 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, im having some trouble with overdrawing when doing alpha blending in my software engine. The problem seems to be that due to rounding errors some pixels are drawn by more than one triangle that share vertices. The result is that when the next triangle is going to be drawn on that pixel and checks the color for determening alpha, the result is wrong since it has already been drawn once. I understand that i need to adopt some standard when it comes to shared vertices but i cant quite figure out what exactly to do. Anyone know? :/ screenshot: http://hem.passagen.se/storage/art.gif Thanks in advance.

Share this post


Link to post
Share on other sites
Advertisement
Guess: change depth test from the <= to just < (or whichever way it goes >= to >)

edit: I just realized that's probably useless if you're working without depth testing...

Share this post


Link to post
Share on other sites
oh sweet how easy that was, thanks alot man i'v been at that one for 4 hours and my brain was cooking. jeezes :P *goes to sleep*

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!