yianti

请问现在纹理解包器的命令行没有包含“是否预乘alpha的选项”,这个有考虑会支持么?
You do not have the required permissions to view the files attached to this post.
yianti
  • Posts: 8

Misaki

当通过命令行界面解包时,没有关于非预乘alpha的参数,但如果你使用最新的4.1,它将自动确定并执行非预乘alpha。使用-u--update来临时运行最新的4.1来解包。
---------
When unpacking via the command line interface, there is no parameter regarding unpremultiply alpha, but if you use the latest 4.1, it will automatically determine and perform unpremultiply alpha. Use -u or --update to temporarily run the latest 4.1 for unpacking.
User avatar
Misaki

Misaki
  • Posts: 839

yianti

感谢回复~

---

QQ截图20220803183715.png

这个图是我手动勾选非预乘alpha的切图效果,是正确的

QQ截图20220803183653.png

这个是用命令行:Spine -u 4.1.06 -i xx -o xx -c xx 得到的效果,还是有一些黑边错误显示?
请问命令行用的是正确的么?如何能用命令行能得到上一个正确的切图效果?
You do not have the required permissions to view the files attached to this post.
yianti
  • Posts: 8

Misaki

谢谢你用实际的图片分享你的情况。然而,我刚刚在我的终端上用Spineboy试了一下,它成功地进行了unpremultiply alpha,所以我想它应该能工作。

你所试的命令似乎是正确的,但如果我可以大胆地说,你所检查的文件夹是否有可能是不同的?如果没有这个可能,你能不能把纹理和纹理图集通过电子邮件发给我们,以便我们能重现这个问题?:contact@esotericsoftware.com

--------

Thank you for sharing your situation with the actual images. However, I just tried it with Spineboy on my end and it successfully performed the unpremultiply alpha, so I think it should work.

The command you tried seems correct, but if I may be so bold, is it possible that the folders you are checking are different? If that is not a possibility, could you please email us the texture and the texture atlas so that we can reproduce the problem?: contact@esotericsoftware.com

---

谢谢你发送你的文件! 很抱歉我没有告诉你一个非常重要的问题。从4.0开始,图集(文本文件)中多了一行关于PMA的内容,如果没有这一行,Spine就不能确定纹理是否为PMA。因此,为了正确执行unpremply alpha,你需要在filter:下添加以下一行。
pma:true
正确的状态将看起来像下面的屏幕截图。
Screen Shot 2022-08-05 at 16.50.36.png

我在你发给我们的图集中手动添加了这一行,并且能够正确解压纹理,所以请尝试上述方法。
----------
Thank you for sending your files! I'm sorry I haven't told you a very important point. There is an additional line about pma in the atlas (text file) since 4.0, and Spine can not determine whether the texture was PMA or not without that line. Therefore, to correctly perform unpremultiply alpha, you need to add the following line under filter::
pma:true
The correct state will look like the screenshot below:
Screen Shot 2022-08-05 at 16.50.36.png

I manually added this line to the atlas you sent us and was able to unpack the texture correctly, so please try the above.
You do not have the required permissions to view the files attached to this post.
User avatar
Misaki

Misaki
  • Posts: 839


Return to 中国Spine用户