Jump to content
  • Advertisement

Archived

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

LukeSkyRunner

Alpha+Zbuffer = >:|

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

How can I fix the problem that happen when a face with alpha are drawn later another alpha polygon located in front of it, without turning off the zbuffer? Like this: http://www.unidev.com.br/imagem/image-sg-prob.jpg How can I fix it? (if it cannot be fixed, what is the better/faster way? z-sorting?). Note: I''m with DirectX9.

Share this post


Link to post
Share on other sites
Advertisement
draw everything that is non transparent, with full z buffer testing and writing. then draw everything with alpha after, with only z testing. this doesn''t fix all of the alpha/depth problems, but some.

Share this post


Link to post
Share on other sites
I think z-sorting the alpha faces is your best bet. If you''re z-sorting other faces too for faster overdraw, it should be fairly easy.

I like pie.

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!