psgraffiti Posted February 9, 2015 Share Posted February 9, 2015 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. Is there any solution to get animated draw order to work? Quote Link to comment Share on other sites More sharing options...
sergej.s Posted February 27, 2015 Share Posted February 27, 2015 Hi, psgraffiti. Did you solve the problem? I also couldn't use Draw Order exactly as you described. Ended up utilizing opacity/transparency and dublicating personage parts. Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted March 14, 2015 Share Posted March 14, 2015 Guys, can you check if my patch works? Its in 2.x branch. https://github.com/GoodBoyDigital/pixi.js/commit/b4d68fd12f2b59ac9b0c111e64d107bee6c35c1d Quote Link to comment Share on other sites More sharing options...
psgraffiti Posted March 17, 2015 Author Share Posted March 17, 2015 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 patchWithout the patch, the legs bend correctly, but the arms appear incorrectly under the head Any ideas on a fix to keep drawOrder and ik direction changes during animation? Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted March 25, 2015 Share Posted March 25, 2015 I'm glad that we fixed that issues together Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.