But is there a way to do it without sorting the polygons? I'd like to do the
OGL calls directly in the tree function because the performance will
decrease severly when the tree is built in memory, then sorted and then
drawn to screen.
I guess, it could be done, if transparent pixels wouldn't affect the depth
buffer. How can I achieve such behavior?
Thank you for any help
Roy
I'd use ALPHA_TEST. When pixels fail the alpha test, then the Z-buffer
isn't updated.
And you then also might want to turn off blending (as an option
perhaps), since with ALPHA_TEST you might not need it anyway (and it's
faster).
Ruud van Gaal
Free car sim: http://www.racer.nl/
Pencil art : http://www.marketgraph.nl/gallery/
Use glAlphaFunc(), disable blending.
--
<\___/>
/ O O \
\_____/ FTB.