Project page 2026 WebGL · no build step Zero external assets

Ten animals, sculpted by nothing but math.

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.

0
Species · one engine
0KB
Code that makes all ten
0MB
Model & texture payload
0/40
Species × motion checks passing
Contact sheet of ten procedurally generated 3D animals: cat, shiba inu, red fox, rabbit, giant panda, pig, sheep, horse, sika deer and hamster.
Fig. 1 — Ten specimens. Same engine, ten anatomy recipes. Nothing on this page was modelled in a DCC tool, exported, or textured.
01Why this exists

A .glb is a photograph.
This is a formula.

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.

Typical asset pipeline
0
Ten rigged, textured quadrupeds with fur cards. Sculpted in ZBrush, retopologised, UV-unwrapped, baked, rigged, weighted, LOD'd and exported — then shipped as binary.
Download 60–150 MB
11th animal ≈ 10 MB
This project
0
Engine 130 KB + all ten species 144 KB. Geometry, skin weights, fur and motion are computed from that source at runtime.
Download 273 KB
11th animal ≈ 14 KB
≈ 340× less data. Sizes are what the browser actually transfers for the models themselves (uncompressed source). three.js r128 adds 589 KB from a CDN — a one-time, shared, cached cost that every page on the web using it already pays. The honest framing: this replaces the asset, not the engine.

Resolution is a slider, not a pipeline

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.

No UVs, no atlases, no bakes

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.

Weights are derived, so the rig survives edits

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.

A new species is a recipe

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.

Variants are free

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.

Motion is solved, not keyframed

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.

Where it does not win

  • Stylised, not scan-grade. A distance field is excellent at silhouette and volume control, and poor at pore-level surface detail.
  • The coat is cards, not strands. 60–160k instanced lattices, not a groom with per-strand simulation.
  • One skeleton for all ten. Extreme body plans lean on gait scaling rather than bespoke rigs per species.
  • Some parts are layered. Hooves, antlers and the horse's mane are separate meshes or long-fur regions, not carved into the field.
  • No cloth, collision or physics. Motion is procedural and analytic by design.
  • Not a hero-asset replacement. It is for control, instant variants and a footprint of zero.
02Specimens

Ten body plans, one engine.

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.

Domestic Cat Felis catus Segmented S-tail · Pointed ears · Slit pupils
Six-view render sheet of a procedurally generated domestic cat.
Fig. 2 — Six views. Front · three-quarter · orthographic profile · head · rear three-quarter · top. Every iteration is re-rendered through this identical rig, so changes are directly comparable.
37,292 triangles 4 coats 27 bones 4 motions 6-view QC sheet
03Pipeline

From a proportion table to a hundred thousand hairs.

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.

Clay render of the sculpted distance field, six views.
Stage 1 — Clay. Field and mesh only: no fur, no eyes. If the silhouette does not read here, nothing downstream can save it.
Clay render with eyes, nose and whiskers added.
Stage 2 — Organs. Iris canvas texture with clearcoat cornea, a wet nose whose nostrils are carved by vertex displacement, whiskers and tongue. This is where floating eyes get caught.
Final render with GPU-instanced fur.
Stage 3 — Full coat. Instanced strands combed by zone; skinning, joint-pressure swell and Kajiya-Kay dual-lobe shading all run on the GPU.
Spec Proportion tablehead · spine stations · limbs · tail · bounds → body-kitswept torso + neck, chest, haunch, limbs, tail → head-kitcranium · cheek · brow · muzzle · orbits · ears
Sculpt SDF assemblysmooth union / subtraction, ground cut → Surface Netsaxis warp · Taubin volume-preserving smoothing · reprojection
Rig 27-bone templatespine 4 · neck 2 · head 1 · ears 2 · tail 4 · legs 3×2 + 4×2 → Primitive-gated weightseach vertex bound by the sculpt volume it sits in → Analytic IK2-bone hinge · reciprocal hind coupling · foot locking
Shade Organsiris · cornea · nose · whiskers · tongue → GPU strands60–160k instances · zone combing · coat GLSL → Window-light studioprocedural HDRI + three-point rig

The torso is a sweep, not a sphere chain

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.

Weights are gated by the sculpt itself

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.

One motion engine, ten body plans

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.

04Interactive studio

It turns, it moves, it comes apart.

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.

code2ThreeD.github.io/Procedural-Animal-Studio/demo/

WebGL studio · generated live

160k instanced strands, real-time IK and a full sculpt per species. Launch it here, or open it in its own tab.

Runs entirely on your GPU · ~1–2 s per species
Studio interface showing a ginger tabby cat with species cards and coat controls.

Species & coats

Ten species cards swap instantly. Three or four coats each, with the iris hue branching from the same choice.

Studio interface showing a chestnut horse with manual pose sliders.

Manual posing

Head, neck, spine arch, ear pin, paw lift, wrist flex, crouch, tail — any slider switches to manual pose and IK re-grounds every paw.

Studio interface showing a sika deer with antlers and a coat hierarchy panel.

Stages & skeleton

Clay, clay + organs and full coat are one click apart, and the 27-joint skeleton overlays on the same camera.

05Motion

Four gaits, and the feet never sink.

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.

Six-view walk-cycle sheet of the rabbit.

Walk · four-beat lateral sequence

LH → LF → RH → RF at 0.62 duty. Short-legged species add explicit ground clearance.

Six-view walk-cycle sheet of the sika deer.

Scaling to leg length

The same gait parameters are converted through hip height, so slender legs never punch through the floor.

Studio interface showing a sheep with motion controls.

Breathing · gallop · grooming

Respiratory chest swell, rotary gallop with spine flexion and a flight phase, and tongue-out grooming — all in one motion module.

GaitDriven byFeetCoverage
Idle idleFK chest swell + tail travelling waveAll four IK-locked10 / 10
Walk walkFK trunk + IK foot trajectoryStance pinned, belt-speed slide10 / 10
Gallop runRotary gallop · spine flex · flight phase0.34 duty, ground-clearance term10 / 10
Groom groomNeck and head reach + one foreleg IK to the mouthOther three locked10 / 10
06Verification

Every number was measured.

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.

SpeciesTrianglesVerticesCoats SDF NaNSkin errorLowest footMotion QC
0/40
Species × motion all clean
0/10
Studio loads without errors
0
NaN field samples
0
Skin-weight error
07Reproduce

Run it locally.

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
08Citation

Take it apart.

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/}}
}