Jump to content

Support for DrawOrder during animation?


psgraffiti
 Share

Recommended Posts

I'm using pixi.js with spine.js, everything works fine until changes are made to the draw order during the animation. The character is still animated, but the attachments become swapped incorrectly at the time keys where the draw order was changed. For instance the head is placed where the foot should be and vice versa.

 

post-13060-0-05389700-1423508080.pngpost-13060-0-09993800-1423508079.png

 

Is there any solution to get animated draw order to work?

Link to comment
Share on other sites

  • 3 weeks later...
  • 3 weeks later...

Hi ivan.popelyshev,

 

The drawOrder patch does work, thanks!

However it also breaks ik, specifically changes in direction for ik.

For example, while the arms appear correctly on top of the face, the legs bend backwards with the patch

Without the patch, the legs bend correctly, but the arms appear incorrectly under the head

 

post-13060-0-39573900-1426615697.png post-13060-0-68714800-1426615698.png

 

Any ideas on a fix to keep drawOrder and ik direction changes during animation?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...