不懂代码的猴子

用预乘alpha 导出的图比较小,溢出方式导出的图比较大,具体原因是什么呢?
将 预乘alpha导出的spine文件导入unity后,必须把 “straight alpha texture”设置为disable ,否则会出现黑边;而用溢出方式导出的话,就需要enable "straight alpha textue",否则spine动画会极度曝光?
不懂代码的猴子
  • Сообщения: 3

Harald

当设置为“出血”时,直线alpha图形的文件大小会更大,因为它们在透明区域中包含RGB信息。 这很重要,否则你会在直的alpha纹理上获得黑色边框。
Straight alpha graphics will be larger in file size when set to Bleed, because they contain RGB information in the transparent areas. This is important, otherwise you would get black borders at straight-alpha textures.

无论如何,输入文件大小并不重要,它将取决于您在Unity中配置纹理压缩的方式,它决定了已部署应用程序中的文件大小。
Anyway, input file size does not matter much, it will depend on how you configure texture compression in Unity which determines the file size in the deployed application.

您描述的设置是正确的。
请参阅有关Premultiplied-vs-Straight-Alpha的spine-unity文档中的新部分以及Unity中的正确导入设置:
spine-unity Runtime Documentation: Advanced Premultiplied vs Straight Alpha Export
spine-unity Runtime Documentation: Advanced Premultiplied vs Straight Alpha Import

The settings you described are correct.
Please see the new sections in the spine-unity docs about Premultiplied-vs-Straight-Alpha and correct import settings in Unity:
spine-unity Runtime Documentation: Advanced Premultiplied vs Straight Alpha Export
spine-unity Runtime Documentation: Advanced Premultiplied vs Straight Alpha Import
Аватара пользователя
Harald

Harri
  • Сообщения: 1116


Вернуться в 中国Spine用户