Sign in to follow this  
GameGeazer

Modular Animation

Recommended Posts

GameGeazer    1090
Hello, I am working on A 2d platform game called "Knight" for now. I want to animate the character and npcs using modular animation but I cannot find a good page on the subject. Could anyone point me to a good source or post some pointers? All coding is being done in Java.

Share this post


Link to post
Share on other sites
GameGeazer    1090
Sorry if I was unclear. I found this video: http://www.youtube.com/watch?v=Aww99PLJqMU

and I wanted to incorporate animation similar to that of which is used to animate the golem on my characters.

maybe I used the wrong term, sorry about that.

Share this post


Link to post
Share on other sites
Lord_Evil    680
Well, from the video it looks as if the golem is constructed of multiple parts that form a hierarchy (e.g. torso -> upper leg -> lower leg -> feet).

Then the individual parts are rotated arount their joints. This could be done via skeletal animation which is applied to a 2d skeleton instead of 3D and doesn't make use of skinning.

Share this post


Link to post
Share on other sites
GameGeazer    1090
I have attempted to create a skeleton of rotating parts by placing the body parts relative to the torso's position and rotating them back and forth to preset angles. I really do not like to hard-code and of my work and this way seems very tedious; not to mention a I bet that it runs very slowly. Are there any techniques to doing this to make the code more generic and run efficiently?

Share this post


Link to post
Share on other sites
Lord_Evil    680
Skeletal animation isn't hardcoded by itself. And it's not really slow.

Generally, skeletons along with animation data are provided as part of your character, i.e. it would consist of a file containing the skeleton and animations and one or more files containing the individual body parts. Thus everything is artist-controlled.

Additionally, you could apply inverse kinematics to make your character respond to the environment.

When rendering you'd update the skeleton by rotating the bones around their joints and apply the transformations to the attached body parts. Note, however, that if you use sprites for your characters you'd normally have somewhat rigid parts, i.e. they would rotate and maybe scale but they wouldn't change their shape.

You could, however, provide a sprite for each animation step and combine multiple independent parts to one character. But that would require the artist to create every single animation frame.

Or you could apply some transformation on your sprites but if they go beyond simple rotation, translation and scaling you might get a significant performance hit.

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