punky
10-16-2009, 04:40 AM
how i can make my texture transparenT?
glBlendFunc(GL_DST_COLOR, GL_ZERO);
DrawCube(0,0,0,2);
the mask, it works, the white thing is transparent, the rest of the cube is black than :
http://lh3.ggpht.com/_M88JYhzTo4s/SthZfAFmnVI/AAAAAAAAAE8/jpXgvDswNoo/s128/text_100x100_mask.jpg
like here, u can see another smaler cube inside the cube with the texture, the big cube uses the mask texture i added at first
http://lh3.ggpht.com/_M88JYhzTo4s/SthckfpB3II/AAAAAAAAAFI/VCDmSilGDU0/rederd_mask.jpg
but how i can make transparency with this texture?
http://lh3.ggpht.com/_M88JYhzTo4s/SthZfEaiFeI/AAAAAAAAAFA/-jFfIKMF468/s128/text_100x100.jpg
is there maybe a posibility to draw it into a buffer and delete the white pixel so that they dont get displayed`?
glBlendFunc(GL_DST_COLOR, GL_ZERO);
DrawCube(0,0,0,2);
the mask, it works, the white thing is transparent, the rest of the cube is black than :
http://lh3.ggpht.com/_M88JYhzTo4s/SthZfAFmnVI/AAAAAAAAAE8/jpXgvDswNoo/s128/text_100x100_mask.jpg
like here, u can see another smaler cube inside the cube with the texture, the big cube uses the mask texture i added at first
http://lh3.ggpht.com/_M88JYhzTo4s/SthckfpB3II/AAAAAAAAAFI/VCDmSilGDU0/rederd_mask.jpg
but how i can make transparency with this texture?
http://lh3.ggpht.com/_M88JYhzTo4s/SthZfEaiFeI/AAAAAAAAAFA/-jFfIKMF468/s128/text_100x100.jpg
is there maybe a posibility to draw it into a buffer and delete the white pixel so that they dont get displayed`?