Hello Guest

Author Topic: Atlas packing: High Wastage  (Read 5432 times)

Syntinel

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 9
    • View Profile
Atlas packing: High Wastage
« on: November 10, 2012, 07:21:12 pm »
Hey,

So I am having a problem with High wastage on most of my atlas's. Here's one example:

81% wastage Image 1
(quality not the issue this image has is low-res)


The textures Included are of size:
  • 1x   512x64px
  • 2x   256x64px
  • 2x   128x64px

Here are the Settings:

Inside Atlas Settings: I have not selected to force atlas size.

%Wasted is around 81%  (this is my worst case atlas but most seem to be over 30%)

Any suggestions on how to deal with this, or tips for keeping the wastage low? I have read most all the forum posts on the topic but could not come across a solution. Thanks for your time!
« Last Edit: November 10, 2012, 07:33:07 pm by Syntinel »

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Atlas packing: High Wastage
« Reply #1 on: November 10, 2012, 11:57:18 pm »
This is because the 512x64 image, when padded out vertically will not fit in a 512x512 image. It doesn't need to be padded when it touches the edge, and this will be fixed in the next release. For now, a quick workaround, seeing that your images are static images - use sprite dicing on the tall thin one, set the dice size to 64x64 or something like that, and it'll fit in am much smaller texture overall.

Syntinel

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: Atlas packing: High Wastage
« Reply #2 on: November 11, 2012, 12:13:10 am »
Excellent, Thanks Unikron. This dropped it down to a 512x512 which is much more manageable. Loving the product so far, keep up the good work!