I'm having a little trouble with blending in my Asteroids game. The asteroids are png files with transparency, this way when they overlap you don't see the black box around the asteroids because it's transparent.
Here's how I'm using blending.
Here's what I'm talking aboutCode:glEnable( GL_BLEND ); glBlendFunc(GL_SRC_ALPHA, GL_ONE);
http://i14.photobucket.com/albums/a3...ions-Aster.png
So basically I want the pixels around the asteroid to be transparent, but the actual asteroid pixels to not show through.



LinkBack URL
About LinkBacks


