Every model here is computed, not loaded. Signed distance fields are sculpted,
an isosurface is extracted with Surface Nets, a shared 27-bone skeleton drives it,
and 60–160k GPU-instanced strands grow out of the result — all in the browser,
with zero .glb files, zero textures and zero hand-authored rigs.
Change one number and the animal is different.
.glb is a photograph.A conventional 3D asset is a frozen artefact: vertices, UVs, texture atlases, a hand-painted rig, a baked LOD chain. Making a second one means starting over. Here the artefact is ~14 KB of numbers — proportions, a head sculpt, groom zones, a coat function — and the geometry, rig, skin weights, fur and animation are re-derived from it every time the page loads.
One parameter takes the same animal from a 48³ preview to a 128³ hero mesh. There is no LOD chain to author, export and keep in sync — the isosurface is simply resampled.
Markings are evaluated per fragment from world- and head-space masks inside the coat shader. Nothing to unwrap, nothing to pack into a texture, nothing to lightmap.
Skin weights come from which sculpted primitive a vertex belongs to. Stretch the legs and the weights stay correct — no re-binding, and a leg bone can never capture the belly.
One module per animal: a proportion table, a head-sculpt recipe, groom zones, a coat shader, organ placements. The engine, rig, IK and fur are untouched.
Three or four coats per species are branches in a single GLSL function: ginger tabby, calico, tuxedo, black & tan, arctic — zero extra bytes, zero extra texture sets.
Analytic two-bone IK puts every paw on the ground at any speed, so feet cannot slide. No clips, no baking, no state machine — and it works on all ten body plans.
Everything species-agnostic lives in the engine: distance-field primitives, the swept torso, isosurface extraction, the bone template, IK, motion, coat shading. Each animal contributes only what makes it that animal.

The chain is strictly one-directional: numbers → distance field → mesh → skin → strands. No step depends on a hand-authored resource, which is why switching species rebuilds the entire animal in about a second.



A chain of spheres soft-blended along the spine inflates the surface by roughly k/4 at every seam — on a 0.19-radius torso that is a 16–18% bulge per joint, and it reads as a caterpillar. Sweeping one ellipse along the spine, with a quarter-ellipse cap at each end, makes the silhouette art-directable.
Bounding boxes cut at the nearest bone and tear when the body bends. Binding each vertex by the primitive it actually belongs to means a leg bone cannot capture belly or tail geometry — lifting a paw no longer rips the flank.
Stride length, cycle period, pelvic drop and ground clearance are derived from hip height. A hamster and a horse run the same code path, and neither one's feet slide.
The studio is not a screenshot gallery — it is a live inspector. Switch species, motion, coat or pipeline stage, overlay the skeleton, drag sliders. Changing species re-sculpts the whole animal in roughly one to two seconds.
160k instanced strands, real-time IK and a full sculpt per species. Launch it here, or open it in its own tab.
Ten species cards swap instantly. Three or four coats each, with the iris hue branching from the same choice.
Head, neck, spine arch, ear pin, paw lift, wrist flex, crouch, tail — any slider switches to manual pose and IK re-grounds every paw.
Clay, clay + organs and full coat are one click apart, and the 27-joint skeleton overlays on the same camera.
The trunk is driven by FK curves; all four legs are placed by analytic IK onto an explicit foot trajectory. During stance a paw is pinned to the ground and slides backwards at belt speed — an in-place treadmill cycle — while the swing phase lifts and curls the wrist. The acceptance test is blunt: no species, no motion and no time sample may put a vertex below the floor.
LH → LF → RH → RF at 0.62 duty. Short-legged species add explicit ground clearance.
The same gait parameters are converted through hip height, so slender legs never punch through the floor.
Respiratory chest swell, rotary gallop with spine flexion and a flight phase, and tongue-out grooming — all in one motion module.
| Gait | Driven by | Feet | Coverage |
|---|---|---|---|
| Idle idle | FK chest swell + tail travelling wave | All four IK-locked | 10 / 10 |
| Walk walk | FK trunk + IK foot trajectory | Stance pinned, belt-speed slide | 10 / 10 |
| Gallop run | Rotary gallop · spine flex · flight phase | 0.34 duty, ground-clearance term | 10 / 10 |
| Groom groom | Neck and head reach + one foreleg IK to the mouth | Other three locked | 10 / 10 |
No species ships without clearing three gates: a numeric distance-field probe in plain Node, a headless-Chrome six-view render, and a species × motion × time sweep that flags NaN, skin-weight error and floor penetration.
| Species | Triangles | Vertices | Coats | SDF NaN | Skin error | Lowest foot | Motion QC |
|---|
No build step, no bundler, no dependencies to install before the demo works. The repository is ES modules plus a CDN reference to three.js, so any static server will do.
# 1 — clone git clone https://github.com/code2ThreeD/Procedural-Animal-Studio.git cd Procedural-Animal-Studio # 2 — any static server (ES modules will not load over file://) python -m http.server 8099 # 3 — open http://127.0.0.1:8099/ # this page http://127.0.0.1:8099/demo/ # interactive studio http://127.0.0.1:8099/demo/gallery.html # ten-species wall
The QC tooling ships too. The numeric probe needs only Node; the screenshot tools need a local Chrome.
# distance-field probe (Node, no browser): NaN, negative samples, head-centre distance node demo/tools/sdf-probe.mjs horse # six-view sheet for one species (headless Chrome) node demo/tools/shot.mjs horse-full "s=horse&stage=full&fur=90000&res=84" node demo/tools/shot.mjs sheep-clay "s=sheep&stage=clay&res=84" # species × motion × time: NaN, weight error, floor penetration node demo/tools/batch-qc.mjs # ten-species overview wall node demo/tools/gallery-shot.mjs gallery
If the pipeline or one of the species modules is useful to your work, cite the repository. The species contract documents exactly what a new animal has to implement.
@misc{code2threed_animals_2026,
title = {Procedural Animal Studio: Ten Animals Sculpted
by Signed Distance Fields, Rigged and Fured in the Browser},
author = {yinboliu-git},
organization = {code2ThreeD},
year = {2026},
howpublished = {\url{https://code2ThreeD.github.io/Procedural-Animal-Studio/}}
}