rainyt / openfl-spine

Supports Spine renderer versions 3.8 to 4.2 on OpenFL
MIT License
18 stars 6 forks source link

Color transforn issue with tilemap skeleton animaion #16

Closed CrazyFlasher closed 5 years ago

CrazyFlasher commented 5 years ago

Hi. Color there is another color transform issue. Can you take a look please? diff bonus.zip

I can send spine source if needed

rainyt commented 5 years ago

Is it because the color of the last object never changes?

Openfl-spine looks like a color difference, is this wrong?

rainyt commented 5 years ago

You can try this. https://github.com/rainyt/openfl-spine/commit/50dd851b2ad8fe0c486ef9a3a48c00b800dbbef8

CrazyFlasher commented 5 years ago

Hi. Still not like expected :(

Expected: expected

Actual: actual

May be issue can be fixed by changing anything is source? Link to source: http://188.166.108.195/bonus.zip

rainyt commented 5 years ago

This is a bit special, I don't know if there is a difference in the colorTransform implementation.

CrazyFlasher commented 5 years ago

It's interesting, that "S" char color transform animates correctly. But other letters don't

rainyt commented 5 years ago

It was only affected by Alpha, like it was hidden.

rainyt commented 5 years ago

🤔It looks like the Color value is not set correctly.

rainyt commented 5 years ago

I tested it. He has two layers of letters. The color of the letters below is changed normally. Should the letters above be hidden or not displayed?

CrazyFlasher commented 5 years ago

I guess so

rainyt commented 5 years ago

I think the above layer of letters can be removed, or set to alpha = 0

CrazyFlasher commented 5 years ago

You mean set alpha to 0 in animation or in setup settings? It's strange, that it works OK in Spine directly and in Pixi

rainyt commented 5 years ago

https://github.com/rainyt/openfl-spine/commit/eb2a0d849dc0f46b9f478e63593aeffbdc2ebbef And https://github.com/rainyt/openfl-spine/commit/2a40997bb56c9492502f66c375b95b9b78040afb I guess no, it has fixed this problem. Try try try~!

CrazyFlasher commented 5 years ago

MAN! YOU ARE MEGA-SUPER-COOL! IT WORKS NOW!!!!!!!!

rainyt commented 5 years ago

Good, haxelib update to openfl-spine1.5.5