afk.ai/Auto-rig/Snakes

Auto-rig a snake with AI

A snake is all spine, and placing twenty bones evenly down a curvy body is tedious by hand. afk.ai fits a 28-joint snake skeleton with a 20-segment body and an opening jaw, then plays side-winding, coiling and striking straight away.

Rig your snakeTry it on our snakeFree · In your browser · Exports GLB

Before is the sample model as it's uploaded: a mesh with no bones. After is the same snake on afk.ai's skeleton, playing its animations.

How it works

  1. 1

    Upload

    Drop in your snake as a GLB, a self-contained glTF or an FBX. Sign in with Google; it's free.

  2. 2

    The AI finds its body

    An AI reads the mesh and works out where everything is. On a good graphics card it runs right in your browser; otherwise the cloud rigger does it.

  3. 3

    Skeleton and skin

    afk.ai fits its snake skeleton to what the AI found and weights the skin, so the mesh bends at the joints.

  4. 4

    Animate and export

    Preview every animation on your model, then download one GLB with the skeleton, skin weights and all of the animations.

What the snake rig includes

Snakes, worms and serpents: one long body, a head and a jaw.

Skeleton: 28 joints

  • Head, neck and an opening jaw
  • A 20-segment body down to the tail tip

7 animations

Bite, Coiled, Dance, Death, Hit, Idle, Side winding.

Download the rigged snake (.glb, 0.4 MB)

The sample above with its skeleton and all 7 animations. CC0: use it for anything.

Models that rig best

  • A snake lying stretched out or in a gentle curve fits best.
  • A tightly coiled model is harder: the AI has to follow the body around each loop.
  • One snake per file.

Use your rigged snake in Unity, Unreal, Godot or Blender

Unity 6

  1. Open Window > Package Manager, click +, choose Add package by name and enter com.unity.cloud.gltfast (glTFast).
  2. Drag the .glb into Assets. It becomes a prefab with the mesh, skeleton and one Animation Clip per animation.
  3. Create an Animator Controller, drag the clips into it and assign it to the Animator on the prefab.
  4. Prefer FBX? Export one from Blender, then in Unity set Rig > Animation Type to Generic (creatures aren't Humanoid avatars) and click Apply.

Unreal Engine 5

  1. Drag the .glb into the Content Browser (or +Add > Import). Unreal 5.1 and later import glTF natively.
  2. Click Import in the options dialog. You get a Skeletal Mesh, its Skeleton, a Physics Asset and one Animation Sequence per animation.
  3. Creatures keep their own skeleton, so there's nothing to retarget to the mannequin.

Godot 4

  1. Copy the .glb into your project folder. Godot imports it as a scene with a Skeleton3D and an AnimationPlayer holding every animation.
  2. For cycles like walks and idles, double-click the .glb, select the animation, set Loop Mode to Linear and click Reimport.
  3. Instance the scene and play one: $AnimationPlayer.play("Bite").

Blender

  1. File > Import > glTF 2.0 (.glb/.gltf), and pick the file.
  2. The mesh comes in on its armature, with the first animation active: scrub the timeline to play it.
  3. The other animations are on NLA tracks named after them. Click a track's star (Solo) to play it.

Questions

›Can I use it for worms or eels?

afk.ai uses the snake skeleton for snakes, worms and other long, legless bodies. For fish with fins, use the fish skeleton instead.

›Which animations are included?

Side winding, Coiled, Bite, Idle, Hit, Death and Dance. All of them are in the download.

›Is it free for commercial use?

Yes. Your model stays yours and the animations are CC0.

›Is afk.ai free?

Yes. Rigging, the animations and the GLB export are free. You sign in with Google, and the site is supported by ads.

›What do I need to run it?

A computer with Chrome or Edge. With a decent graphics card the AI runs in your browser (the first rig downloads the 1.1 GB AI model once). On phones and weaker computers, afk.ai offers its cloud rigger instead.

Rig something else