On Wed, Apr 4, 2012 at 5:40 PM, Frederic Bouvier wrote: > As for the performance, I have a vague recollection that you > say that the trees are first drawn alpha-tested and then > alpha-blended. Can you elaborate on this if it's true ?
Yes. There's some documentation describing how it works in Effects/tree.eff: Trees are drawn in two passes. The first draws the opaque parts with z writes enabled. The second draws the the transparent bits with z testing enabled and z writes disabled. The transparent tree silhouettes will blend correctly against the opaque geometry. They may cause artifacts when blending against other edges, but the overall "forest" is supposed to be nice and fuzzy. There might also be artifacts when blending over other transparent objects, but that's mostly unavoidable. Note: no sorting needed! Tim Moore was responsible for it, so I don't have any further insight. -Stuart ------------------------------------------------------------------------------ Better than sec? Nothing is better than sec when it comes to monitoring Big Data applications. Try Boundary one-second resolution app monitoring today. Free. http://p.sf.net/sfu/Boundary-dev2dev _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel