Hello Guest

Author Topic: Sprite extrusion  (Read 4146 times)

arkanoid87

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 12
    • View Profile
Sprite extrusion
« 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

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Sprite extrusion
« Reply #1 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.