WAM — WoW-ish Art Model language
A text language + compiler for LLM-authored low-poly characters: mesh,
skeleton, and animations from many lines of readable source, compiled to
glTF 2.0 with software-rendered turntables for visual iteration.
Try it
Paste this into your favorite LLM:
Clone https://github.com/elliottdehn/wam and make me [what you want to model] that I can see
It will read the spec, author the model, compile it, look at the renders it
produced, and iterate until the thing holds together — then hand you a glTF
and a turntable sheet. "that I can see" is the part that matters: it puts the
model in the loop of looking at its own output.
The founding rule: the author only makes discrete, named, relative,
symmetric decisions — bone angles as words+degrees, body masses as
cross-section rings, membranes as fans of ribs, symmetry via mirror
blocks, props in local-frame groups. The compiler generates every vertex,
skin weight, normal, and winding, and a semantic linter rejects the classes
of silent geometry bugs that renders hide (folds, wrong-bone bindings,
floating feet, inside-out faces, parts buried inside other parts) — plus
whatever proportions you write down yourself in a checks section.
Models aren't limited to characters: scripts/compose_town.py composes a set
of prop models into a single scene with a packed mega-atlas, and wam.zone
compiles whole environments from landforms and placement rules.
A textures section gives materials a hand-painted look from named
procedural operators (gradients, noise, grain, bricks, planks, AO...),
baked into an auto-unwrapped texel atlas that ships inside the glTF.
Quick start
Create the local environment once.
powershell -ExecutionPolicy Bypass -File .\Setup-WAM.ps1 # Windows
./setup-wam.sh # macOS / Linux
Both build a .venv beside this checkout and install WAM into it as an
editable package, and put wam, wam-codex and wam-references on that
environment's path.
Commands below use python3, which exists both system-wide and inside the
.venv on macOS and Linux. On Windows there is no python3 — use
.\.venv\Scripts\python.exe (or py -3) wherever these say python3. To
guarantee the environment WAM was installed into rather than whichever
interpreter is first on PATH, spell it out: ./.venv/bin/python3.
python3 -m wam.cli mymodel.wam # compile + render 5 views
python3 -m wam.cli mymodel.wam --anim walk --frames 6
python3 -m wam.cli mymodel.wam --bones
python3 -m wam.cli mymodel.wam --width 760 --height 560
Outputs land in out/: a skinned, animated .gltf (drops into
Blender/three.js/engines), one PNG per view, a contact sheet, a deterministic
*_views.json manifest, the texture atlas, and a
*_viewer.json — open viewer/template.html in a browser and drop the
JSON onto it for an interactive orbit/animation view. Requires Python 3.9 or
newer and numpy; the multi-reference tools also need Pillow.
The repository ships no example models — SPEC.md is the reference,
and every construct in it has a worked snippet. A taste of the language:
skeleton
root pelvis at 0.52
bone spine1 parent=pelvis dir=up pitch=13 len=0.13
mirror
bone thigh parent=pelvis side=0.07 dir=down pitch=-8 len=0.22
end
parts
loft torso bones=pelvis..spine2 material=skin
ring 0.00 w=0.25 d=0.185 material=cloth
ring 0.80 w=0.315 d=0.225
cap start=dome end=dome
group axe bone=hand.r at=1.0 dir=up pitch=45 yaw=-15
loft haft at=(0,-0.03,0) dir=up len=0.47 material=leather
...
end
animations
anim walk loop dur=1.15
ch thigh.l pitch 0%=-22 50%=19 100%=-22
mirrorphase 50%
ChatGPT Codex
Open this checkout as a Codex project. AGENTS.md and
.agents/skills/wam/SKILL.md teach Codex the local commands and the visual
review loop automatically. The agent-friendly CLI keeps stdout as predictable
JSON:
python3 -m wam.codex_cli compile mymodel.wam
It rejects unknown or duplicate views, accepts custom
id:yaw[:pitch] views, and writes every panel separately so Codex does not
have to inspect a very wide low-resolution sheet.
For several source images, name each piece of evidence and optionally map it
to a camera view:
python3 -m wam.codex_cli references \
--reference front="refs/front.png" --view front=front \
--reference side="refs/side.png" --view side=side \
--reference badge="refs/badge detail.png" --kind badge=detail
This writes out/references/references.json, one crop grid per image, and a
navigation board. Each source remains separate and hash-addressed.
Manual, non-destructive corrections