Important Announcement
Forum has been made read-only. Please click here for more information or here to return to The Spriters Resource.

Spheroid
#4
I noticed that there is 'foot slip' during animations. So I assume that you coded the movement in instead of by animation? Although this isn't my quote, this guy said what I wanted to say better than I did at the time.

[spoiler]
Buckshag From Gamedev.net Wrote:What you are looking for is called Motion Extraction, or sometimes also called Root Motion.

Sometimes it is also referred to Variable Motion Extraction, because the motion is not constant, but defined by some node inside the motion itself.

What you basically do is take a given root node, for example the Hip node, and extract the translation and rotation delta from that for the given frame.

Then you filter that transform, to for example only rotate around the up axis, and capture only movement on the ground plane.

Then instead of applying this transformation to the hip node, you apply it to your actor itself.

Your motion is now driving the position and rotation of your character.

When you blend two animations together, for example if you blend between a walk and run motion, you should calculate the delta movement from each motion, and blend these two delta transforms by the same weight as you blend your motions.

This is the basic idea. There are several things you have to take into account, such as looping and scaling of your character.

Your animations will not be in-place animations anymore, but they have to move away from the origin (in case of moving forward or so).
[/spoiler]

With that advice, you should have alot more control over movement as an animator. However, animations like jumping would still need to be coded in the game.

It was hard to tell, but if you've ever experienced an effect from shooting really fast moving projectiles, like bullets, and they seem to be remaining in place?- It looks like the bullets have a fixed position? The solution to this is to interpolate the world transforms from the last few frames. I'm unsure how much control you have in GM, but I hope these two details help you out in someway.


Messages In This Thread
Spheroid - by FromSoySauce - 08-27-2013, 12:05 PM
RE: Spheroid - by TheShyGuy - 08-27-2013, 12:43 PM
RE: Spheroid - by FromSoySauce - 08-27-2013, 01:56 PM
RE: Spheroid - by TheShyGuy - 08-28-2013, 01:00 AM
RE: Spheroid - by FromSoySauce - 08-28-2013, 01:38 AM
RE: Spheroid - by TheShyGuy - 08-28-2013, 01:48 AM
RE: Spheroid - by FromSoySauce - 08-28-2013, 10:07 AM
RE: Spheroid - by TheShyGuy - 08-28-2013, 10:30 AM
RE: Spheroid - by FromSoySauce - 09-21-2013, 12:15 PM
RE: Spheroid - by FromSoySauce - 10-12-2013, 04:51 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)