pixijs / spine-v8

PixiJS v8 port of the official spine runtime
https://pixijs.io/spine-v8/examples/
MIT License
32 stars 5 forks source link

Bug: Clipping attachment prevents rendering of subsequent attachments in draw order #24

Closed FacePlace closed 2 months ago

FacePlace commented 3 months ago

Attachments in the draw order after a clipping attachment are not rendered in PixiJS, even if they aren't clipped themselves. This occurs despite all elements being visible in the Spine editor.

Everything on the right side of the portal is supposed to be visible, as it is in the editor.

spineIssue2

However, it looks like attachments after the clipping attachment in the draw order are not rendered in PixiJS.

spineIssue1

Repo: https://github.com/FacePlace/pixi-spine-clipping-demo

pixi.js - 8.2.1 @pixi/spine-pixi - 2.0.2

alexbown commented 2 months ago

I believe I am also having the same issue with clipping not applying to the correct slots, with animations looking fine in the skeleton viewer, but not when ran in pixi. (I had some discussion on the matter in the PixiJS discord in the pixi-spine channel). image

davidetan commented 2 months ago

This PR (https://github.com/pixijs/spine-v8/pull/29) should address the problem. Not 100% sure will address all problems because I don't have access to your assets.