• Runtimes
  • [spine web player | spine 3.8] use premultiply alpha problem

hello!
I found that in the spine web player, if Premultiply alpha is used, some parts of the spine will become black. What is the reason for this? I used a translation software, so the translation may not be accurate.
spine 3.8

  • Misaki ответили на это сообщение.
    Related Discussions
    ...

    When using premultiplied alpha in the Spine Web Player, if you encounter parts of your Spine animation turning black, it could be due to several reasons. One common cause is a mismatch between the export settings in the Spine Editor and the runtime settings in the Spine Web Player. If premultiplied alpha is enabled during export but not correctly handled in the web player, or vice versa, it can lead to visual artifacts such as black areas in your animation.

    Another potential issue could be related to the blending modes used in your Spine project. For example, if a slot uses additive blending and is displayed against a transparent background, it might not render as expected, leading to unexpected black backgrounds or artifacts. This is because additive blending relies on the underlying color to calculate the final color, and with a transparent background, there's nothing to blend with, which can result in black areas if the original images contain black.

    To resolve these issues, ensure that your export settings from the Spine Editor match the runtime configuration in the Spine Web Player. Specifically, if you're using premultiplied alpha, make sure to enable it in the Spine Web Player's configuration. Additionally, review the blending modes used in your Spine project and adjust them as necessary, especially if you're working with transparent backgrounds or layers.

    octo As mentioned in Spinebot's answer, perhaps the reason is that the background is transparent even though some slot's blend mode is set to additive. The following thread may be helpful:
    https://esotericsoftware.com/forum/d/25637-%E6%88%91%E5%9C%A8web%E9%A1%B5%E9%9D%A2%E5%B1%95%E7%A4%BAspine%E5%8A%A8%E7%94%BB%E4%BC%9A%E5%87%BA%E7%8E%B0%E5%A5%87%E6%80%AA%E7%9A%84%E9%BB%91%E5%9D%97%E8%BF%99%E6%98%AF%E6%9C%AC%E6%9D%A5%E6%B2%A1%E6%9C%89%E7%9A%84%E4%B8%9C%E8%A5%BF%E5%A6%82%E5%9B%BE

    • octo ответили на это сообщение.

      Misaki Thank you for your answer,But what is certain is that all my slots are in normal mode.
      :(

      • Misaki ответили на это сообщение.

        octo I see, so please confirm that you have not set premultipliedAlpha to false in your SpinePlayer. The default is true, so unless you have changed it to false, it should work:
        https://esotericsoftware.com/spine-player#Premultiplied-alpha

        If you are sure that that parameter is also correct and the problem persists, please send us via email the project file that can reproduce the problem: contact@esotericsoftware.com
        Please include the URL of this forum thread in the email so we know the context. Then we can take a look at what's wrong.