Game Development Community

Smoothing needs tweaking in Cell mode

by Azmodeus · in Torque Game Builder · 10/01/2006 (9:17 am) · 5 replies

If I break my images up into seperate png files, they look fine.

However, if I combine them into 1 big png file that seperates the images using the "cell" loading feature, when I turn on smooth it creates a gray border all around the image.

It does not do this if I load in each frame as a seperate file and turn on smooth.

#1
10/01/2006 (10:10 am)
Turn on padding when you create the imagemap. This will add a one-pixel-wide blank space around the border of each cell. The grayish border is a result of the filtering done by the graphics card.
#2
10/01/2006 (2:41 pm)
Why does it only do it in when I have an image with more than 1 cell?


I tried filter pad on/off doesnt make a difference. My images have transparent backgrounds, but when I turn on pading it tries to make a grey thingy around the outside of the cell not the sprite.

So it could be a problem with the transparency filters in the engine for CELL images.
#3
10/01/2006 (2:47 pm)
PS it could also be some querk in the way photoshop saves PNG files. The format might not be 100% compatible with the Image Builder. I'll try using GIF's or something and see if it persists.
#4
10/01/2006 (2:51 pm)
Well gif's are not supported, and jpg's dont support transparency. What other format supports transparency besides PNG that torque supports?

And yes it seems that adobe photoshop and torque use different .PNG format protocols. Its close but not 100% for transparency.
#5
10/02/2006 (8:04 am)
Azmodeus: I stopped using the built-in Photoshop PNG plugin a while ago. Check out this superior replacement: SuperPNG.

You will need the old version, as the newer one treats layer transparency as the alpha channel, instead of using the Alpha channels present in the PSD.