ANIMATING REPTILES AND SNAKES

Reptiles and snakes are creatures that have unique forms of locomotion. Unlike mammals, which primarily use their legs, snakes and reptiles tend to use their bodies and spine as a major part of locomotion.

REPTILES

Quadrupedal reptiles, such as lizards and crocodiles, tend to keep their stomachs very close to the ground, with the legs splayed out to the side. With few exceptions, most four legged reptiles have the same awkward position. This keeps the reptile's center of gravity quite low. This makes it more difficult to raise the body off the ground. As a contrast, quadrupedal mammals have their limbs directly underneath the body, which allows the legs to carry all of the animal's weight, which is more efficient.

Crocodiles, as well as lizards and other reptiles, have legs that are splayed out to the side.

REPTILE WALKS

A reptile walk is similar to a mammalian walk in that the front and back legs move in opposition. The reptile's low center of gravity, however, forces the body to work more. As it walks, a reptile will bend it's torso into a curve to help push the feet along. Despite this awkward motion, some reptiles are capable of moderate speeds. Crocodilians raise their bodies off the ground and make short, fast rushes. Short-bodied lizards also can move fast for short distances. In fact, some lizards can lift their front legs off the ground when running. Longer bodied lizards have greater difficulty in raising their bodies, since they have short legs. This forces their bodies to move more like snakes. In fact, the reptiles with the shortest legs actually have no legs all - these are called snakes.

In a reptile walk, the reptile's low center of gravity forces the spine and torso to bend much more than in a mammal.

SNAKES

Snakes move in a very unique way, and to the casual observer, it seems almost magical than an animal with no legs can move so quickly and gracefully. Snakes travel best on surfaces with obstructions and some roughness. This gives their bellies something to grip. Snakes do not do very well on slippery surfaces.

Try putting a snake on loose sand and watch it crawl. Every part of its belly touches the ground and it flows along in a series of S-curves. On the back of each curve you will notice the sand has been pushed up. The body pivots and pushes sidewise against these piles and is propelled forward. They swim in water with the same motion.

Snakes several different modes of locomotion. The method a snake uses depends on several factors such as the size of the snake, the roughness of the surface, and the speed of travel. Typically, the snake finds a bump or a rough spot on the surface, and pushes against that with it's body to move forward.


SERPENTINE LOCOMOTION

Serpentine Locomotion uses the classic "S" curve and is the most common method of travel used by snakes. In lateral undulation, waves of sideways bending are propagated along the body from head to tail. The snake's muscles are activated sequentially along the body, relaxing and contracting to form an "S" shape. As the snake progresses, each point along its body follows along the path established by the head and neck, like the cars of a train following the engine as it moves along the track.

Serpentine locomotion is the most common method of travel used by snakes. Each point of the body follows along the S-shaped path established by the head and neck, much like the cars of a train following the track.

SIDEWINDING

Sidewinding is used by many snakes to crawl on smooth or slippery surfaces. It is similar to lateral undulation in the pattern of bending, but differs in a few ways. First, the snake's body doesn't slide along the ground, instead it lifts part of the body, while firmly setting down other parts. This allows the snake to get a better grip.

Next, the parts of the body that are not firmly planted on the ground lift up from the ground causing the body to roll along the ground from neck to tail, forming a characteristic track.

Finally, because the snake repeatedly lifts parts of the body, it moves diagonally relative to the tracks it forms on the ground.

When animating this type of motion, the distance that the snake lifts it's body off the ground is usually measured in fractions of an inch, which practically negligible from the audience's viewpoint. For added effect, you can exaggerate this lift.

In Sidewinding, the snake actually lifts parts of the body and sets them down again.
Sidewinding causes the snake to move diagonally relative to the "S" shape.

CONCERTINA LOCOMOTION

In Concertina Locomotion, the snake alternately bends up the body like an accordion and then lifts and straightens out the body to move forward. The front part of the body then comes to rest on the surface and the back part of the body is lifted and pulled up into the accordion shape again. Concertina locomotion is used mostly in crawling through tunnels or narrow passages and in climbing.

In concertina locomotion, the snake bends up the body like an accordion and then lifts and straightens out the body to move forward, like an accordion.

RECTILINEAR LOCOMOTION

Rectilinear Locomotion lets the snake move straight ahead with it's body stretched out, or perhaps on a wide arc. This type of motion is used primarily by large snakes such as boas and pythons. In rectilinear locomotion, the action is somewhat like rippling the belly, as the scales on the snake's belly scales are pulled forward and lifted off the ground, then set down and pushed backwards. Because the scales are aligned much like a ratchet, this pulls the snake forward.

Rectilinear Locomotion lets the snake move straight ahead with it's body stretched out.

OTHER MOTIONS

These are simply motions a snakes uses to travel forward. Additionally, snakes can also perform many other motions. They can coil up and strike, climb trees, swim, as well as many others. In all of these, the snake uses it's entire body to move and position itself.


SETTING UP A SNAKE

As you can see, snakes can perform some pretty amazing things with their bodies. In order to animate a snake properly, you'll need to create a skeleton or other setup that provides maximum flexibility for the animator.

Your first instinct might be to create a simple chain of bones and link them together to form an IK or FK chain. This might work for a simple motion, but it has a number of drawbacks.

IK Chains tend to favor a particular direction. If you build a chain that arcs to the left, getting it to bend to the right will usually be very difficult or impossible.
FK Chains can also be problematic. With the bones linked in a simple hierarchy, moving one joint will also move all of the children. This can be a real hassle when animating smooth undulating motions.

With standard IK and FK solutions seriously deficient for snake animation, you will probably need to turn to other methods. One method may be simply a collection of skeletal bones that are not linked in a hierarchy. You would simply animate the snake by moving each bone individually. This, however, can be a hard to manage.

Splines are a great method for animating snakes. A simple spline looks like a snake, and can be used for animation as well. Most packages support spline deformation in one form or another. Many package will allow you to animate the control points of the spline directly. If this isn't the case, you can make these points into one point clusters and animate those.

Spline Deformation, also known as a wire deformer, is probably the easiest way to create such a setup. In this method, an object's deformation is controlled by a separate spline. A very similar method is to build the snake using a tool such as a loft, using a series of circular outlines to define the snake's diameter, and a spline path to define the length. Most packages will allow you to use this path as a control object as well, so again - animating this spline deforms the body.


Both of these methods have one problem in that they don't preserve the volume of the snake's body. If you accidentally move two control points too far apart, the snake will appear to stretch unnaturally.

A spline manipulates a snake very efficiently, but it is very easy to stretch the snake's body unnaturally

Many software packages now support a tool that is generically dubbed spline IK, which uses a spline to control a chain of bones. The spline manipulates a chain of bones, which, in turn, deform the model. This is by far the best solution is to animate an animal such as a snake. The spline allows for easy manipulation, while the bones keep the creature's body from gaining or losing volume.

Spline IK is perfect for snakes. The spline controls the shape of the IK chain, the bones of which deform the snake while keeping it's volume constant.

The head of the snake definitely moves differently from the rest of the body. You'll need to set up the snake with a short "neck" area to allow the head to move independently. This will allow the snake to lift it's head and look around, for example. This can be a separatge chain of bones, or you can simply manipulate the controlling spline as well.