When packing an atlas I want to keep the atlas as small as possible, within the power of two and the width and hight should keep as close to each other as possible. This to eliminate wasted texture space and memory when using a compression method that requires a square image.
I have the same problem in Defold 1.2.101.
Margin, padding && borders = 0
I know, that images can be packed inside 2048x2048. But Defold makes 4096x1024
It is a very irritating problems and hopefully they will add an algorithm that packs the images in an as square format as possible.
As you may have noticed you can probably fiddle around with the properties on the atlas to get it to pack better. Not the best work around but still a work around. I have also noticed that sometimes how the atlas is packed can change depending in which order you add the images to the atlas.
I think, one of the simplest way to solve the problem adding support of texturepacker atlas formats or other custom extenrnal format.
For now *.atlas file just a list with images. If it would be something like:
Only place I have seen this information collected is on gfxbench.com, but unfortunately not in a list form. It is listed under each phone so only useful if you are curious about one particular device.
Would you be able to share this set of images with me? I’m experimenting with a fix for this, but it’s hard to get the texture packer to generate these really rectangular atlases.
Thanks. I’m working on an improvement to our atlas/texture packer that will solve the problems you’ve mentioned above. This would be the output from your atlases: