• Editor
  • Try clipping in the 3.6 beta!

Related Discussions
...
Channfree :

Is it possible to say you wanted to animated a painting and you wanted a subject to move off of the frame. Could you mask the whole painting or rig so that works and you not working with a lot of extra space.

Sure, but isn't it better to "mask" the subject through mesh creation so that they can move and then clip just the exceeding part of the painting that needs to not be shown outside?

15 天 后

I was wondering, I was testing Spineboy creating a random clipping around him, I exported it and then imported it in the web widget test file I had, the animation is working, but there's no clipping at all, is it unsupported?

Also I noticed that when Spineboy shoots it looks like the additive blending is affecting the body but not the background even if it's set up as a color inside the widget.

Clipping is supported with all runtimes. Did you update your runtime to the latest 3.6?

I'm not sure about what you are seeing with additive. Got a screenshot?

I previously used the file Badlogic sent me a couple weeks ago,
I just updated and yes, clipping is supported, tint black isn't supported though, and that's what I see:

Also in case you need it, here's all the files


And If I change the color of the tint:


Testing the additive setting with grey instead of red proves additive blending works also perfectly fine. It's just the tint black that has a funny behaviour...

(°v°)/ yaaay! I'm also probably the only one to use the widget LOL but whatever, at least I'm spreading the word...
Thanks for fixing it so fast! 😃

Actually, there are a few products out there using the widget! But you are still our #1 beloved widget user. Thanks for reporting issues!

I wish I could see them, it seemed so interesting yet nobody has posted stuff about the widget in the showcase section for now afaik.
Thank you for creating the widget so that even I can make it work!

Is it possible to add a feather option to the mask in future update?

It's currently not planned, as the clipping feature is implemented as hard geometrical clipping, not image based clipping.

8 天 后

Hello!
I'm trying clipping using pixi-spine, but seems it dont work, timeline present though. So, in general, question is - does pixi-spine supports this feature? If so - could u provide some examples to check it out?

Tested on lates pixi-spine with latest spine editor. Thanks in advance!

pixi-spine isn't maintained by us, but by the 3rd party who created it. I believe they've not been able to add clipping yet. You could file an issue on their issue tracker at https://github.com/pixijs/pixi-spine/issues

5 天 后

thanks a lot, mate!

1 个月 后

Just a heads up, pixi-spine has masking support now! It was added about a month ago, I believe.

1 个月 后

Hi just wanted to ask is it possible to mask down instead of up the draw order? I have a background image I want to transition below everything else.

Clipping starts where the clipping attachment's slot is in the draw order, and it ends at the clipping attachment's "end slot".

notClipped
endSlot      <-
clip           \
to              |

---

 clipping applied between these slots
stuff          /
clippingSlot <-
bg
21 天 后