Skip to content
This repository has been archived by the owner on Nov 20, 2024. It is now read-only.

Spine Animation that works on pixi 7 and 6 doesn't work on pixi 8 #26

Closed
apelev opened this issue Jul 12, 2024 · 7 comments
Closed

Spine Animation that works on pixi 7 and 6 doesn't work on pixi 8 #26

apelev opened this issue Jul 12, 2024 · 7 comments

Comments

@apelev
Copy link

apelev commented Jul 12, 2024

Hello guys. I am currently trying to run some spine animations after migration from pixi 7 to pixi 8. Some weird artifacts appear (looks like scaling or improper reading of the spritesheet coordinates). I am attaching a screenshot of a moment when such artifact appears. The fiery outline should appear on the lemon, not "moved" away from it. The interesting thing is that if I enable the spine debug with the following setup( everything is disabled), the animation starts to appear properly. Once I disable the debugger it bugs again.


public static attachSpineDebug(spine: Spine): void {
    const debug = new SpineDebugRenderer();

    debug.drawRegionAttachments = false;
    debug.drawMeshTriangles = false;
    debug.drawMeshHull = false;
    debug.drawBones = false;
    debug.drawPaths = false;
    debug.drawBoundingBoxes = false;
    debug.drawClipping = false;
    debug.drawEvents = false;
    spine.debug = debug;
  }

how it is >>>>
image

I have tried several combinations of pixijs and spine v8 plugin but none seem to fix the issue. Currently trying with pixi 8.2^ and spine pixi 2.0.2.
The spine version is 4.2.33

We tried exporting in several different formats and versions from the spine editor and none seem to work. The animation itself runs fine in spine editor and as I previously mentioned with pixi 7 and pixi 6.

Any ideas what could possibly be done to fix this issue ? I can also provide the animation in private if it would help

@sbyps
Copy link

sbyps commented Jul 30, 2024

+1

@davidetan
Copy link
Contributor

That's difficult to debug without the animation. I can work on that, if you can provide the animation to me.

@apelev
Copy link
Author

apelev commented Jul 30, 2024

That's difficult to debug without the animation. I can work on that, if you can provide the animation to me.

Hello, mate. Here is a WeTransfer link to it https://we.tl/t-10IEYNR8Yp

@davidetan
Copy link
Contributor

Thanks for providing your asset. I was able to find the problem and a solution and I just quickly created a draft PR. More info into the PR here: #31

Tomorrow, I'll see if I can do that in a cleaner way.

@davidetan
Copy link
Contributor

@sbyps What do you mean with

cannot render as well

?

Can you point out the differences?

@Zyie
Copy link
Member

Zyie commented Nov 20, 2024

Hi

We have now moved this project to the official Esoteric Software repo for them to maintain. As a result we will be archiving this repo and closing all issues. If you still are having this issue please feel free to open an issue over on the new repo!

As for migrating between the projects it should be as simple as swapping out the imports from @pxi/spine-pixi to @esotericsoftware/spine-pixi-v8

@Zyie Zyie closed this as completed Nov 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants