does it matter in which order transparent stuff is drawn?

Started by
2 comments, last by Sander 19 years, 2 months ago
If you just add the color values when doing alpha blending, does it matter if you draw the front window first and back window then or vice versa? Would the visible result be any different?
Advertisement
If you're doing add, then no, order doesn't matter if ZWrite is disabled. If ZWrite is enabled, nearer objects may cause z rejection on further objects, stopping them from adding.
Whew, that's what I was hoping for. Thanks!
That's true for additive blending yes, but if you are drawing materials like windows then you normally don't do additive blending. In that case you need to draw your transparent surfaces back-to-front after all the other (solid) geometry has been drawn.

<hr />
Sander Marechal<small>[Lone Wolves][Hearts for GNOME][E-mail][Forum FAQ]</small>

This topic is closed to new replies.

Advertisement