2D Toolkit Forum

2D Toolkit => Support => Topic started by: arkanoid87 on June 27, 2012, 01:42:49 am

Title: Sprite extrusion
Post by: arkanoid87 on June 27, 2012, 01:42:49 am
Hello

it should be given an option to "extrude" each (or better just the selected) sprite border by N pixel like "TexturePacker" do or any other solution like those proposed at page 11 here: http://http.download.nvidia.com/developer/NVTextureSuite/Atlas_Tools/Texture_Atlas_Whitepaper.pdf

I'm asking this as I'm facing the problem of upscaling (actually doubling - iPad -> iPad3) a pixel perfect GUI (no-mipmap) while leaving bilinear filtering on (I need to blur fonts border when needed). Actually I'm adding a 1 pixel extrusion manually in atlas0.png and works, it would be nice to make it a selectable option.

thanks
Title: Re: Sprite extrusion
Post by: unikronsoftware on June 27, 2012, 01:27:21 pm
You can do that already. In the settings panel
Pad amount  = number of pixels to pad by

And on each texture,
you can set the padding method. Setting to extend = the pixels will be copied, and padded out.
Extra padding will let you add additional padding for one or more textures selectively.