Game Development Community

.png file format doesn't draw correctly in GUI

by Christopher T. Morrissey · in Torque Game Engine · 02/19/2002 (2:45 pm) · 6 replies

when using the png file format in the gui a strange gray/white boarder is produced around the image.

Is this just a bug within torque or is it more of a problem with the png file format and the way it handels transparencys ?

And is there any fix for this, or alternative such as 2 bitmap files, one the graphic one the alpha mask ?

#1
02/19/2002 (4:00 pm)
If your talking about a border around the bottom and right edge it is a bug in the stretching code.
#2
02/21/2002 (6:25 am)
Our teams working prety hard on stabalising the maps at larger sizes, il get a resource online once its done.
#3
02/21/2002 (10:34 am)
I'm getting the gray border at the top of my pngs with transparency.
#4
02/21/2002 (2:33 pm)
the border is on all 4 sides of mine now when scalled correctly, i have tryed a few code snipits to try to fix this problem but noting seems to solve the problem compleatly, it may be nessicary to write png specific code
#5
02/26/2002 (7:26 pm)
Tim Newell is the resident X(image)-Files investigator.

He's written a stretching image code "fix" to make sure the "ghost border" doesn't show up, but I don't know the status on it. This isn't a problem on my video card (why? CAUSE IT SUCKS!) so I guess there is one (and only) perk to having a junky video card.
#6
02/26/2002 (7:57 pm)
Actually, this was just fixed in the head version by Mark (I believe). No additional fix needed.