Game Development Community

Bright halo in PNG's with transparency

by Ty Newton · in Torque X Platformer Kit · 02/02/2008 (8:21 pm) · 2 replies

I've noticed an odd problem with PNG files that I am using in TBGX. They are small images (32 x 46) edited in photoshop CS3 and saved as PNG. When they are in TBGX they get an odd halo effect on the coloured pixels that are next to transparent pixels. It's like i've applied a transparent while colour over the top of my coloured pixels.

I'd stick a picture in this post but I don't know how.

Anyone got any suggestions on how to create images with transparency so this doesn't happen.


Thanks,
T

#1
02/23/2008 (6:29 pm)
It seems that if I have larger files (eg. 320 x 460) the halo effect goes away. I guess it must have something to do with the way the images are converted into textures.

My advice to others is to use reasonably large images and you should avoid this problem.


T