- 수정됨
Spine 3.8.65 and 3.8.66 atlas export problem
When exporting an atlas (PNG, rectangular) the max width isn't respected and seems to be doubled. This is a new problem as of 3.8.65 and confirmed to still exist in 3.8.66. This has been verified in multiple spine projects.
Extra bit of potentially confusing information: It does seem to pack the textures based on the max width, but the outputted texture width is doubled. So the parts are crammed in the corner of the output texture.
Could you please post your pack settings JSON? There are many combinations of settings. You can get your settings by clicking the Save button on the texture packer settings dialog.
Are you using power of two textures? This can results in a lot of wasted space in general and may result in larger images especially when using polygonal packing.
Packing rectangles is very fast, so we can pack many times in order to find the smallest image where everything fits. However, packing polygons takes a LOT more processing power and works very differently. We can't pack many times at different sizes, it would be too slow (on the order of minutes to hours), but we don't really need to because the polygonal packing algorithms are different and already try to pack at a small size. Basically it uses your max size, packs as small as possible into that, then cuts off any empty space it can based on the settings: min page size, square, divisible by 4, and power of two. For the smallest output, you'll want to uncheck square, divisible by 4, and power of two. You can also reduce your max size (assuming everything still fits with a smaller max size) and see how polygonal packing behaves.
Attached is my pack.json. You'll notice these lines:
"maxWidth": 2048
"maxHeight": 2048
However, the atlas png that is exported is 4096x2048. This is a new problem in one of the latest releases.
Thanks. You are packing rectangles so I'm surprised, I didn't expect rectangular packing to be affected by the recent changes. It's late here now, we'll dig into it first thing in the morning. I tried briefly to reproduce the problem, but the project images I tried your settings on packed correctly. If it's not too much trouble, it would be very helpful to be able to pack the same images you are packing. Maybe you can email the images? contact@esotericsoftware.com We will keep your files confidential.
A link to the zip file has been sent to the email address provided.
Thanks, the image files were very helpful. Sorry it took so long, but it has now been fixed in 3.8.68, available now! :beer: