2D Toolkit Forum

2D Toolkit => Support => Topic started by: Syntinel on November 10, 2012, 07:21:12 pm

Title: Atlas packing: High Wastage
Post by: Syntinel 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)
(https://dl.dropbox.com/u/30493646/Random/AtlasPacking.jpg)

The textures Included are of size:

Here are the Settings:
(https://dl.dropbox.com/u/30493646/Random/AtlasSettings.jpg)
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!
Title: Re: Atlas packing: High Wastage
Post by: unikronsoftware 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.
Title: Re: Atlas packing: High Wastage
Post by: Syntinel 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!