• Bugs
  • [Editor Texture Packer] Always using max size?

Using the export dialog, the texture packer is packing my 4 tiny images into a big 1024x1024 atlas.

Is there a checkbox somewhere that I need to check to tell it to use the smallest possible size?

Related Discussions
...
  • Изменено

Yep: min width/height and uncheck POT and square. Still does it? Please email images to contact@esotericsoftware.com. 🙂

Turning them off works fine. 🙂
So it doesn't pick the smallest possible POT square?

no biggie, imo.

4 дня спустя

It does aim for the smallest POT size, between the min and max size you set. Bin packing is not perfect, but it usually picks the best size. Can you turn the packer debug on and show the packed image where it doesn't?

😃

To be fair, I just noticed that it's been working fine for everything else I've packed with it.

This was also one of the few times I wasn't using TexturePacker Pro because packing in Spine is just easier for prototype stuff.

Again, no biggie. In hindsight, it seems like a fluke. Interesting bug though.

Are you sure you don't have "square" checked? I created 4 images the same size as yours and they packed to 1024x64, which is the smallest POT size that fits.

Изображение удалено из-за отсутствия поддержки HTTPS. | Показать

That's the version that did have square checked.
I'm pretty sure the smallest square would be 512x512 though.

It worked fine for the other atlases I have with "square" checked. Again, no biggie.

Ah, I see. Square was done last and simply made whatever the result was square. I made the packing algorithm take it into consideration, 1.7.12. Cheers! Packing into a grid still doesn't use the smallest size when square is changed though. :x