• 中文
  • 使用Texture Packer时对于文件夹内容一致的两个文件夹输出结果不同

我们使用Spine 2.1.27 版本的Texture Packer对A、B两个文件夹进行打包,两个文件夹内的文件数量、大小、类型完全一致,不同的是A文件夹包含透明度通道,B文件夹不包含文件夹通道,但是输出的文件里发现较小的贴图排列位置不同,导致两张贴图不能匹配,我们的参数设置如下:
{
pot: true
paddingX: 2
paddingY: 2
edgePadding: false
duplicatePadding: false
rotation: false
minWidth: 16
minHeight: 16
maxWidth: 1024
maxHeight: 1024
square: false
stripWhitespaceX: false
stripWhitespaceY: false
alphaThreshold: 0
filterMin: Linear
filterMag: Linear
wrapX: ClampToEdge
wrapY: ClampToEdge
format: RGBA8888
alias: true
outputFormat: png
jpegQuality: 0.9
ignoreBlankImages: false
fast: false
debug: false
silent: false
combineSubdirectories: false
flattenPaths: false
premultiplyAlpha: false
useIndexes: false
bleed: false
limitMemory: true
grid: false
scale: [ 0.2 ]
scaleSuffix: [ "" ]
atlasExtension: .atlas
}

希望能得到你们的支持 谢谢

Related Discussions
...

For two folders images with the same size, the images should be packed in the same locations on the texture atlas pages, if you use the same settings. Note that some settings can ruin this, such as stripping whitespace (which I see you are not using).
对于具有相同大小的两个文件夹图像,如果使用相同的设置,则图像应打包在纹理图集页面上的相同位置。 请注意,某些设置可能会破坏此设置,例如剥离空格(我看到您没有在使用)。

Maybe it is a problem with 2.1.27, which is 5 years old. Can you please try packing with 3.8? If you still have the problem in 3.8, it would help if you can email us the images and pack settings. contact@esotericsoftware.com
可能是2.1.27的问题,它已经存在大约5年了。 您可以尝试用3.8包装吗? 如果3.8中仍然存在问题,可以通过电子邮件将图像和包装设置发送给我们,这将有所帮助。 contact@esotericsoftware.com


Thanks, we received the images. The problem is that you have alias enabled, which avoids packing duplicate images. For example:
谢谢,我们收到了图片。 问题是您启用了“别名”,这样可以避免打包重复的图像。 例如:

Bild entfernt wegen fehlender Unterstützung für HTTPS. | Trotzdem zeigen

When packing the first atlas, the two images on the left are identical, so only one is packed. Two entries appear in the atlas file with different names, but use the same atlas page region.
打包第一个地图集时,左侧的两个图像相同,因此仅打包了一个。 图集文件中出现两个名称不同的条目,但它们使用相同的图集页面区域。

When packing the second atlas, the two images on the right are different, so each is packed separately. That means that the second atlas has more images in its atlas pages, even though both atlases have the same number of named regions in the .atlas file.
打包第二个地图集时,右侧的两个图像是不同的,因此每个图像都单独打包。 这意味着即使第二个地图集在.atlas文件中具有相同数量的命名区域,它们的第二个地图集也具有更多图像。

If you have alias enabled and you also enabled debug, Spine will print which regions are the exact same. If you disable alias, the atlases are packed the same.
如果启用了“别名”并且还启用了“调试”,Spine将打印出完全相同的区域。 如果禁用“别名”,则地图集将打包成相同的格式。

It works, thank you!