Jump to content
  • Advertisement

Archived

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

BeanDog

Alpha blend back-to-front necessary?

This topic is 6416 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 necessary to draw my alpha blended polygons back-to-front? Or is it possible to simply draw all the normal polygons, turn off the z-buffer, and draw them in any given order? Will there be artifacts in the latter scenario that would not be present if I sorted them?

Share this post


Link to post
Share on other sites
Advertisement
You have to have the Z-Buffer ON to be able to draw them in any order you want, the Z-Buffer then does the sorting for you. If you don''t have the Z-Buffer on then you do have to draw them back-to-front.

------------
- outRider -

Share this post


Link to post
Share on other sites
You must draw alpha blend polygons back to front. If you turn off z and then draw them any order you will have them everywhere! The only thing you could do is use the stencil buffer and draw them front to back by drawing the polygin into the stensil buffer, turn off z draw with stensil op, turn off stencil op, turn z buffer on, ..... much easier just to draw back to fron for alpha blend polys.

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.

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

Sign me up!