Help with animations

Help with animations

Discuss game development here, from a distinct game project to an accessible third-party mutator, down to the interaction and design of individual units if you like.

Moderator: Moderators

Post Reply
User avatar
Fanger
Expand & Exterminate Developer
Posts: 1509
Joined: 22 Nov 2005, 22:58

Help with animations

Post by Fanger »

I have recently started redoing models in Expand and Exterminate, and am wonder if anyone could help me script a walk animation for a 4 legged bot...
User avatar
bobthedinosaur
Blood & Steel Developer
Posts: 2702
Joined: 25 Aug 2004, 13:31

Post by bobthedinosaur »

spider or horse like? your old ones seemed fine...
User avatar
FireCrack
Posts: 676
Joined: 19 Jul 2005, 09:33

Post by FireCrack »

Like his old ones.

He's making hi-poly models.
User avatar
Aun
Posts: 788
Joined: 31 Aug 2005, 13:00

Post by Aun »

The old ones weren't actually 4 legged, they had two legs as one object.
User avatar
Drone_Fragger
Posts: 1341
Joined: 04 Dec 2005, 15:49

Post by Drone_Fragger »

think of the Strider from Nanoblobs.
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6241
Joined: 29 Apr 2005, 01:14

Post by FLOZi »

Animating is evil. :cry:
User avatar
Nemo
Spring 1944 Developer
Posts: 1376
Joined: 30 Jan 2005, 19:44

Post by Nemo »

The fat shrew or monkeylord scripts could also be a good place to start.
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Post by zwzsg »

They have six legs, not four. I've got this dog-like 4 leg walk script. But if I recall, in E&E the legs are short and not long, clawed and not hoofed, and planted on the side not on the underneath, so this won't do.
User avatar
Nemo
Spring 1944 Developer
Posts: 1376
Joined: 30 Jan 2005, 19:44

Post by Nemo »

yes, but if you were to only use the outer four legs, it would look fine.

There's also the fido.
User avatar
Fanger
Expand & Exterminate Developer
Posts: 1509
Joined: 22 Nov 2005, 22:58

Post by Fanger »

Well I have a picture of the unit Id like animated.. perhaps that would help.. I can alos post my snipit of walk animation ive come up with.. which is starting to annoy me..

Image

The unit is of course not textured atm... just a blanket team texture but I think you can see how the armature works..
User avatar
Zoombie
Posts: 6149
Joined: 15 Mar 2005, 07:08

Post by Zoombie »

When you do do the animation, make sure you don't do that thing where it moves faster then the animation, like the monkey lord. [/u]
User avatar
Candleman
Posts: 433
Joined: 08 Sep 2005, 07:30

Post by Candleman »

The monkeylord is slower than it's animation. Way too slow, if you ask me.
User avatar
Zoombie
Posts: 6149
Joined: 15 Mar 2005, 07:08

Post by Zoombie »

Whatever.
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Post by Argh »

Hey, um... I don't want to be a butt-head or anything... but the way that this thing's joints are currently designed, it cannot possibly walk.

The joints where the legs join the body need to become ball-joints or universal joints, so that it can rotate in Y as well as X at the same time, giving the legs a proper forward walking motion. The thing about the unit you're vaguely copying from is that it was animated using IK, and if you look at it... it's not even vaguely realistic. IRL, you'd actuate it with a pair or more of hydraulic actuators to turn the joints. You can actually do that kind've thing in Spring, if you turn off animation smoothing and use NOW steps that you've set up in Servo, if you wanted to get really fancy, although there is this wee problem about how certain orientations are reversed (kind've painful issue, wish UpSpring was fixed so that was no longer an issue).

At any rate... ball joints for the "hips", because just like human hips, or for that matter just about every walking animal... walking is a complex motion involving movement and rotation through all three axii at the same time. What you have right now will never look right.

And yes, before everybody yells at me... the Strider cheats. I gave it the barest suggestion of a ball-joint join under the "shell", but mainly counted on people just not being able to perceive it accurately, because it's hidden and the legs are moving pretty fast. I wouldn't exactly hold it up as a great example of unit scripting (er, unlike the Archer, whose walk-cycle was coded mainly by DRB)...
User avatar
Zoombie
Posts: 6149
Joined: 15 Mar 2005, 07:08

Post by Zoombie »

Who cares if it makes sence? It LOOKS cool, damn it?
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Post by Argh »

Because if it doesn't make sense, it will not look cool when it moves. People have a very intuitive sense of motion, and if something doesn't make any sense, it's hard to convince them otherwise. With Spring, you have to be extra careful, because you can't cheat with stretching or distortion, like you can with IK systems.

Trust me, making the Spider look half-way decent was a royal pain... there are pretty good reasons why Nature has never created any animals with that leg configuration ;)
User avatar
Fanger
Expand & Exterminate Developer
Posts: 1509
Joined: 22 Nov 2005, 22:58

Post by Fanger »

Theoretically that "armor" on top of the part of the leg attached to the torso is covering over what would be a ball joint configuration, aside from the body/leg interface would the rest of the armature work at all, honestly I cant get it to animate quite right...

also argh what unit are you referencing, that I designed it based ofF of? Just curious, as I actually based this somewhat off of the light combat unit in earth 2160 combined with elements of the old EE URC bot model..

also what is IK?

To add to this.. If the current design is no good which of these other options might you suggest?

Image
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Post by Argh »

Here are a couple of shots. I think you can make it work, it just needs minor alterations of the hip joints, is all.

Image
In this first shot, you can see how I blocked out the motion series, starting with the Neutral pose (gray). Always, always, always start with Neutral Poses at 0 or 90 degree angles, if you can help it, and move the parts via NOW during Create(), instead of fighting with the engine about rotational math. Only use angles on bits and pieces that aren't going to actually move, like the relationship of the "foot/shin" to the "knee".
As you can see, there is a very wide distance between the Final position (red) and Start position (green). Timing this transition is, in fact, the key thing. The time it takes to get from First Rest (yellow) to Final is the exact amount of time it will take to get from Final to Start. With me thus far?

Now, for the second shot:
Image
In this shot, I am showing disjointed animation timing, a must-have for most four-legged walking critters (in my opinion, at any rate). The first versions of the Spider had perfectly synchronised right/left mirroring for the legs. This was mechanically "perfect", but it looked... to be frank... really wrong.

The reason for this, and I'm not saying this is "right" or "wrong" in some absolute sense... is that people's expectations of four-legged walking motion is highly conditioned by the real-world examples of four-legged animals we see every day- dogs, cats, horses, etc. None of these animals walk with perfectly synchronised strides!

The reasons for this are actually mechanically sound- it eats a lot less energy to move with a desynchronised stride for the distance travelled, because the animal can use its weight to aid motion and wastes very little energy on balance or counter-acting rotational forces. There are counter-examples of this (think about a cheetah's running motion for a moment) where animals are using synchonised motion at a very high speed, but even at high speed, most animals use desynchronous motion, such as the complex motions of a horse while galloping (where at one point during the cyle, all four legs are off the ground, resulting in a desynchronised 5-step motion cycle... one of the reasons why artists and animators alike have always been fascinated with horses).

In short... de-tuning the synchronistic elements of your animation and putting things out've step looks a LOT more realistic. For a more practical study... go read through the Strider's BOS code, it's included in NanoBlobs.
User avatar
Fanger
Expand & Exterminate Developer
Posts: 1509
Joined: 22 Nov 2005, 22:58

Post by Fanger »

Hrmm.. That is very helpful advice.. might kick start my brain a good direction now.. Thanks alot for take some time to give out some ideas...
Post Reply

Return to “Game Development”