Jan
06-15-2001, 04:43 AM
Hi
I have some textures and I want them to be completely transparent at some positions (i.e. for sprites). Now transparency works but I have a little problem. I donīt sort the polys up to now and when I draw a partly transparent polygon and after this I draw a second one, which lies behind the first one it doesnīt shine through. I think this happens because when I draw the first one it updates the z-buffer even at positions, where nothing is drawn.
Now: Is there any way to prevent OpenGL from updating the z-buffer where a pixel is completely transparent? Or do I have to sort the polygons from back to front?
Thanks.
I have some textures and I want them to be completely transparent at some positions (i.e. for sprites). Now transparency works but I have a little problem. I donīt sort the polys up to now and when I draw a partly transparent polygon and after this I draw a second one, which lies behind the first one it doesnīt shine through. I think this happens because when I draw the first one it updates the z-buffer even at positions, where nothing is drawn.
Now: Is there any way to prevent OpenGL from updating the z-buffer where a pixel is completely transparent? Or do I have to sort the polygons from back to front?
Thanks.