Archived

This topic is now archived and is closed to further replies.

The Inverse Kinematics Problem

This topic is 5016 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have been doing some work with charecter animation in directx, and have been wanting to use inverse kinematics to generate smoother animation sequences between my frames. Does anybody know how to calculate this stuff, or have any resources? Any help would be greatly appreciated. Thanks Sagar Indurkhya

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
You probably want interpolation instead of IK.

So look for vertex tweening instead. I think that''s what its call in DX. The simplest one is linear interpolation.

Share this post


Link to post
Share on other sites
Well, if you''ve got character animation, then you should be using quaternions (really depends on your animation/model format), in which case you can do SLERP. Look it up. I''m using quaternions but I haven''t implemented SLERP yet.

Basically, you have two positions, A and B. Your model should be past A, but not yet to B - what to do? These two frames of animation are relatively ''here'' and ''there'' - and in math, we describe these ''in between'' changes from one point to another as 0.0 to 1.0, capiche? So, off the top of my head a slerp is scaling Frame A quaternions by how far you are from A to B (inbetween), and scaling Frame B quaternions by (1 - inbetween), then multiplying these quaternions together, to get a new set of ''inbetweenAandB'' quaternions, essentially a new frame.

Somebody who''s actually implemented a system like this can now come along and point out the errors of my explanation.

Share this post


Link to post
Share on other sites
I talked to some other guys, and thats basically what they said too. But I have only a few frames, and my animations aren''t really game based as opposed to research based. I want to simulate the real thing, without taking any shortcuts. everything(almost) is generated on the fly, based on the environment around the charecter.

eg. If the terrain at the desination point of a charecters foot is at 45* angle, the charecters foot will generate a frame with its foot at the target spot with 45* angle. I have very few frames any way. Is it still possible to do this
without applying to a college level math course?

Sagar Indurkhya

Share this post


Link to post
Share on other sites