• Bugs
  • Alpha blending error in Lua Runtime

  • Изменено
Related Discussions
...

I'm running Spine in Solar2D (formerly Corona SDK), and found that when my animations were fading, there was an alpha blending issue


a sort of blackness that appears when the animation fades out. The issue is shown in this video: Fading problem. I have found that when I comment this line from the lua runtime:

mesh:setFillColor(color.r, color.g, color.b)

in the spine/spine.lua file, it fixes the issue, so the same animation looks like this: Hack fix

However, commenting out this line means we can't hue the colors in a spine animation anymore, which is a big drawback, and makes this a bad workaround


but it's better to be able to fade things out nicely than it is to color them, for my use case. Is there a way to fix this problem without removing the

setFillColor

call, and have the good, clean-looking fading?

I've uploaded a copy of the file that I modified to fix the issue, for clarity. It's here:
https://drive.google.com/file/d/1TCLlFlSheWpq5ZvtRBkILYi_xJAUtbhV/view?usp=sharing

Could you send me one of your Spine skeleton exports for reproduction? Email works: contact@esotericsoftware.com.

Email sent! Thanks for the excellent support.


Attention, people of the future


esoteric helped me resolve this. The problem was that I needed to update my spine-lua library to the latest version. Huzzah!