PDA

View Full Version : BILLBOARD - a tree with 2 polygons



VinceDeNice
04-21-2005, 05:06 AM
Hi!
I have made a simple tree by mapping a rgba texture on 2 crossed polygons... but those 2 polygons aren't transparent: they've got the colour of the material I use :p
how can I do to see only texels where there is the tree ?
isn't it by using

glAlphaFunc(GL_GREATER, 0);
glEnable(GL_ALPHA_TEST);just before drawing polygons ?
Is it something else to do or do I forget something important ?

ete
04-21-2005, 05:22 AM
I guess this NeHe Tutorial 8 (http://futile.iespana.es/futile/opengl/tutorial08.htm) explains it very well... :)