Quote:you can sort the opaque objects along with the transparent ones; if not, you have to render them all before the transparent ones.
Sneftel means: Option 1: Sort all objects (opaque + transparent) and render them back-to-front (Technically correct, but sorting opaque objects is not necessary, see Option 2). Option 2: First, Render all opaque objects, Second, sort all transparent objects, Third, render all (sorted) transparent object back-to-front. Option 3: Use depth peeling (doesn't require sorting, but requires multiple-pass).
Thanks Sneftel. One more question about sorting faces: Assuming no two faces intersect, sort all the faces based on the average positions of each face's vertices. Is this algorithm correct?