Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Transparent objects



there is no really good solution to this.

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

This email sent to email@hidden
References: 
 >Re: Transparent objects (From: Lorenzo <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.