I'm having trouble with the edges of this sprite:
http://coolfone.comze.com/fight/stand_3.png
They seem partial to a light background.
Here's the problem in action:
http://i1190.photobucket.com/albums/z449/m75214/fighters.png
Is there a quick fix for this?
edges of this sprite
How did you create the sprite? It look like when the sprite was created, it was anti-aliased over a white background, so the damage is already done...
If you re-create the sprite over a black background instead, and render it using premultiplied alpha blending (src=one, dst=invsrcalpha) it will be ok.
If you re-create the sprite over a black background instead, and render it using premultiplied alpha blending (src=one, dst=invsrcalpha) it will be ok.
I'm having trouble with the edges of this sprite:
http://coolfone.comz...ght/stand_3.png
They seem partial to a light background.
Here's the problem in action:
http://i1190.photobu...14/fighters.png
Is there a quick fix for this?
i stuck this in:
glAlphaFunc ( GL_GREATER, 0.9 ) ;
glEnable ( GL_ALPHA_TEST ) ;
looks decent now:
http://i1190.photobucket.com/albums/z449/m75214/decent.png
How did you create the sprite? It look like when the sprite was created, it was anti-aliased over a white background, so the damage is already done...
If you re-create the sprite over a black background instead, and render it using premultiplied alpha blending (src=one, dst=invsrcalpha) it will be ok.
daz studio
How did you create the sprite? It look like when the sprite was created, it was anti-aliased over a white background, so the damage is already done...
If you re-create the sprite over a black background instead, and render it using premultiplied alpha blending (src=one, dst=invsrcalpha) it will be ok.
thx 4 the black background tip. looks much better now.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement