cocos / cocos-engine

Cocos simplifies game creation and distribution with Cocos Creator, a free, open-source, cross-platform game engine. Empowering millions of developers to create high-performance, engaging 2D/3D games and instant web entertainment.
https://www.cocos.com/en/creator
Other
8.36k stars 1.95k forks source link

Spine Rendering Bug #16924

Closed MrcSnm closed 2 weeks ago

MrcSnm commented 6 months ago

Cocos Creator version

3.8.3

System information

Windows 10

Issue description

Some parts of the spine are being rendered in a glaring way. Even without the premultiplied alpha marked there, it still looks terrible.

I've kept the .spine and example file in there for you to test

Relevant error log output

No response

Steps to reproduce

Just hit play and you'll see that the spine is not doing the correct effects

Minimal reproduction project

SpineTest.zip

bofeng-song commented 6 months ago

@MrcSnm Because the current version of the engine is using Spine 3.8, please create the corresponding .spine resources using Spine 3.8 editor. image

If there are still issues, please kindly change curBlendSrc to BlendFactor::SRC_ALPHA for verification. Thank you.

MrcSnm commented 6 months ago

@bofeng-song Maybe the engine should give an warning when having a mismatching spine version?

bofeng-song commented 3 months ago

@MrcSnm Does the problem exist after change the spine's version ?

MrcSnm commented 3 months ago

I still need to test it

MrcSnm commented 1 month ago

SpineTest2.zip @bofeng-song Tested and the issue still occurs after version migration

MrcSnm commented 1 month ago

@bofeng-song I've just got someone which made that work with different export settings:

Maybe that is useful for debugging

Normal is the working version, while H1 is the old that does not work

Normal.zip H1.zip

bofeng-song commented 2 weeks ago

@MrcSnm Thank you for the feedback on this issue. Please refer to the changes in this PR. Thanks!

MrcSnm commented 2 weeks ago

Thx for the fix!