我做了个不断变化颜色的背景,底图有滚动效果,图1是在spine里运行的效果,图二是在unity 2021.3.19版本中运行的效果。
1.为什么在spine里的效果和在unity中我效果不一样,对比度和效果变淡了(我用了相加和相乘,在spine里)
这是导出设置
在unity里显示的提示,不懂!
unity里的警告我粘贴在第二段
一些效果问题,在spine导入unity的时候
[Worker5] Problematic material setup at Spine GameObject (loading):
Warning: Premultiply-alpha atlas textures not supported in Linear color space!You can use a straight alpha texture with 'PMA Vertex Color' by choosing blend mode 'PMA Vertex, Straight Texture'.
If you have a PMA Texture, please
a) re-export atlas as straight alpha texture with 'premultiply alpha' unchecked
(if you have already done this, please set the 'Straight Alpha Texture' Material parameter to 'true') or
b) switch to Gamma color space via
Project Settings - Player - Other Settings - Color Space.
Warning: Premultiply-alpha atlas textures not supported in Linear color space!You can use a straight alpha texture with 'PMA Vertex Color' by choosing blend mode 'PMA Vertex, Straight Texture'.
If you have a PMA Texture, please
a) re-export atlas as straight alpha texture with 'premultiply alpha' unchecked
(if you have already done this, please set the 'Straight Alpha Texture' Material parameter to 'true') or
b) switch to Gamma color space via
Project Settings - Player - Other Settings - Color Space.
Warning: Premultiply-alpha atlas textures not supported in Linear color space!You can use a straight alpha texture with 'PMA Vertex Color' by choosing blend mode 'PMA Vertex, Straight Texture'.
If you have a PMA Texture, please
a) re-export atlas as straight alpha texture with 'premultiply alpha' unchecked
(if you have already done this, please set the 'Straight Alpha Texture' Material parameter to 'true') or
b) switch to Gamma color space via
Project Settings - Player - Other Settings - Color Space.
Warning: Premultiply-alpha atlas textures not supported in Linear color space!You can use a straight alpha texture with 'PMA Vertex Color' by choosing blend mode 'PMA Vertex, Straight Texture'.
If you have a PMA Texture, please
a) re-export atlas as straight alpha texture with 'premultiply alpha' unchecked
(if you have already done this, please set the 'Straight Alpha Texture' Material parameter to 'true') or
b) switch to Gamma color space via
Project Settings - Player - Other Settings - Color Space.
Warning: Premultiply-alpha atlas textures not supported in Linear color space!You can use a straight alpha texture with 'PMA Vertex Color' by choosing blend mode 'PMA Vertex, Straight Texture'.
If you have a PMA Texture, please
a) re-export atlas as straight alpha texture with 'premultiply alpha' unchecked
(if you have already done this, please set the 'Straight Alpha Texture' Material parameter to 'true') or
b) switch to Gamma color space via
Project Settings - Player - Other Settings - Color Space.
Warning: Premultiply-alpha atlas textures not supported in Linear color space!You can use a straight alpha texture with 'PMA Vertex Color' by choosing blend mode 'PMA Vertex, Straight Texture'.
If you have a PMA Texture, please
a) re-export atlas as straight alpha texture with 'premultiply alpha' unchecked
(if you have already done this, please set the 'Straight Alpha Texture' Material parameter to 'true') or
b) switch to Gamma color space via
Project Settings - Player - Other Settings - Color Space.
Warning: Premultiply-alpha atlas textures not supported in Linear color space!You can use a straight alpha texture with 'PMA Vertex Color' by choosing blend mode 'PMA Vertex, Straight Texture'.
If you have a PMA Texture, please
a) re-export atlas as straight alpha texture with 'premultiply alpha' unchecked
(if you have already done this, please set the 'Straight Alpha Texture' Material parameter to 'true') or
b) switch to Gamma color space via
Project Settings - Player - Other Settings - Color Space.
Warning: Premultiply-alpha atlas textures not supported in Linear color space!You can use a straight alpha texture with 'PMA Vertex Color' by choosing blend mode 'PMA Vertex, Straight Texture'.
If you have a PMA Texture, please
a) re-export atlas as straight alpha texture with 'premultiply alpha' unchecked
(if you have already done this, please set the 'Straight Alpha Texture' Material parameter to 'true') or
b) switch to Gamma color space via
Project Settings - Player - Other Settings - Color Space.
Warning: Premultiply-alpha atlas textures not supported in Linear color space!You can use a straight alpha texture with 'PMA Vertex Color' by choosing blend mode 'PMA Vertex, Straight Texture'.
If you have a PMA Texture, please
a) re-export atlas as straight alpha texture with 'premultiply alpha' unchecked
(if you have already done this, please set the 'Straight Alpha Texture' Material parameter to 'true') or
b) switch to Gamma color space via
Project Settings - Player - Other Settings - Color Space.
Warning: Premultiply-alpha atlas textures not supported in Linear color space!You can use a straight alpha texture with 'PMA Vertex Color' by choosing blend mode 'PMA Vertex, Straight Texture'.
If you have a PMA Texture, please
a) re-export atlas as straight alpha texture with 'premultiply alpha' unchecked
(if you have already done this, please set the 'Straight Alpha Texture' Material parameter to 'true') or
b) switch to Gamma color space via
Project Settings - Player - Other Settings - Color Space.
Warning: Premultiply-alpha atlas textures not supported in Linear color space!You can use a straight alpha texture with 'PMA Vertex Color' by choosing blend mode 'PMA Vertex, Straight Texture'.
If you have a PMA Texture, please
a) re-export atlas as straight alpha texture with 'premultiply alpha' unchecked
(if you have already done this, please set the 'Straight Alpha Texture' Material parameter to 'true') or
b) switch to Gamma color space via
Project Settings - Player - Other Settings - Color Space.
Warning: Premultiply-alpha atlas textures not supported in Linear color space!You can use a straight alpha texture with 'PMA Vertex Color' by choosing blend mode 'PMA Vertex, Straight Texture'.
If you have a PMA Texture, please
a) re-export atlas as straight alpha texture with 'premultiply alpha' unchecked
(if you have already done this, please set the 'Straight Alpha Texture' Material parameter to 'true') or
b) switch to Gamma color space via
Project Settings - Player - Other Settings - Color Space.
Warning: Premultiply-alpha atlas textures not supported in Linear color space!You can use a straight alpha texture with 'PMA Vertex Color' by choosing blend mode 'PMA Vertex, Straight Texture'.
If you have a PMA Texture, please
a) re-export atlas as straight alpha texture with 'premultiply alpha' unchecked
(if you have already done this, please set the 'Straight Alpha Texture' Material parameter to 'true') or
b) switch to Gamma color space via
Project Settings - Player - Other Settings - Color Space.
Warning: Premultiply-alpha atlas textures not supported in Linear color space!You can use a straight alpha texture with 'PMA Vertex Color' by choosing blend mode 'PMA Vertex, Straight Texture'.
If you have a PMA Texture, please
a) re-export atlas as straight alpha texture with 'premultiply alpha' unchecked
(if you have already done this, please set the 'Straight Alpha Texture' Material parameter to 'true') or
b) switch to Gamma color space via
Project Settings - Player - Other Settings - Color Space.
Warning: Premultiply-alpha atlas textures not supported in Linear color space!You can use a straight alpha texture with 'PMA Vertex Color' by choosing blend mode 'PMA Vertex, Straight Texture'.
If you have a PMA Texture, please
a) re-export atlas as straight alpha texture with 'premultiply alpha' unchecked
(if you have already done this, please set the 'Straight Alpha Texture' Material parameter to 'true') or
b) switch to Gamma color space via
Project Settings - Player - Other Settings - Color Space.
Warning: Premultiply-alpha atlas textures not supported in Linear color space!You can use a straight alpha texture with 'PMA Vertex Color' by choosing blend mode 'PMA Vertex, Straight Texture'.
If you have a PMA Texture, please
a) re-export atlas as straight alpha texture with 'premultiply alpha' unchecked
(if you have already done this, please set the 'Straight Alpha Texture' Material parameter to 'true') or
b) switch to Gamma color space via
Project Settings - Player - Other Settings - Color Space.
Warning: Premultiply-alpha atlas textures not supported in Linear color space!You can use a straight alpha texture with 'PMA Vertex Color' by choosing blend mode 'PMA Vertex, Straight Texture'.
If you have a PMA Texture, please
a) re-export atlas as straight alpha texture with 'premultiply alpha' unchecked
(if you have already done this, please set the 'Straight Alpha Texture' Material parameter to 'true') or
b) switch to Gamma color space via
Project Settings - Player - Other Settings - Color Space.
Warning: Premultiply-alpha atlas textures not supported in Linear color space!You can use a straight alpha texture with 'PMA Vertex Color' by choosing blend mode 'PMA Vertex, Straight Texture'.
If you have a PMA Texture, please
a) re-export atlas as straight alpha texture with 'premultiply alpha' unchecked
(if you have already done this, please set the 'Straight Alpha Texture' Material parameter to 'true') or
b) switch to Gamma color space via
Project Settings - Player - Other Settings - Color Space.
Warning: Premultiply-alpha atlas textures not supported in Linear color space!You can use a straight alpha texture with 'PMA Vertex Color' by choosing blend mode 'PMA Vertex, Straight Texture'.
If you have a PMA Texture, please
a) re-export atlas as straight alpha texture with 'premultiply alpha' unchecked
(if you have already done this, please set the 'Straight Alpha Texture' Material parameter to 'true') or
b) switch to Gamma color space via
Project Settings - Player - Other Settings - Color Space.
Warning: Premultiply-alpha atlas textures not supported in Linear color space!You can use a straight alpha texture with 'PMA Vertex Color' by choosing blend mode 'PMA Vertex, Straight Texture'.
If you have a PMA Texture, please
a) re-export atlas as straight alpha texture with 'premultiply alpha' unchecked
(if you have already done this, please set the 'Straight Alpha Texture' Material parameter to 'true') or
b) switch to Gamma color space via
Project Settings - Player - Other Settings - Color Space.
Warning: Premultiply-alpha atlas textures not supported in Linear color space!You can use a straight alpha texture with 'PMA Vertex Color' by choosing blend mode 'PMA Vertex, Straight Texture'.
If you have a PMA Texture, please
a) re-export atlas as straight alpha texture with 'premultiply alpha' unchecked
(if you have already done this, please set the 'Straight Alpha Texture' Material parameter to 'true') or
b) switch to Gamma color space via
Project Settings - Player - Other Settings - Color Space.
Warning: Premultiply-alpha atlas textures not supported in Linear color space!You can use a straight alpha texture with 'PMA Vertex Color' by choosing blend mode 'PMA Vertex, Straight Texture'.
If you have a PMA Texture, please
a) re-export atlas as straight alpha texture with 'premultiply alpha' unchecked
(if you have already done this, please set the 'Straight Alpha Texture' Material parameter to 'true') or
b) switch to Gamma color space via
Project Settings - Player - Other Settings - Color Space.
Warning: Premultiply-alpha atlas textures not supported in Linear color space!You can use a straight alpha texture with 'PMA Vertex Color' by choosing blend mode 'PMA Vertex, Straight Texture'.
If you have a PMA Texture, please
a) re-export atlas as straight alpha texture with 'premultiply alpha' unchecked
(if you have already done this, please set the 'Straight Alpha Texture' Material parameter to 'true') or
b) switch to Gamma color space via
Project Settings - Player - Other Settings - Color Space.
Warning: Premultiply-alpha atlas textures not supported in Linear color space!You can use a straight alpha texture with 'PMA Vertex Color' by choosing blend mode 'PMA Vertex, Straight Texture'.
If you have a PMA Texture, please
a) re-export atlas as straight alpha texture with 'premultiply alpha' unchecked
(if you have already done this, please set the 'Straight Alpha Texture' Material parameter to 'true') or
b) switch to Gamma color space via
Project Settings - Player - Other Settings - Color Space.
Warning: Premultiply-alpha atlas textures not supported in Linear color space!You can use a straight alpha texture with 'PMA Vertex Color' by choosing blend mode 'PMA Vertex, Straight Texture'.
If you have a PMA Texture, please
a) re-export atlas as straight alpha texture with 'premultiply alpha' unchecked
(if you have already done this, please set the 'Straight Alpha Texture' Material parameter to 'true') or
b) switch to Gamma color space via
Project Settings - Player - Other Settings - Color Space.
Warning: Premultiply-alpha atlas textures not supported in Linear color space!You can use a straight alpha texture with 'PMA Vertex Color' by choosing blend mode 'PMA Vertex, Straight Texture'.
If you have a PMA Texture, please
a) re-export atlas as straight alpha texture with 'premultiply alpha' unchecked
(if you have already done this, please set the 'Straight Alpha Texture' Material parameter to 'true') or
b) switch to Gamma color space via
Project Settings - Player - Other Settings - Color Space.
Warning: Premultiply-alpha atlas textures not supported in Linear color space!You can use a straight alpha texture with 'PMA Vertex Color' by choosing blend mode 'PMA Vertex, Straight Texture'.
If you have a PMA Texture, please
a) re-export atlas as straight alpha texture with 'premultiply alpha' unchecked
(if you have already done this, please set the 'Straight Alpha Texture' Material parameter to 'true') or
b) switch to Gamma color space via
Project Settings - Player - Other Settings - Color Space.
我们很遗憾地看到您多次收到相同的错误消息,而不是只显示一次。 您能否告诉我们您使用的是哪个版本的 spine-unity 运行时(unitypackage 的名称,也列在 Assets/Spine/version.txt
中)?
关于错误消息,机器翻译结果如下:
Spine GameObject 的有问题的材料设置(加载):
警告:线性颜色空间不支持预乘 alpha 图集纹理!您可以通过选择混合模式“PMA 顶点,直纹理”来使用带有“PMA 顶点颜色”的直 alpha 纹理。如果你有PMA Texture,请
a) 将图集重新导出为直接 alpha 纹理,不选中“premultiply alpha”
(如果您已经这样做,请将“Straight Alpha Texture”材质参数设置为“true”)或
b) 通过切换到 Gamma 色彩空间
项目设置-播放器-其他设置-色彩空间。
请在此处查看 spine-unity 文档部分以获取更多信息:
http://zh.esotericsoftware.com/spine-unity#%E9%AB%98%E7%BA%A7---Premultiplied-%E5%92%8C-Straight-Alpha-%E5%AF%BC%E5%85%A5
We are sorry to see that you received the same error message duplicated many times instead of shown only once. Could you please let us know which version of the spine-unity runtime (name of the unitypackage, also listed in Assets/Spine/version.txt
) you are using?
Regarding the error message, machine translation results in the following text:
Problematic material setup at Spine GameObject (loading):
Warning: Premultiply-alpha atlas textures not supported in Linear color space!You can use a straight alpha texture with 'PMA Vertex Color' by choosing blend mode 'PMA Vertex, Straight Texture'.If you have a PMA Texture, please
a) re-export atlas as straight alpha texture with 'premultiply alpha' unchecked
(if you have already done this, please set the 'Straight Alpha Texture' Material parameter to 'true') or
b) switch to Gamma color space via
Project Settings - Player - Other Settings - Color Space.
Please see the spine-unity documentation section here for more info:
http://zh.esotericsoftware.com/spine-unity#%E9%AB%98%E7%BA%A7---Premultiplied-%E5%92%8C-Straight-Alpha-%E5%AF%BC%E5%85%A5