• Editor
  • IK constraints now available in Spine 1.9.0+!

There is no example file yet since the feature isn't fully complete. I will create an example scene today so you can check that out when I upload it, just keep in mind that things are likely to change slightly.


I've created an example project now, you can find it at http://esotericsoftware.com/files/examp ... xample.zip
There are a couple of things that will become much easier to do once we are finished with IK. The Spineboy skeleton has two animations you can check.

Related Discussions
...

The awesome features just keep rolling in, If there was one thing about Spine I missed from modern 3D modeling programs it was IK constraints. I notice you mention IK data not being exported out in JSON format, are there going to be options to check what data we would like exported out in JSON? skinning data, IK, FFD, Mesh? Curiosity for some runtimes that are not updated as quickly as Spine does or legacy options for outdated runtimes (if that occurs).

🙂

I can't say if there will be options for what data to export since I don't know, but it's not something I've heard Nate mention. Currently if you want to use IK for animation and export it, you'll need to key the bones after IK, not ideal but it will be sorted when Nate is back from the US. The reason we wanted to release IK already is that we can then receive input from users to improve on it and also bugs will be found quicker, so in the end it means it will reach a more polished state quicker. I've certainly had a lot of fun with it already but I am already aware of a couple of things that needs sorting out.

Oh, Awesome! Thank you for this tutorial!

Pinning another skeleton would be nice. Something like this or just custom renderer, which supports own draw order.

Nate already did some work on skeletons as attachments but it's not ready yet. "Just" custom renderer 😉

How far is he with the progress? I would be glad to see that custom renderer, though.

I don't know how much work is left on it. What exactly do you mean with custom renderer?

I have managed to change SkeletonRenderer and SkeletonAttachment class to support custom draw order, but I ran into this problem... The pogo and that indian are two different skeletons.

Should probably create a new thread to discuss custom draw order rendering. I'm afraid it's something Nate will have to give his input on since I won't be able to help you with it, I'm not a programmer by trade.

Looking great! I was wondering if Spine skeletons will be supporting IK in realtime as well, where IK targets can be positioned dynamically? As it is done in the Spine editor, I'm sure this could also be done inside a runtime?

Thanks! Yes that is the plan, this is why we made IK only two bones since anything more takes too much processing power and it is also much easier to control. The exact details are not yet decided though.

Is it possible to use more than 2 bones for IK?

puzzler ha scritto

Is it possible to use more than 2 bones for IK?

Hehe I answered that right above your post. But no it is not possible to use more than 2 bones for IK. We want IK to be available at runtime so it has to be lightweight. We do plan on allowing 1 bone constraints as well. But at this moment no more than 2 bones.

We'll only support 1 and 2 bone IK to start. Note you can use IK on any two bones in the hierarchy, even if there are other bones between them. Eg if you have torso, neck, head then you could do IK on torso and head if you wanted.

Awesome feature!Thank you!

Terrific feature! Wet dream for animators!

ANYHOW, want to use on this new project just started. AFAIK, constraints info won't be exported, so is for now cosmetic, right?

I've heard that keying the bones that uses IK, might be a way to properly use animations at runtime. Question is: is there a easy way to do that? There will be a way to export bone rotations set by IK as bone keys, like, automatically?

What I'm doing now is kinda tedious, as i have to see fancy rotation of bones, to turn off the IK, key each one, advance in the animation... turn on IK, see position of bones, turn off IK, key bones, turn on IK, set positions, key stuff, repeat for 60 frames... :sweat:

Would be cool to automagically have this button that says 'key all bones affected by constraints, each frame" so animations can be used on all targets.

It's only cosmetic now or if you export as an image sequence, this will be of course be sorted when Nate is back from vacation.
It was actually supposed to key bones based on the IK but a bug must have crept in and this does not happen currently. You can click the visibility dot next to the IK constraint in the Constraints list in the tree to see both FK and IK at the same time then move your FK bone to the IK location and key it, a little less tedious than what you're doing now.

Thanks Shiu for the tip and info, my wolf is more happy since can be better animated now >😃

 Loading Image

Cool, I see you are doing something a bit like a standard footroll setup. We'll make it possible to only use a single bone that is constrained and then you can disable rotation inheritance on the toe bone which will then give really nice control over the foot