ilusha

Hello,

I need two masks for an animation. As I know Spine supports only one clipping per skeleton. So I made two skeletons each has one clipping area. In the starling runtime, only one clipping plays as expected. I checked the asset in SkeletonViewer and it plays the animation correctly.

I sent the starling project and the spine project to esoteric email.

Animation assets: dewPart1, dewPart2

Thanks
アバター
ilusha
記事: 52

badlogic

Cheers, I got the repro files. I'll post here once I found the issue.
アバター
badlogic

Mario
記事: 1297

badlogic

I've found the issue, but no way to properly fix it. It seems the SWC compiler does something terrible when compiling the source files, specifically Triangulator.as and SkeletonClipping.as. These are contained in spine-as3.swc, which we compile with default compiler options in release mode. For whatever reason, the clipping starts failing when referencing these classes through spine-as3.swc.

The only working solution at the moment is to take these two files and put them in your project's src/spine/ directory, while still linking to the spine-as3.swc file.
アバター
badlogic

Mario
記事: 1297

ilusha

Thanks for the investigation. I'll check the solution later.

---

I added spine as3/starling src to the project instead of swc and it works correctly. Magic :)
アバター
ilusha
記事: 52

tenjarlaKC

hello,

how can i animate the end slot in clipping in spine..

Thanks.,
tenjarlaKC
記事: 2

Erikari

Hello tenjarlaKC, I recommend modifying the draw order, as long as the starting slot and the end slot are the same what's in the middle can change. Otherwise, you could also just create a copy of the clipping and switch to that when you want to have a different clipping end.
アバター
Erikari

Erikari
記事: 1085

tenjarlaKC

Thanks Erikari,
modifying the draw order between starting slot and ending slot helped and it saves lots of time for me...

Thanks..
tenjarlaKC
記事: 2

ilusha

Hi Mario,

I have found another issue with that example.
The asset "dewPart1" contains several animations: "initial.idel", "ant.walk".

If I change "ant.walk" to "initial.idel" with "skeleton.state.setAnimationByName(0, "initial.idel", true);" then the issue appears.
clippingIssue.png


Any ideas?)
アバター
ilusha
記事: 52

badlogic

Could you open an issue for this? IIRC, you send the assets by email?
アバター
badlogic

Mario
記事: 1297

ilusha

I opened an issue on git: [Starling] Clipping doesn't work · #1125

You are right: the as3 project and the spine project were sent on March 31. A couple of days ago I sent modified src file to reproduce the bug.
アバター
ilusha
記事: 52

badlogic

Thanks, I'll investigate!
アバター
badlogic

Mario
記事: 1297

ilusha

Many thanks to Mario! He found and fixed very annoying bug with clipping. Now the animation works correctly.
アバター
ilusha
記事: 52

badlogic

Whoops, forgot to also update the forum post. The fix is in the latest 3.6, 3.7-beta branches! Thanks for reminding me!
アバター
badlogic

Mario
記事: 1297

badlogic

Whoops, forgot to also update the forum post. The fix is in the latest 3.6, 3.7-beta branches! Thanks for reminding me!
アバター
badlogic

Mario
記事: 1297


Return to Bugs