• Runtimes
  • [cocos2d-x3.2] SkeletonAnimatio as stencil of clippingnode

Related Discussions
...
18 jours plus tard

i want to make a SkeletonAnimation shadow , so i made SkeletonAnimation as clippingnode stencil to mask a black sprite

but the SkeletonAnimation will always appear at (0,0) , no matter i change the position, rotation, scale , made spine as childnode of node, direct change matrix in drawskeleton, its alway show origin size rotation at (0,0)

whats happen?

its work correct if i set sprite as clippingnode stencil


no one know? = =

finally i solve it. its not a cocos bug. just spine use different vetex shader.
to show it correct you need take care the spine vertex shader.

Glad you worked it out! Got a screenshot or video? 🙂

6 jours plus tard

I second the request for a screenshot/video! I would love to see how the effect turned out.

7 jours plus tard

Looks great thanks!

Very nice!