to be absolutely perfect, you must draw each transparent pixel
individually, applying the layers in furthest to nearest order.
Clearly, this isn't practical.
as a "next best" approximation, you draw each triangle in back to front
order, splitting triangles that have ambiguous orderings relative to
each other into three smaller triangles, BSP-style. This is probably
still too complex.
in the "probably OK" basket is sorting all the triangles back-to-front,
then drawing them in order. There are still cases that can cause
problems here, and the particular way you sort may or may not cause
additional problems, but it should generally work pretty well.
in the "really weird" basket is a technique called "depth peeling",
which is an ugly hack to get order-independent transparency. Googling
should turn up the paper. This probably isn't practical.
-Keith
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Mac-opengl mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/mac-opengl/email@hidden