krammor I see, you were referring to Spinebot's reply. In fact, it contained inappropriate and confusing content, so I removed Spinebot's answer in the thread you linked to. Whether or not to pack with premultiplied alpha has no bearing on whether or not the polygon packing is successful. Sorry for confusing you.
The problem reported in the post you linked to was a temporary problem that occurred in version 4.2.34. The fix we added in 4.2.34 caused an error when trying to perform `polygons' packing, which was quickly fixed in 4.2.35.
这样看来它过于完美了,它与矩形打包相比最大的缺陷是什么呢?
Polygons
packing is often performed over a relatively longer period of time than Rectangles
packing, but there is still an upper limit to the number of times an efficient placement can be attempted. This can cause Polygons
to generate significantly more extra space than Rectangles
. For example, the following experiment can be performed using celestial-circus-pro
, which is one of the example skeletons:
Set the texture packer settings as follows and pack the images:
Make sure you get the following result:
Change the Packing
section from Rectangles
to Polygons
from the settings in step 1 and pack the images.
Then you should see the following result:
If you experience such packed results during actual work, it is a good idea to review the Max width
and Max height
settings. For example, the following settings work in this case:
The result is here:
Such extra margins are especially likely to occur if the Square
checkbox is checked in the Pages
section.
I hope this answer is helpful.