
@patch_gg · dragon, giant spider, fire demon, wolf · about $3 for a usable move, all in.
anymove turns one AI video into an animation for any rigged creature, wings, tails and eight legs included. A video
model films the creature from two cameras in one frame, front on the left and side on the right. A joint reader
trained on that one creature finds every joint in both views. A joint sits at the same height in both, so the pair
pins it in 3D, and the rig is fitted to those joints frame by frame and exported as a GLB.
The method is @CanItCode's; the MiniMax H3 LoRA step is
@Graalitoo's idea. This repo is our working version of both, with
the agent skills to run it.
Want to see it first? Try anymove on Patch: scrub a real capture and turn the
finished animation in 3D.
Just want the creatures? Nine are ready in Patch's Assets,
with 4 to 7 moves each: T-rex, knight, horse, centaur, woman, ogre, ape, mech and scorpion.
Made a game with one? Publish it on Patch.
before you start.
- You need: an NVIDIA card (12 GB to train a reader, 24 GB is safer), Blender 5.x, Python 3.11 and a
fal key. Without the card it doesn't run, and there's no cloud version.
- It costs about $3 for a usable move, all in, and about $17 and a couple of hours for a new creature with about 5
moves. The numbers are below.
- Most clips don't make it. A move took about 7 clips on average, and 58% of captured clips passed the checks.
what it's good at, and what it isn't.
Good at: big single gestures on any body plan: roars, slams, rearing up, chest beats, stomps, taking off. Walks and
runs work on two and four legs. You get a real animation on a real skeleton, in a file any engine plays.
Not good at:
- Eight-legged walking. The two views disagree about which legs are up (0.36-0.49). Scorpions and spiders can rear,
bite and strike, but they don't walk.
- Lying down. The reader learns from random poses inside the joint limits, which don't include lying on a side.
- Bird wings. The eagle's wings don't fit (15-30 px off), and it was left out of the nine. Bat-like wings do fit, on
the dragon and the demon.
- Tail swipes. The two views disagree about where the tail tip is. The T-rex's was dropped after six tries.
- Fine foot contact. Feet slide 1 to 2 cm a step and nothing pins them yet. That's fine for most uses, and visible up
close.
- Fast runs. Runs look like fast walks in places: the video model doesn't lower the body on a run.
- Moving an animation to another creature. An animation only fits the creature it was made for, and a new model
needs a new reader.
- Light files. Generated creatures are 55,000 to 60,000 triangles with 4K textures, which is heavy for a browser
game, and there are no lighter versions yet.
how it works.
|
|
 |
1 · a 3d model. One picture becomes a textured mesh at real size.
flux 3 picture, tripo h3.1 mesh · $0.40 |
 |
2 · a skeleton. Bones placed on grid views, skinned in Blender. 42 bones: legs, wings, tail |
 |
3 · limb colours. Every limb its own colour, so left and right never swap. 6 limbs, 6 colours |
 |
4 · two cameras. One camera at the front, one at the side, both views in one frame; a video model animates both at once from a prompt.
minimax h3 max on fal · 5 s, $0.26 |
 |
5 · teach a reader. A vision model learns this one dragon from random poses whose joints are known; its average miss falls from 40 px to 6 px.
dinov2 · 2,200 poses · 20 min on one gpu |
 |
6 · read every joint. The reader finds every joint in both views, in every frame. 50 joints · 10 s a clip |
 |
7 · two views, 3d. Stand the two views up as walls at a right angle: each joint is where its two lines meet. The front gives side to side, the side gives nose to tail. x from the front, y from the side, z from both |
 |
8 · the rig follows. The rig bends its bones onto the points, ignores the strays, and exports for any engine. glb, 24 fps, no hand edits · under a minute a clip |
Then the best takes become one file, with seamless loops and root motion (docs/PACKS.md).
docs/PIPELINE.md has the file-by-file version.
quick start.
You need an NVIDIA GPU with CUDA (12 GB to train a reader, 24 GB is safer; reading and fitting need much less), Python
3.11, Blender 5.x on your PATH (or BLENDER=/path/to/blender), and a
fal key to make new clips.
git clone https://github.com/Patch-gg/anymove && cd anymove
python3.11 -m venv .venv
.venv/bin/pip install torch==2.11.0 --index-url https://download.pytorch.org/whl/cu128
.venv/bin/pip install -r requirements.txt
cp .env.example .env # then add your FAL_KEY; git ignores .env
On Windows, use Git Bash, and the same commands with the venv's other folder.
Every tools/*.sh finds the venv and handles Blender's paths and Python's line endings. Blender usually isn't on your
PATH, so point at it:
git clone https://github.com/Patch-gg/anymove && cd anymove
py -3.11 -m venv .venv
.venv/Scripts/pip install torch==2.11.0 --index-url https://download.pytorch.org/whl/cu128
.venv/Scripts/pip install -r requirements.txt
cp .env.example .env
export BLENDER="/c/Program Files/Blender Foundation/Blender 5.2/blender.exe"
Where a command below says .venv/bin/python, use .venv/Scripts/python.exe.
Fit the dragon's roar on the CPU, no Blender or downloads needed. The repo carries the joints its reader found in the
clip; this fits the rig to them (about a minute and a half) and prints how well the two views agree:
mkdir -p runs/dragon/clips/roar
MOCAP_CREATURE=assets/dragon .venv/bin/python -m mocap.solve examples/dragon_roar/det.npz \
assets/dragon/rigged/rig_info.json runs/dragon/clips/roar/motion.json
The whole capture, from the AI clip to a GLB, with an example creature's mesh, trained reader and clip from the
release (13 MB mesh, 355 MB reader, 4 MB clip):
tools/fetch_examples.sh dragon --readers --clips
tools/prep.sh dragon && tools/rig.sh dragon # real size, skeleton, skin, limb paint, reference frame
tools/capture.sh dragon runs/dragon/videos/roar/s1/h3max.mp4 roar
# runs/dragon/clips/roar/render/animation.glb, and showcase.mp4 to compare it with the clip
A new move for the same dragon (two clips, about $0.52 on fal; expect to need more, since a usable move took about 7
clips on average):
.venv/bin/python tools/make_prompt.py assets/dragon "the dragon whips its tail from side to side, then stands still." prompts/dragon/tailwhip.txt
tools/film.sh dragon tailwhip h3max 1,2
tools/capture.sh dragon runs/dragon/videos/tailwhip/s1/h3max.mp4 tailwhip
your own creature.
Copy the closest example in assets/ (wolf: four legs; dragon: four legs and wings; spider: eight legs; demon: two
legs, two arms, wings and a tail), put your mesh at assets/<name>/model.glb, and work through: