Mar
03-29-2001, 06:09 AM
Hello!
I would like render a tree, where the leaves are quads with a texture on them.
This texture has an alpha chanel, and using
glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
i make one part of the leave transparent. But it doesn´t run very well. I suposse
I have to order the quads from back to front for drawing.
But is there other possibility ? Maybe to use opacity maps?
Thanks for your help in advance
I would like render a tree, where the leaves are quads with a texture on them.
This texture has an alpha chanel, and using
glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
i make one part of the leave transparent. But it doesn´t run very well. I suposse
I have to order the quads from back to front for drawing.
But is there other possibility ? Maybe to use opacity maps?
Thanks for your help in advance