User panel stuff on forum
  4 posts on 1 page  1
Graphics Discussion
2016-07-02, 09:02
Member
6 posts

Registered:
Jun 2016
I started editing some existing simple item sets, but I ran in to a problem, in-game they get this flickering white outline.

http://i.imgur.com/5AwOY9h.jpg


How do I solve this? I use Photoshop 7 and have tried saving them as both TGA and PNG. When I compare them to the original ezQuake ones the transparency on the edges seem to be the same.
2016-07-02, 11:02
Member
202 posts

Registered:
Dec 2006
Does the image have a white area around the the outside that is supposed to be masked by the alpha channel? The texture seems to get filtered before alpha channel is applied so sometimes these non-visible areas can bleed in. Does it happen with gl_texturemode gl_nearest?

edit: I see the same thing happening on the hud numbers too!
2016-07-02, 17:00
Member
6 posts

Registered:
Jun 2016
povohat wrote:
Does the image have a white area around the the outside that is supposed to be masked by the alpha channel? The texture seems to get filtered before alpha channel is applied so sometimes these non-visible areas can bleed in. Does it happen with gl_texturemode gl_nearest?

edit: I see the same thing happening on the hud numbers too!


Did not appear with gl_nearest.

I solved it though, added a 1px semi-transparent border and it disappeared.
2016-07-02, 20:26
Member
271 posts

Registered:
Feb 2006
the true fix is to use premultiplied alpha in the engine, but you need a coder to implement that for you.
moo
  4 posts on 1 page  1