• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.
Sign in to follow this  
Followers 0
BlackBrain

Inverse Kinematics help

7 posts in this topic

Hello .

 

I have skeletal animation in my engine right now and it's working good,however, it's not enough . I would like to add IK to my characters so that I can let's say control their right hand position after animation update . I don't know how IK is done . Can you please give me instructions or give me a refrence to read further about this ?

 

Thanks in advance

0

Share this post


Link to post
Share on other sites

Inverse Kinematics are a procedural animation. For that you need explicit defintion of a skin mesh (weights and bones). And if you set a certain bone to an explicit transformation, it is supposed to affect all parenting bones to the very root of subtree.

 

This is rather not any trivial topic, and- it is even rarely implemented or needed actualy, so no straight links for you to see.

 

But, what I can tell you is that- if you set a right hand bone to be position at a point, you will need to

 

-  compute final skeleton from manner of influence towards ancestry

- blend from current one to final one

 

you may compute the final one in MANY MANY manners, such as, root of most influenced ancestor volatiles, but other roots dont and so on.

 

IK is a wide bunch of stuff and you may need only 5 percents of it.

 

Describe what you wish to achieve rather

1

Share this post


Link to post
Share on other sites

I wish that I can let's say set the position of right hand then the shoulder and elbow fix their rotation so that the right hand position would be correct. Also I need to correct the foot position in order that the foot will all ways be on floor or ground when moving on a stair or a slope. I just wish to know how can I get correct rotation for corresponding bones and apply that to them. 

0

Share this post


Link to post
Share on other sites

I wish simple things Let's say : preventing the foot of the character go below the ground. I would like to set the position of the foot and the thigh and knee adjust their rotation so that the foot would reach the set position. Or for the hand the exact same thing , I set the position of the hand and shoulder and elbow adjust their rotation. 

I wish to know how can I get the correct rotation and further apply them to bones ?

0

Share this post


Link to post
Share on other sites

you cannot set a position of foot freely, as it would severe if very center of skeleton cannot be moved.

 

What you want to achieve is a physicaly jointed structure.

 

It would serve your purpose totaly. You can restrict joints angles of freedom and so on, If you can grab some physical engine library, I would recommend you that direction.

1

Share this post


Link to post
Share on other sites
IK can get pretty complicated. There is a great talk on GDC Vault from this year:

http://www.gdcvault.com/play/1020056/Math-for-Game-Programmers-Inverse

Part of the complexity is due to the fact that kinematics (animations) have one solution, whereas IK has many. CCD (Cyclic Coordinate Descent) is a popular method and a good place to start if you're determined to write it yourself.

If it feels like that content is going over your head I'd agree with JohnnyCode, grab a third party library and at least get used to how they solve the issue, then try again armed with that knowledge.
1

Share this post


Link to post
Share on other sites

Thanks . I don't need complex IK. I want to use it as a post process after the animations are played so that let's say a character can hold his hand to the wall . I get the wall position by raycating and setting the hand's positon. This is all I am looking for.

0

Share this post


Link to post
Share on other sites


I get the wall position by raycating and setting the hand's positon. This is all I am looking for.

Well, but this is the complicated case. The complexity depends on the number of modified bones. A simple, single bone head tracking or a two bone leg on ground IK are some special cases which could be hacked .

Sure, you are only want to place a single bone , eg your hand bone. But then you need to fit in all other bones to support the pose while keeping the general pose of the given animation. Eg. the upper body need to react to the hand on wall scenario (bending over ). In this case, additionally to  your hand bone, you will most likely need to adjust the wrist,lower arm, upper-arm, shoulder and 1-3 spine bones too. Adjusting this kind of complex IK without considering more complex IK sovler is no fun at all smile.png

1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0