Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.
Python agent-orchestrationai-agentai-coding-assistantclaude-codecoding-agentcomputer-usedesktop-applocal-firstmcppersonal-jarvisvoice-assistantvoice-coding
feat(society): a wardrobe, not a sample — 26 bodies, 50 parts, and clips that ship once
rubenluetke10-beepc2069d0e72a0
diff --git a/docs/agent-society/character-pipeline.md b/docs/agent-society/character-pipeline.mdindex d8def79669..ba53d02877 100644--- a/docs/agent-society/character-pipeline.md+++ b/docs/agent-society/character-pipeline.md@@ -574,6 +574,22 @@ never reaches the island. No production code path imports it.---+### 5.1 The third kind of file: a clip library++`asset.extras.jarvis_clips` marks a file that is a skeleton and its clips and nothing else — no+mesh, no sheet, no `FWD`. A figure that borrows from one carries `extras.clips_from` with the+library's filename and the clip FACTS it needs (duration, loop, stride) copied in, so the runtime+reads nothing new. The gate checks the clips on whichever file actually holds them and refuses a+body whose library is missing or belongs to another archetype.++Why: nine clips of a 23-bone rig are ~200 KB, five times a procedural body's geometry. Shipping a+copy inside every look made a new look cost 240 KB and rewrote all of them on every rebuild; one+shared copy makes it 45 KB. Three.js binds a track by node name, so a borrowed clip drives any body+of that rig unchanged. Only the four CC0 adventurer bodies keep their own clips — they were built+before the split and nothing is gained by moving them.++---+## 11. Sources, licenses, people- **Provenance ledger:** `src/assets/society/figures/SOURCES.md`, one row per shipped file:@@ -643,6 +659,7 @@ steps or plain Lambert; whether `run` exists in V1 or every purposeful move walk| F3 ✅ 2026-09-02 (partly) | `figureRecipe`, `figureRegistry`, `assembleFigure`, `AgentFigureViewer` (pixel pass, orbit from above and below, wave on open), the creator's live look editor; the walker maths live in `world/walkerKinematics.ts` (world session). Open: unit tests for `assembleFigure`, the Figure Lab | card and creator render the real figure; palette from the recipe || F4 ✅ 2026-09-02 (parts; variants open) | Four bases (Ranger, Knight, Mage, Barbarian) and 15 parts (helmets, hats, capes, sword, shields, staff, spellbook, knife, axe, mug) built from the CC0 pack; `catalog.json` GENERATED by the build with style tags, palettes and credits; hair as its own primitive so headgear hides it; the creator picks style → base → parts per slot; the roster rail shows rendered headshots (`faceCrop.ts`); a person's own GLB imports through `POST /api/society/figures` behind the same gate. Open: `biped-small`/`-large` (`proportions.json`) | a knight in helmet, cape, sword and shield from a recipe alone; an imported figure refused with the gate's reasons || F4b ✅ 2026-09-02 | **Every style has a body.** `humanoid_builder.py` models Office and Casual (`modern`), Chibi (`cartoon`) and Android (`scifi`) as box bodies on the CC0 donor's rig and its nine clips — the donor is imported for the skeleton alone and every mesh it ships is deleted — plus four accessories (backpack, tablet, wrench, cap) hung on bones every biped shares, so one file fits every base of its style. The Ranger is `fantasy` only again. Parts are filtered BY STYLE, the base carries its archetype into the recipe, a switch drops what the new base cannot wear, and the height band follows the archetype | the creator opens on a modern person, and every style tab yields a figure |+| F4c ✅ 2026-09-02 | **A wardrobe, not a sample.** 26 bases and 50 parts: five modern bodies, three cartoon, four sci-fi, seven fantasy (four CC0 + Dwarf/Elf/Monk) and six animals; nine slots filled with hats, faces, coats, belts, packs and props. `Profile` and `Shape` grew the knobs that tell one look from the next, so a new body is an entry in a dict. **The clips ship once**: a rig's nine (or seven) clips are ~200 KB against a procedural body's 40 KB of geometry, so `biped-clips.glb` and `quadruped-clips.glb` carry them and a body names one in `extras.clips_from` — 240 KB a look became 45 KB. A part cut to a skull carries `fits_family`, so a cap for this module's crown is never offered on the wider KayKit head even though the two now share `fantasy`. `spirit` left the creator: there is one Gigi and he is Jarvis on the map | every style opens on several builds and fills at least three slots; the gate reads 78 files || F5 ✅ 2026-09-02 | `spirit-gigi.glb`: Gigi modelled and keyed BY SCRIPT in Blender (`scripts/figures/gigi_builder.py` — body extruded from the mascot's SVG outline, eyes/mouth/scanlines/glitch pixels/tube arms, rig `root → body → face`, clips idle/walk-glide/talk/sleep/celebrate-spin/wave, two primitives: lit body + unlit `-marks`), 282 KB. `quadruped-fox.glb`: `quadruped_builder.py` writes the 21-bone rig, the body AND all seven clips — there is no CC0 donor of this archetype — plus a collar. Jarvis' default recipe is Gigi; the roster seeds only Jarvis | Gigi floats on the market square; the fox walks, sits and sleeps on the treadmill || F6 ✅ 2026-09-02 (partly) | The island's walkers wear the real figure (`FigureRig` inside the world session's `WalkerFigure`), driven by the sim's mode and speed with the stride from the asset, at **hero scale 1.6×** — seen 50° from above at 64 m a true-scale person is a 20 px sliver, and every readable isometric game cheats the same way (the card keeps true scale). Open: mixer culling off-screen, the headless "not backwards" screenshot check | Jarvis walks the market square in his suit with his mug || F7 | Route D sheet generation + validate-and-repair; route C helper (`tripo_fetch.py`) + custom-model normalization; card "Change avatar" | a consented likeness walks to the desk |diff --git a/jarvis/ui/web/frontend/src/assets/society/figures/SOURCES.md b/jarvis/ui/web/frontend/src/assets/society/figures/SOURCES.mdindex d7ecfcbe2c..b16880d73a 100644--- a/jarvis/ui/web/frontend/src/assets/society/figures/SOURCES.md+++ b/jarvis/ui/web/frontend/src/assets/society/figures/SOURCES.md@@ -9,35 +9,83 @@ into `scripts/figures/cache/` and verified by sha256 before the build touches th| File | Source | License | What the build changed ||---|---|---|---|| `biped-android.glb` | Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / Android | first-party | body modelled by humanoid_builder.py (profile `android`); rig and clips from KayKit Character Pack: Adventurers 1.0 (CC0-1.0) / Rogue, every donor mesh deleted |+| `biped-athlete.glb` | Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / Athlete | first-party | body modelled by humanoid_builder.py (profile `athlete`); rig and clips from KayKit Character Pack: Adventurers 1.0 (CC0-1.0) / Rogue, every donor mesh deleted || `biped-barbarian.glb` | KayKit Character Pack: Adventurers 1.0 / Barbarian | CC0-1.0 | body meshes joined; IK/control bones dropped; 23 deform bones renamed; clips kept/renamed, root XZ zeroed, loops closed; faces re-UV'd onto the palette strip; hair as its own primitive; FWD marker; extras |+| `biped-blockhead.glb` | Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / Blockhead | first-party | body modelled by humanoid_builder.py (profile `blockhead`); rig and clips from KayKit Character Pack: Adventurers 1.0 (CC0-1.0) / Rogue, every donor mesh deleted || `biped-casual.glb` | Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / Casual | first-party | body modelled by humanoid_builder.py (profile `casual`); rig and clips from KayKit Character Pack: Adventurers 1.0 (CC0-1.0) / Rogue, every donor mesh deleted || `biped-chibi.glb` | Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / Chibi | first-party | body modelled by humanoid_builder.py (profile `chibi`); rig and clips from KayKit Character Pack: Adventurers 1.0 (CC0-1.0) / Rogue, every donor mesh deleted |+| `biped-dwarf.glb` | Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / Dwarf | first-party | body modelled by humanoid_builder.py (profile `dwarf`); rig and clips from KayKit Character Pack: Adventurers 1.0 (CC0-1.0) / Rogue, every donor mesh deleted |+| `biped-elf.glb` | Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / Elf | first-party | body modelled by humanoid_builder.py (profile `elf`); rig and clips from KayKit Character Pack: Adventurers 1.0 (CC0-1.0) / Rogue, every donor mesh deleted || `biped-knight.glb` | KayKit Character Pack: Adventurers 1.0 / Knight | CC0-1.0 | body meshes joined; IK/control bones dropped; 23 deform bones renamed; clips kept/renamed, root XZ zeroed, loops closed; faces re-UV'd onto the palette strip; hair as its own primitive; FWD marker; extras || `biped-mage.glb` | KayKit Character Pack: Adventurers 1.0 / Mage | CC0-1.0 | body meshes joined; IK/control bones dropped; 23 deform bones renamed; clips kept/renamed, root XZ zeroed, loops closed; faces re-UV'd onto the palette strip; hair as its own primitive; FWD marker; extras |+| `biped-medic.glb` | Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / Medic | first-party | body modelled by humanoid_builder.py (profile `medic`); rig and clips from KayKit Character Pack: Adventurers 1.0 (CC0-1.0) / Rogue, every donor mesh deleted |+| `biped-monk.glb` | Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / Monk | first-party | body modelled by humanoid_builder.py (profile `monk`); rig and clips from KayKit Character Pack: Adventurers 1.0 (CC0-1.0) / Rogue, every donor mesh deleted || `biped-office.glb` | Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / Office | first-party | body modelled by humanoid_builder.py (profile `office`); rig and clips from KayKit Character Pack: Adventurers 1.0 (CC0-1.0) / Rogue, every donor mesh deleted |+| `biped-pilot.glb` | Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / Pilot | first-party | body modelled by humanoid_builder.py (profile `pilot`); rig and clips from KayKit Character Pack: Adventurers 1.0 (CC0-1.0) / Rogue, every donor mesh deleted || `biped-rogue.glb` | KayKit Character Pack: Adventurers 1.0 / Rogue | CC0-1.0 | body meshes joined; IK/control bones dropped; 23 deform bones renamed; clips kept/renamed, root XZ zeroed, loops closed; faces re-UV'd onto the palette strip; hair as its own primitive; FWD marker; extras |+| `biped-scientist.glb` | Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / Scientist | first-party | body modelled by humanoid_builder.py (profile `scientist`); rig and clips from KayKit Character Pack: Adventurers 1.0 (CC0-1.0) / Rogue, every donor mesh deleted |+| `biped-toon.glb` | Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / Toon | first-party | body modelled by humanoid_builder.py (profile `toon`); rig and clips from KayKit Character Pack: Adventurers 1.0 (CC0-1.0) / Rogue, every donor mesh deleted |+| `biped-trooper.glb` | Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / Trooper | first-party | body modelled by humanoid_builder.py (profile `trooper`); rig and clips from KayKit Character Pack: Adventurers 1.0 (CC0-1.0) / Rogue, every donor mesh deleted |+| `biped-worker.glb` | Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / Worker | first-party | body modelled by humanoid_builder.py (profile `worker`); rig and clips from KayKit Character Pack: Adventurers 1.0 (CC0-1.0) / Rogue, every donor mesh deleted |+| `quadruped-bear.glb` | Personal Jarvis animals (first-party) / Bear | first-party | rig, body and clips written by quadruped_builder.py (shape `bear`); no external source |+| `quadruped-cat.glb` | Personal Jarvis animals (first-party) / Cat | first-party | rig, body and clips written by quadruped_builder.py (shape `cat`); no external source |+| `quadruped-dog.glb` | Personal Jarvis animals (first-party) / Dog | first-party | rig, body and clips written by quadruped_builder.py (shape `dog`); no external source || `quadruped-fox.glb` | Personal Jarvis animals (first-party) / Fox | first-party | rig, body and clips written by quadruped_builder.py (shape `fox`); no external source |+| `quadruped-rabbit.glb` | Personal Jarvis animals (first-party) / Rabbit | first-party | rig, body and clips written by quadruped_builder.py (shape `rabbit`); no external source |+| `quadruped-wolf.glb` | Personal Jarvis animals (first-party) / Wolf | first-party | rig, body and clips written by quadruped_builder.py (shape `wolf`); no external source || `spirit-gigi.glb` | Gigi mascot (first-party) / Gigi | first-party | body meshes joined; IK/control bones dropped; 23 deform bones renamed; clips kept/renamed, root XZ zeroed, loops closed; faces re-UV'd onto the palette strip; hair as its own primitive; FWD marker; extras |+| `biped-clips.glb` | KayKit Character Pack: Adventurers 1.0 (CC0-1.0) / Rogue — rig and clips only | CC0-1.0 | rig imported, IK/control bones dropped, 23 deform bones renamed; clips kept/renamed, root XZ zeroed, loops closed; every donor mesh deleted — clips only, borrowed by the bodies of this rig |+| `quadruped-clips.glb` | Personal Jarvis animals (first-party) (first-party) / written by script — rig and clips only | first-party | rig imported, IK/control bones dropped, 23 deform bones renamed; clips kept/renamed, root XZ zeroed, loops closed; every donor mesh deleted — clips only, borrowed by the bodies of this rig || `back-backpack.glb` | Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / back-backpack | first-party | unparented at rest, skinned to `chest` with weight 1; re-UV'd onto the palette strip; no clips; extras |+| `back-blanket.glb` | Personal Jarvis animals (first-party) / back-blanket | first-party | unparented at rest, skinned to `chest` with weight 1; re-UV'd onto the palette strip; no clips; extras |+| `back-cloak.glb` | Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / back-cloak | first-party | unparented at rest, skinned to `chest` with weight 1; re-UV'd onto the palette strip; no clips; extras || `back-fur-cape.glb` | KayKit Character Pack: Adventurers 1.0 / Barbarian_Cape | CC0-1.0 | unparented at rest, skinned to `chest` with weight 1; re-UV'd onto the palette strip; no clips; extras |+| `back-jetpack.glb` | Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / back-jetpack | first-party | unparented at rest, skinned to `chest` with weight 1; re-UV'd onto the palette strip; no clips; extras || `back-knight-cape.glb` | KayKit Character Pack: Adventurers 1.0 / Knight_Cape | CC0-1.0 | unparented at rest, skinned to `chest` with weight 1; re-UV'd onto the palette strip; no clips; extras || `back-mage-cape.glb` | KayKit Character Pack: Adventurers 1.0 / Mage_Cape | CC0-1.0 | unparented at rest, skinned to `chest` with weight 1; re-UV'd onto the palette strip; no clips; extras |+| `back-quiver.glb` | Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / back-quiver | first-party | unparented at rest, skinned to `chest` with weight 1; re-UV'd onto the palette strip; no clips; extras || `back-rogue-cape.glb` | KayKit Character Pack: Adventurers 1.0 / Rogue_Cape | CC0-1.0 | unparented at rest, skinned to `chest` with weight 1; re-UV'd onto the palette strip; no clips; extras |+| `back-saddlebag.glb` | Personal Jarvis animals (first-party) / back-saddlebag | first-party | unparented at rest, skinned to `chest` with weight 1; re-UV'd onto the palette strip; no clips; extras |+| `back-satchel.glb` | Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / back-satchel | first-party | unparented at rest, skinned to `chest` with weight 1; re-UV'd onto the palette strip; no clips; extras |+| `belt-sash.glb` | Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / belt-sash | first-party | unparented at rest, skinned to `hips` with weight 1; re-UV'd onto the palette strip; no clips; extras |+| `belt-toolbelt.glb` | Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / belt-toolbelt | first-party | unparented at rest, skinned to `hips` with weight 1; re-UV'd onto the palette strip; no clips; extras || `collar-band.glb` | Personal Jarvis animals (first-party) / collar-band | first-party | unparented at rest, skinned to `neck` with weight 1; re-UV'd onto the palette strip; no clips; extras |+| `collar-bandana.glb` | Personal Jarvis animals (first-party) / collar-bandana | first-party | unparented at rest, skinned to `neck` with weight 1; re-UV'd onto the palette strip; no clips; extras |+| `collar-scarf.glb` | Personal Jarvis animals (first-party) / collar-scarf | first-party | unparented at rest, skinned to `neck` with weight 1; re-UV'd onto the palette strip; no clips; extras |+| `face_extra-glasses.glb` | Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / face_extra-glasses | first-party | unparented at rest, skinned to `head` with weight 1; re-UV'd onto the palette strip; no clips; extras |+| `face_extra-respirator.glb` | Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / face_extra-respirator | first-party | unparented at rest, skinned to `head` with weight 1; re-UV'd onto the palette strip; no clips; extras |+| `face_extra-shades.glb` | Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / face_extra-shades | first-party | unparented at rest, skinned to `head` with weight 1; re-UV'd onto the palette strip; no clips; extras |+| `hand_l-clipboard.glb` | Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / hand_l-clipboard | first-party | unparented at rest, skinned to `handslot_l` with weight 1; re-UV'd onto the palette strip; no clips; extras |+| `hand_l-lantern.glb` | Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / hand_l-lantern | first-party | unparented at rest, skinned to `handslot_l` with weight 1; re-UV'd onto the palette strip; no clips; extras || `hand_l-round-shield.glb` | KayKit Character Pack: Adventurers 1.0 / Round_Shield | CC0-1.0 | unparented at rest, skinned to `handslot_l` with weight 1; re-UV'd onto the palette strip; no clips; extras || `hand_l-spellbook.glb` | KayKit Character Pack: Adventurers 1.0 / Spellbook | CC0-1.0 | unparented at rest, skinned to `handslot_l` with weight 1; re-UV'd onto the palette strip; no clips; extras || `hand_l-tablet.glb` | Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / hand_l-tablet | first-party | unparented at rest, skinned to `handslot_l` with weight 1; re-UV'd onto the palette strip; no clips; extras || `hand_l-wooden-shield.glb` | KayKit Character Pack: Adventurers 1.0 / Barbarian_Round_Shield | CC0-1.0 | unparented at rest, skinned to `handslot_l` with weight 1; re-UV'd onto the palette strip; no clips; extras || `hand_r-axe.glb` | KayKit Character Pack: Adventurers 1.0 / 1H_Axe | CC0-1.0 | unparented at rest, skinned to `handslot_r` with weight 1; re-UV'd onto the palette strip; no clips; extras |+| `hand_r-broom.glb` | Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / hand_r-broom | first-party | unparented at rest, skinned to `handslot_r` with weight 1; re-UV'd onto the palette strip; no clips; extras || `hand_r-knife.glb` | KayKit Character Pack: Adventurers 1.0 / Knife | CC0-1.0 | unparented at rest, skinned to `handslot_r` with weight 1; re-UV'd onto the palette strip; no clips; extras || `hand_r-mug.glb` | KayKit Character Pack: Adventurers 1.0 / Mug | CC0-1.0 | unparented at rest, skinned to `handslot_r` with weight 1; re-UV'd onto the palette strip; no clips; extras |+| `hand_r-scanner.glb` | Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / hand_r-scanner | first-party | unparented at rest, skinned to `handslot_r` with weight 1; re-UV'd onto the palette strip; no clips; extras || `hand_r-staff.glb` | KayKit Character Pack: Adventurers 1.0 / 2H_Staff | CC0-1.0 | unparented at rest, skinned to `handslot_r` with weight 1; re-UV'd onto the palette strip; no clips; extras || `hand_r-sword.glb` | KayKit Character Pack: Adventurers 1.0 / 1H_Sword | CC0-1.0 | unparented at rest, skinned to `handslot_r` with weight 1; re-UV'd onto the palette strip; no clips; extras |+| `hand_r-torch.glb` | Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / hand_r-torch | first-party | unparented at rest, skinned to `handslot_r` with weight 1; re-UV'd onto the palette strip; no clips; extras || `hand_r-wrench.glb` | Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / hand_r-wrench | first-party | unparented at rest, skinned to `handslot_r` with weight 1; re-UV'd onto the palette strip; no clips; extras |+| `headgear-antlers.glb` | Personal Jarvis animals (first-party) / headgear-antlers | first-party | unparented at rest, skinned to `head` with weight 1; re-UV'd onto the palette strip; no clips; extras |+| `headgear-beanie.glb` | Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / headgear-beanie | first-party | unparented at rest, skinned to `head` with weight 1; re-UV'd onto the palette strip; no clips; extras || `headgear-cap.glb` | Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / headgear-cap | first-party | unparented at rest, skinned to `head` with weight 1; re-UV'd onto the palette strip; no clips; extras |+| `headgear-crown.glb` | Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / headgear-crown | first-party | unparented at rest, skinned to `head` with weight 1; re-UV'd onto the palette strip; no clips; extras |+| `headgear-hardhat.glb` | Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / headgear-hardhat | first-party | unparented at rest, skinned to `head` with weight 1; re-UV'd onto the palette strip; no clips; extras |+| `headgear-headset.glb` | Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / headgear-headset | first-party | unparented at rest, skinned to `head` with weight 1; re-UV'd onto the palette strip; no clips; extras || `headgear-horned-hat.glb` | KayKit Character Pack: Adventurers 1.0 / Barbarian_Hat | CC0-1.0 | unparented at rest, skinned to `head` with weight 1; re-UV'd onto the palette strip; no clips; extras || `headgear-knight-helmet.glb` | KayKit Character Pack: Adventurers 1.0 / Knight_Helmet | CC0-1.0 | unparented at rest, skinned to `head` with weight 1; re-UV'd onto the palette strip; no clips; extras || `headgear-mage-hat.glb` | KayKit Character Pack: Adventurers 1.0 / Mage_Hat | CC0-1.0 | unparented at rest, skinned to `head` with weight 1; re-UV'd onto the palette strip; no clips; extras |+| `headgear-pet-cap.glb` | Personal Jarvis animals (first-party) / headgear-pet-cap | first-party | unparented at rest, skinned to `head` with weight 1; re-UV'd onto the palette strip; no clips; extras |+| `headgear-space-helmet.glb` | Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / headgear-space-helmet | first-party | unparented at rest, skinned to `head` with weight 1; re-UV'd onto the palette strip; no clips; extras |+| `headgear-top-hat.glb` | Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / headgear-top-hat | first-party | unparented at rest, skinned to `head` with weight 1; re-UV'd onto the palette strip; no clips; extras |+| `tail_extra-bow.glb` | Personal Jarvis animals (first-party) / tail_extra-bow | first-party | unparented at rest, skinned to `tail_2` with weight 1; re-UV'd onto the palette strip; no clips; extras |+| `torso_over-apron.glb` | Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / torso_over-apron | first-party | unparented at rest, skinned to `chest` with weight 1; re-UV'd onto the palette strip; no clips; extras |+| `torso_over-plate.glb` | Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / torso_over-plate | first-party | unparented at rest, skinned to `chest` with weight 1; re-UV'd onto the palette strip; no clips; extras |+| `torso_over-vest.glb` | Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / torso_over-vest | first-party | unparented at rest, skinned to `chest` with weight 1; re-UV'd onto the palette strip; no clips; extras |- **KayKit Character Pack: Adventurers 1.0** — Kay Lousberg (kaylousberg.com), CC0-1.0 (https://github.com/KayKit-Game-Assets/KayKit-Character-Pack-Adventures-1.0/blob/main/LICENSE.txt); files:- `Rogue.glb` sha256 `e825437cd4d2ee9c1960b517a74a69101e33eb409ae7fa8cedc7134a998fbb7d`diff --git a/jarvis/ui/web/frontend/src/assets/society/figures/biped-android.glb b/jarvis/ui/web/frontend/src/assets/society/figures/biped-android.glbindex 39e39d0cf3..cc90e9bdd9 100644Binary files a/jarvis/ui/web/frontend/src/assets/society/figures/biped-android.glb and b/jarvis/ui/web/frontend/src/assets/society/figures/biped-android.glb differdiff --git a/jarvis/ui/web/frontend/src/assets/society/figures/biped-athlete.glb b/jarvis/ui/web/frontend/src/assets/society/figures/biped-athlete.glbnew file mode 100644index 0000000000..0e10bac853Binary files /dev/null and b/jarvis/ui/web/frontend/src/assets/society/figures/biped-athlete.glb differdiff --git a/jarvis/ui/web/frontend/src/assets/society/figures/biped-blockhead.glb b/jarvis/ui/web/frontend/src/assets/society/figures/biped-blockhead.glbnew file mode 100644index 0000000000..0aa03ff5e4Binary files /dev/null and b/jarvis/ui/web/frontend/src/assets/society/figures/biped-blockhead.glb differdiff --git a/jarvis/ui/web/frontend/src/assets/society/figures/biped-casual.glb b/jarvis/ui/web/frontend/src/assets/society/figures/biped-casual.glbindex 8b734ec23b..a80c7cbfea 100644Binary files a/jarvis/ui/web/frontend/src/assets/society/figures/biped-casual.glb and b/jarvis/ui/web/frontend/src/assets/society/figures/biped-casual.glb differdiff --git a/jarvis/ui/web/frontend/src/assets/society/figures/biped-chibi.glb b/jarvis/ui/web/frontend/src/assets/society/figures/biped-chibi.glbindex 8921829aaa..22b6fcc90d 100644Binary files a/jarvis/ui/web/frontend/src/assets/society/figures/biped-chibi.glb and b/jarvis/ui/web/frontend/src/assets/society/figures/biped-chibi.glb differdiff --git a/jarvis/ui/web/frontend/src/assets/society/figures/biped-clips.glb b/jarvis/ui/web/frontend/src/assets/society/figures/biped-clips.glbnew file mode 100644index 0000000000..2b972b528eBinary files /dev/null and b/jarvis/ui/web/frontend/src/assets/society/figures/biped-clips.glb differdiff --git a/jarvis/ui/web/frontend/src/assets/society/figures/biped-dwarf.glb b/jarvis/ui/web/frontend/src/assets/society/figures/biped-dwarf.glbnew file mode 100644index 0000000000..b8621c746bBinary files /dev/null and b/jarvis/ui/web/frontend/src/assets/society/figures/biped-dwarf.glb differdiff --git a/jarvis/ui/web/frontend/src/assets/society/figures/biped-elf.glb b/jarvis/ui/web/frontend/src/assets/society/figures/biped-elf.glbnew file mode 100644index 0000000000..97d24b6284Binary files /dev/null and b/jarvis/ui/web/frontend/src/assets/society/figures/biped-elf.glb differdiff --git a/jarvis/ui/web/frontend/src/assets/society/figures/biped-medic.glb b/jarvis/ui/web/frontend/src/assets/society/figures/biped-medic.glbnew file mode 100644index 0000000000..76222b349aBinary files /dev/null and b/jarvis/ui/web/frontend/src/assets/society/figures/biped-medic.glb differdiff --git a/jarvis/ui/web/frontend/src/assets/society/figures/biped-monk.glb b/jarvis/ui/web/frontend/src/assets/society/figures/biped-monk.glbnew file mode 100644index 0000000000..970d56c236Binary files /dev/null and b/jarvis/ui/web/frontend/src/assets/society/figures/biped-monk.glb differdiff --git a/jarvis/ui/web/frontend/src/assets/society/figures/biped-office.glb b/jarvis/ui/web/frontend/src/assets/society/figures/biped-office.glbindex 1fc28203f0..8e59d0e52e 100644Binary files a/jarvis/ui/web/frontend/src/assets/society/figures/biped-office.glb and b/jarvis/ui/web/frontend/src/assets/society/figures/biped-office.glb differdiff --git a/jarvis/ui/web/frontend/src/assets/society/figures/biped-pilot.glb b/jarvis/ui/web/frontend/src/assets/society/figures/biped-pilot.glbnew file mode 100644index 0000000000..2d235a54eaBinary files /dev/null and b/jarvis/ui/web/frontend/src/assets/society/figures/biped-pilot.glb differdiff --git a/jarvis/ui/web/frontend/src/assets/society/figures/biped-scientist.glb b/jarvis/ui/web/frontend/src/assets/society/figures/biped-scientist.glbnew file mode 100644index 0000000000..61b367ff46Binary files /dev/null and b/jarvis/ui/web/frontend/src/assets/society/figures/biped-scientist.glb differdiff --git a/jarvis/ui/web/frontend/src/assets/society/figures/biped-toon.glb b/jarvis/ui/web/frontend/src/assets/society/figures/biped-toon.glbnew file mode 100644index 0000000000..6a7e507610Binary files /dev/null and b/jarvis/ui/web/frontend/src/assets/society/figures/biped-toon.glb differdiff --git a/jarvis/ui/web/frontend/src/assets/society/figures/biped-trooper.glb b/jarvis/ui/web/frontend/src/assets/society/figures/biped-trooper.glbnew file mode 100644index 0000000000..d934dd2a80Binary files /dev/null and b/jarvis/ui/web/frontend/src/assets/society/figures/biped-trooper.glb differdiff --git a/jarvis/ui/web/frontend/src/assets/society/figures/biped-worker.glb b/jarvis/ui/web/frontend/src/assets/society/figures/biped-worker.glbnew file mode 100644index 0000000000..35fdd977f7Binary files /dev/null and b/jarvis/ui/web/frontend/src/assets/society/figures/biped-worker.glb differdiff --git a/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/back-cloak.glb b/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/back-cloak.glbnew file mode 100644index 0000000000..2377245259Binary files /dev/null and b/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/back-cloak.glb differdiff --git a/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/back-jetpack.glb b/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/back-jetpack.glbnew file mode 100644index 0000000000..3ef004cc13Binary files /dev/null and b/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/back-jetpack.glb differdiff --git a/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/back-quiver.glb b/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/back-quiver.glbnew file mode 100644index 0000000000..0eb1d961c3Binary files /dev/null and b/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/back-quiver.glb differdiff --git a/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/back-satchel.glb b/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/back-satchel.glbnew file mode 100644index 0000000000..5ed9f72551Binary files /dev/null and b/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/back-satchel.glb differdiff --git a/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/belt-sash.glb b/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/belt-sash.glbnew file mode 100644index 0000000000..54c1e79996Binary files /dev/null and b/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/belt-sash.glb differdiff --git a/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/belt-toolbelt.glb b/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/belt-toolbelt.glbnew file mode 100644index 0000000000..e1d9e6eb8dBinary files /dev/null and b/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/belt-toolbelt.glb differdiff --git a/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/face_extra-glasses.glb b/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/face_extra-glasses.glbnew file mode 100644index 0000000000..639c67ac15Binary files /dev/null and b/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/face_extra-glasses.glb differdiff --git a/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/face_extra-respirator.glb b/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/face_extra-respirator.glbnew file mode 100644index 0000000000..5573083069Binary files /dev/null and b/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/face_extra-respirator.glb differdiff --git a/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/face_extra-shades.glb b/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/face_extra-shades.glbnew file mode 100644index 0000000000..6ecb8e3be2Binary files /dev/null and b/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/face_extra-shades.glb differdiff --git a/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/hand_l-clipboard.glb b/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/hand_l-clipboard.glbnew file mode 100644index 0000000000..c375f81da8Binary files /dev/null and b/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/hand_l-clipboard.glb differdiff --git a/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/hand_l-lantern.glb b/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/hand_l-lantern.glbnew file mode 100644index 0000000000..f572d91d18Binary files /dev/null and b/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/hand_l-lantern.glb differdiff --git a/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/hand_l-tablet.glb b/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/hand_l-tablet.glbindex ac6612e6f2..74e356fe64 100644Binary files a/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/hand_l-tablet.glb and b/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/hand_l-tablet.glb differdiff --git a/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/hand_r-broom.glb b/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/hand_r-broom.glbnew file mode 100644index 0000000000..69877096e6Binary files /dev/null and b/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/hand_r-broom.glb differdiff --git a/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/hand_r-scanner.glb b/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/hand_r-scanner.glbnew file mode 100644index 0000000000..2f4f8aa8dbBinary files /dev/null and b/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/hand_r-scanner.glb differdiff --git a/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/hand_r-torch.glb b/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/hand_r-torch.glbnew file mode 100644index 0000000000..604a7e56f5Binary files /dev/null and b/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/hand_r-torch.glb differdiff --git a/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/headgear-beanie.glb b/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/headgear-beanie.glbnew file mode 100644index 0000000000..7d4828233bBinary files /dev/null and b/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/headgear-beanie.glb differdiff --git a/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/headgear-crown.glb b/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/headgear-crown.glbnew file mode 100644index 0000000000..64576b1f6bBinary files /dev/null and b/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/headgear-crown.glb differdiff --git a/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/headgear-hardhat.glb b/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/headgear-hardhat.glbnew file mode 100644index 0000000000..46a899673cBinary files /dev/null and b/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/headgear-hardhat.glb differdiff --git a/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/headgear-headset.glb b/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/headgear-headset.glbnew file mode 100644index 0000000000..949b5391a4Binary files /dev/null and b/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/headgear-headset.glb differdiff --git a/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/headgear-space-helmet.glb b/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/headgear-space-helmet.glbnew file mode 100644index 0000000000..8417edba20Binary files /dev/null and b/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/headgear-space-helmet.glb differdiff --git a/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/headgear-top-hat.glb b/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/headgear-top-hat.glbnew file mode 100644index 0000000000..bb719a6148Binary files /dev/null and b/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/headgear-top-hat.glb differdiff --git a/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/torso_over-apron.glb b/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/torso_over-apron.glbnew file mode 100644index 0000000000..4c6464e86fBinary files /dev/null and b/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/torso_over-apron.glb differdiff --git a/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/torso_over-plate.glb b/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/torso_over-plate.glbnew file mode 100644index 0000000000..c94f6ba9cfBinary files /dev/null and b/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/torso_over-plate.glb differdiff --git a/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/torso_over-vest.glb b/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/torso_over-vest.glbnew file mode 100644index 0000000000..369d39a152Binary files /dev/null and b/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/torso_over-vest.glb differdiff --git a/jarvis/ui/web/frontend/src/assets/society/figures/parts/quadruped/back-blanket.glb b/jarvis/ui/web/frontend/src/assets/society/figures/parts/quadruped/back-blanket.glbnew file mode 100644index 0000000000..945b3d571fBinary files /dev/null and b/jarvis/ui/web/frontend/src/assets/society/figures/parts/quadruped/back-blanket.glb differdiff --git a/jarvis/ui/web/frontend/src/assets/society/figures/parts/quadruped/back-saddlebag.glb b/jarvis/ui/web/frontend/src/assets/society/figures/parts/quadruped/back-saddlebag.glbnew file mode 100644index 0000000000..1ccd28f34eBinary files /dev/null and b/jarvis/ui/web/frontend/src/assets/society/figures/parts/quadruped/back-saddlebag.glb differdiff --git a/jarvis/ui/web/frontend/src/assets/society/figures/parts/quadruped/collar-bandana.glb b/jarvis/ui/web/frontend/src/assets/society/figures/parts/quadruped/collar-bandana.glbnew file mode 100644index 0000000000..5cc3cb984bBinary files /dev/null and b/jarvis/ui/web/frontend/src/assets/society/figures/parts/quadruped/collar-bandana.glb differdiff --git a/jarvis/ui/web/frontend/src/assets/society/figures/parts/quadruped/collar-scarf.glb b/jarvis/ui/web/frontend/src/assets/society/figures/parts/quadruped/collar-scarf.glbnew file mode 100644index 0000000000..b98123e52cBinary files /dev/null and b/jarvis/ui/web/frontend/src/assets/society/figures/parts/quadruped/collar-scarf.glb differdiff --git a/jarvis/ui/web/frontend/src/assets/society/figures/parts/quadruped/headgear-antlers.glb b/jarvis/ui/web/frontend/src/assets/society/figures/parts/quadruped/headgear-antlers.glbnew file mode 100644index 0000000000..21ce443c9cBinary files /dev/null and b/jarvis/ui/web/frontend/src/assets/society/figures/parts/quadruped/headgear-antlers.glb differdiff --git a/jarvis/ui/web/frontend/src/assets/society/figures/parts/quadruped/headgear-pet-cap.glb b/jarvis/ui/web/frontend/src/assets/society/figures/parts/quadruped/headgear-pet-cap.glbnew file mode 100644index 0000000000..ce0acf0e54Binary files /dev/null and b/jarvis/ui/web/frontend/src/assets/society/figures/parts/quadruped/headgear-pet-cap.glb differdiff --git a/jarvis/ui/web/frontend/src/assets/society/figures/parts/quadruped/tail_extra-bow.glb b/jarvis/ui/web/frontend/src/assets/society/figures/parts/quadruped/tail_extra-bow.glbnew file mode 100644index 0000000000..e90568f974Binary files /dev/null and b/jarvis/ui/web/frontend/src/assets/society/figures/parts/quadruped/tail_extra-bow.glb differdiff --git a/jarvis/ui/web/frontend/src/assets/society/figures/quadruped-bear.glb b/jarvis/ui/web/frontend/src/assets/society/figures/quadruped-bear.glbnew file mode 100644index 0000000000..546c803a3aBinary files /dev/null and b/jarvis/ui/web/frontend/src/assets/society/figures/quadruped-bear.glb differdiff --git a/jarvis/ui/web/frontend/src/assets/society/figures/quadruped-cat.glb b/jarvis/ui/web/frontend/src/assets/society/figures/quadruped-cat.glbnew file mode 100644index 0000000000..dd6907fafaBinary files /dev/null and b/jarvis/ui/web/frontend/src/assets/society/figures/quadruped-cat.glb differdiff --git a/jarvis/ui/web/frontend/src/assets/society/figures/quadruped-clips.glb b/jarvis/ui/web/frontend/src/assets/society/figures/quadruped-clips.glbnew file mode 100644index 0000000000..d262e7db33Binary files /dev/null and b/jarvis/ui/web/frontend/src/assets/society/figures/quadruped-clips.glb differdiff --git a/jarvis/ui/web/frontend/src/assets/society/figures/quadruped-dog.glb b/jarvis/ui/web/frontend/src/assets/society/figures/quadruped-dog.glbnew file mode 100644index 0000000000..261fe992f6Binary files /dev/null and b/jarvis/ui/web/frontend/src/assets/society/figures/quadruped-dog.glb differdiff --git a/jarvis/ui/web/frontend/src/assets/society/figures/quadruped-fox.glb b/jarvis/ui/web/frontend/src/assets/society/figures/quadruped-fox.glbindex 83818f9694..51d298b729 100644Binary files a/jarvis/ui/web/frontend/src/assets/society/figures/quadruped-fox.glb and b/jarvis/ui/web/frontend/src/assets/society/figures/quadruped-fox.glb differdiff --git a/jarvis/ui/web/frontend/src/assets/society/figures/quadruped-rabbit.glb b/jarvis/ui/web/frontend/src/assets/society/figures/quadruped-rabbit.glbnew file mode 100644index 0000000000..06fa278696Binary files /dev/null and b/jarvis/ui/web/frontend/src/assets/society/figures/quadruped-rabbit.glb differdiff --git a/jarvis/ui/web/frontend/src/assets/society/figures/quadruped-wolf.glb b/jarvis/ui/web/frontend/src/assets/society/figures/quadruped-wolf.glbnew file mode 100644index 0000000000..1b881398bdBinary files /dev/null and b/jarvis/ui/web/frontend/src/assets/society/figures/quadruped-wolf.glb differdiff --git a/jarvis/ui/web/frontend/src/assets/society/figures/spirit-gigi.glb b/jarvis/ui/web/frontend/src/assets/society/figures/spirit-gigi.glbindex 9d2aa1e2a4..0fcad3623f 100644Binary files a/jarvis/ui/web/frontend/src/assets/society/figures/spirit-gigi.glb and b/jarvis/ui/web/frontend/src/assets/society/figures/spirit-gigi.glb differdiff --git a/jarvis/ui/web/frontend/src/components/society/create/CreateAgentDialog.tsx b/jarvis/ui/web/frontend/src/components/society/create/CreateAgentDialog.tsxindex 279938bb2f..877360f950 100644--- a/jarvis/ui/web/frontend/src/components/society/create/CreateAgentDialog.tsx+++ b/jarvis/ui/web/frontend/src/components/society/create/CreateAgentDialog.tsx@@ -71,6 +71,7 @@ import {import {basesForStyle,catalogBaseFor,+ isReservedStyle,keepablePartsFor,partsForSlot,slotsWithParts,@@ -246,11 +247,14 @@ export function CreateAgentDialog({ open, onClose, onCreated }: CreateAgentDialoconst imported = Boolean(recipe.model);const baseEntry = imported ? null : catalogBaseFor(recipe);const archetype: FigureArchetype = baseEntry?.archetype ?? recipe.archetype;+ // Which wardrobe fits this body: a hat cut for one skull is not offered on+ // another, even when the two share a style.+ const family = baseEntry?.family ?? null;const styleOptions = useMemo(() => stylesWithBases(), []);const bases = useMemo(() => basesForStyle(style), [style]);const slots = useMemo(- () => (imported ? [] : slotsWithParts(archetype, style)),- [imported, archetype, style],+ () => (imported ? [] : slotsWithParts(archetype, style, family)),+ [imported, archetype, style, family],);const heights = imported ? IMPORTED_RANGE : (HEIGHT_RANGE[archetype] ?? HEIGHT_RANGE.biped);const defaultHeight = baseEntry?.heightM ?? 1.75;@@ -266,6 +270,7 @@ export function CreateAgentDialog({ open, onClose, onCreated }: CreateAgentDialoconst entry = CATALOG.bases.find((b) => b.base === base) ?? null;const nextArchetype: FigureArchetype = entry?.archetype ?? "biped";const band = HEIGHT_RANGE[nextArchetype] ?? HEIGHT_RANGE.biped;+ const nextFamily = entry?.family ?? null;setStyle(nextStyle);setRecipe((r) => {const next: FigureRecipe = {@@ -273,7 +278,7 @@ export function CreateAgentDialog({ open, onClose, onCreated }: CreateAgentDialoarchetype: nextArchetype,base,style: nextStyle,- parts: keepablePartsFor(r.parts, nextArchetype, nextStyle),+ parts: keepablePartsFor(r.parts, nextArchetype, nextStyle, nextFamily),heightM: Math.min(band.max, Math.max(band.min, r.heightM ?? entry?.heightM ?? 1.75)),// Colours a person chose are theirs and survive the switch; colours// they never touched are the OLD figure's defaults and have no@@ -674,7 +679,9 @@ export function CreateAgentDialog({ open, onClose, onCreated }: CreateAgentDialo<span className="w-16 text-xs text-muted-foreground">{t("society.create.style")}</span><Segmentedvalue={style}- options={Object.keys(CATALOG.styles).map((id) => {+ options={Object.keys(CATALOG.styles)+ .filter((id) => !isReservedStyle(id))+ .map((id) => {// "Imported" is not a style to pick — it is where the// Import button lands, so it lights up once a GLB is in.const live = id === "custom" ? imported : styleOptions.includes(id);@@ -712,7 +719,7 @@ export function CreateAgentDialog({ open, onClose, onCreated }: CreateAgentDialovalue={recipe.parts[slot] ?? ""}options={[{ value: "", label: t("society.create.none") },- ...partsForSlot(slot, archetype, style).map((part) => ({+ ...partsForSlot(slot, archetype, style, family).map((part) => ({value: part.id,label: part.label,})),diff --git a/jarvis/ui/web/frontend/src/components/society/figures/AgentFigureViewer.tsx b/jarvis/ui/web/frontend/src/components/society/figures/AgentFigureViewer.tsxindex dc7203c510..4ca993f429 100644--- a/jarvis/ui/web/frontend/src/components/society/figures/AgentFigureViewer.tsx+++ b/jarvis/ui/web/frontend/src/components/society/figures/AgentFigureViewer.tsx@@ -28,6 +28,7 @@ import { useT } from "@/i18n";import { cn } from "@/lib/utils";import { assembleFigure, playClip, type AssembledFigure } from "./assembleFigure";+import { frameDistance } from "./figureFraming";import { recipeKey, resolvePalette, type FigureRecipe } from "./figureRecipe";import { figureAssetFor } from "./figureRegistry";import { LobbyStage } from "./LobbyStage";@@ -198,6 +199,7 @@ function FigureScene({ recipe, look, palette, heightM, clip, quiet, paused, orbiconst gltf = assets.base;const camera = useThree((s) => s.camera);const invalidate = useThree((s) => s.invalidate);+ const size = useThree((s) => s.size);const groupRef = useRef<THREE.Group>(null);const figureRef = useRef<AssembledFigure | null>(null);// What the camera frames: the body plus whatever it wears. A wizard hat@@ -215,6 +217,7 @@ function FigureScene({ recipe, look, palette, heightM, clip, quiet, paused, orbipalette,heightM,assets.parts.map((p) => p.gltf),+ assets.clips,);figureRef.current = figure;setFramedHeightM(figure?.renderedHeightM ?? heightM);@@ -257,15 +260,25 @@ function FigureScene({ recipe, look, palette, heightM, clip, quiet, paused, orbiconst group = groupRef.current;const o = orbit.current;if (group) group.rotation.y = o.yaw;- // 2.4 heights of distance: larger than the 2.6 it opened with (maintainer:- // "about a fifth"), with the crown and the hem still inside the frame.+ // Stand back far enough for the figure to fit the box BOTH ways. A fixed+ // multiple of its height only works while the column is tall: the look+ // editor grew, the column became wide and short, and a fixed distance cut+ // the legs off. Solving the frustum for the span in each axis does not+ // care what shape the box is.const mid = framedHeightM * 0.5;- const distance = (framedSpanM * 2.5) / o.zoom;+ // The stage always mounts a perspective camera; the store types it loosely.+ const lens = camera as THREE.PerspectiveCamera;+ const distance = frameDistance({+ spanM: framedSpanM,+ fovDeg: lens.fov,+ aspect: lens.aspect,+ zoom: o.zoom,+ });camera.position.set(0, mid + Math.sin(o.pitch) * distance, Math.cos(o.pitch) * distance);camera.lookAt(0, mid, 0);camera.updateProjectionMatrix();invalidate();- }, [orbitTick, framedHeightM, framedSpanM, camera, invalidate, orbit]);+ }, [orbitTick, framedHeightM, framedSpanM, camera, invalidate, orbit, size]);useFrame((_, dt) => {if (paused) return;diff --git a/jarvis/ui/web/frontend/src/components/society/figures/FigureRig.tsx b/jarvis/ui/web/frontend/src/components/society/figures/FigureRig.tsxindex ada933b739..da8e98b76d 100644--- a/jarvis/ui/web/frontend/src/components/society/figures/FigureRig.tsx+++ b/jarvis/ui/web/frontend/src/components/society/figures/FigureRig.tsx@@ -64,6 +64,7 @@ function LoadedRig({ recipe, drive, paused, heightM, onReady }: FigureRigProps)palette,height,assets.parts.map((p) => p.gltf),+ assets.clips,);const group = groupRef.current;figureRef.current = figure;diff --git a/jarvis/ui/web/frontend/src/components/society/figures/assembleFigure.ts b/jarvis/ui/web/frontend/src/components/society/figures/assembleFigure.tsindex bc2be60786..379bd71c51 100644--- a/jarvis/ui/web/frontend/src/components/society/figures/assembleFigure.ts+++ b/jarvis/ui/web/frontend/src/components/society/figures/assembleFigure.ts@@ -151,6 +151,7 @@ export function assembleFigure(palette: Palette,heightM: number,parts: LoadedGltf[] = [],+ clips: LoadedGltf | null = null,): AssembledFigure | null {const extras = readFigureExtras(gltf);if (!extras) return null;@@ -245,7 +246,10 @@ export function assembleFigure(const mixer = new THREE.AnimationMixer(body);const actions: Record<string, THREE.AnimationAction> = {};- for (const clip of gltf.animations) {+ // A body may ship its own clips or borrow a rig's shared set; three.js binds+ // a track by node name, so a borrowed clip drives this skeleton unchanged.+ const animations = gltf.animations.length > 0 ? gltf.animations : (clips?.animations ?? []);+ for (const clip of animations) {const action = mixer.clipAction(clip, body);const facts = extras.clips[clip.name];action.loop = facts && !facts.loop ? THREE.LoopOnce : THREE.LoopRepeat;diff --git a/jarvis/ui/web/frontend/src/components/society/figures/catalog.json b/jarvis/ui/web/frontend/src/components/society/figures/catalog.jsonindex f59d4f156a..a6ea68568a 100644--- a/jarvis/ui/web/frontend/src/components/society/figures/catalog.json+++ b/jarvis/ui/web/frontend/src/components/society/figures/catalog.json@@ -39,6 +39,8 @@"eye_white": "#e6ecef","emissive": "#6ff2e3"},+ "family": "jarvis-biped",+ "clipsFrom": "biped-clips.glb","source": "Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / Android","license": "first-party","note": "body modelled by humanoid_builder.py (profile `android`); rig and clips from KayKit Character Pack: Adventurers 1.0 (CC0-1.0) / Rogue, every donor mesh deleted",@@ -56,6 +58,54 @@],"height_m": 2.39},+ {+ "id": "biped/athlete",+ "file": "biped-athlete.glb",+ "archetype": "biped",+ "variant": "medium",+ "base": "athlete",+ "label": "Athlete",+ "styles": [+ "modern"+ ],+ "heightM": 1.75,+ "palette": {+ "skin": "#8d5b3f",+ "skin_shade": "#6f4630",+ "hair": "#1c1512",+ "eyes": "#1b2427",+ "primary": "#e04f5f",+ "primary_shade": "#2b3441",+ "secondary": "#f4f6f7",+ "secondary_shade": "#cfd4d8",+ "accent": "#f4f6f7",+ "metal": "#9aa3a8",+ "leather": "#5b4130",+ "fur": "#b87556",+ "fur_shade": "#8d4c39",+ "shoes": "#f4f6f7",+ "eye_white": "#f4f7f8",+ "emissive": "#ffd166"+ },+ "family": "jarvis-biped",+ "clipsFrom": "biped-clips.glb",+ "source": "Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / Athlete",+ "license": "first-party",+ "note": "body modelled by humanoid_builder.py (profile `athlete`); rig and clips from KayKit Character Pack: Adventurers 1.0 (CC0-1.0) / Rogue, every donor mesh deleted",+ "triangles": 348,+ "clips": [+ "celebrate",+ "idle",+ "run",+ "sit",+ "sleep",+ "talk",+ "walk",+ "wave",+ "work"+ ],+ "height_m": 2.18+ },{"id": "biped/barbarian","file": "biped-barbarian.glb",@@ -85,6 +135,7 @@"eye_white": "#e6ecef","emissive": "#ffd166"},+ "family": "kaykit-adventurers","source": "KayKit Character Pack: Adventurers 1.0 / Barbarian","license": "CC0-1.0","triangles": 4045,@@ -101,6 +152,54 @@],"height_m": 2.1863},+ {+ "id": "biped/blockhead",+ "file": "biped-blockhead.glb",+ "archetype": "biped",+ "variant": "medium",+ "base": "blockhead",+ "label": "Blockhead",+ "styles": [+ "cartoon"+ ],+ "heightM": 1.75,+ "palette": {+ "skin": "#c98b62",+ "skin_shade": "#c9926d",+ "hair": "#3b2a20",+ "eyes": "#1b2427",+ "primary": "#7bb26a",+ "primary_shade": "#588a49",+ "secondary": "#5d4a3a",+ "secondary_shade": "#666b71",+ "accent": "#e0533f",+ "metal": "#9aa3a8",+ "leather": "#5b4130",+ "fur": "#b87556",+ "fur_shade": "#8d4c39",+ "shoes": "#3a2f28",+ "eye_white": "#f4f7f8",+ "emissive": "#ffd166"+ },+ "family": "jarvis-biped",+ "clipsFrom": "biped-clips.glb",+ "source": "Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / Blockhead",+ "license": "first-party",+ "note": "body modelled by humanoid_builder.py (profile `blockhead`); rig and clips from KayKit Character Pack: Adventurers 1.0 (CC0-1.0) / Rogue, every donor mesh deleted",+ "triangles": 324,+ "clips": [+ "celebrate",+ "idle",+ "run",+ "sit",+ "sleep",+ "talk",+ "walk",+ "wave",+ "work"+ ],+ "height_m": 2.15+ },{"id": "biped/casual","file": "biped-casual.glb",@@ -130,6 +229,8 @@"eye_white": "#f4f7f8","emissive": "#ffd166"},+ "family": "jarvis-biped",+ "clipsFrom": "biped-clips.glb","source": "Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / Casual","license": "first-party","note": "body modelled by humanoid_builder.py (profile `casual`); rig and clips from KayKit Character Pack: Adventurers 1.0 (CC0-1.0) / Rogue, every donor mesh deleted",@@ -176,6 +277,8 @@"eye_white": "#ffffff","emissive": "#ffe066"},+ "family": "jarvis-biped",+ "clipsFrom": "biped-clips.glb","source": "Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / Chibi","license": "first-party","note": "body modelled by humanoid_builder.py (profile `chibi`); rig and clips from KayKit Character Pack: Adventurers 1.0 (CC0-1.0) / Rogue, every donor mesh deleted",@@ -193,6 +296,102 @@],"height_m": 2.18},+ {+ "id": "biped/dwarf",+ "file": "biped-dwarf.glb",+ "archetype": "biped",+ "variant": "medium",+ "base": "dwarf",+ "label": "Dwarf",+ "styles": [+ "fantasy"+ ],+ "heightM": 1.75,+ "palette": {+ "skin": "#e0a074",+ "skin_shade": "#c9926d",+ "hair": "#a8492a",+ "eyes": "#1b2427",+ "primary": "#7a4a2c",+ "primary_shade": "#5a3520",+ "secondary": "#4f6b3f",+ "secondary_shade": "#3a4f2e",+ "accent": "#d9a441",+ "metal": "#9aa3a8",+ "leather": "#4a3223",+ "fur": "#b87556",+ "fur_shade": "#8d4c39",+ "shoes": "#3a2a1e",+ "eye_white": "#f4f7f8",+ "emissive": "#ffd166"+ },+ "family": "jarvis-biped",+ "clipsFrom": "biped-clips.glb",+ "source": "Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / Dwarf",+ "license": "first-party",+ "note": "body modelled by humanoid_builder.py (profile `dwarf`); rig and clips from KayKit Character Pack: Adventurers 1.0 (CC0-1.0) / Rogue, every donor mesh deleted",+ "triangles": 336,+ "clips": [+ "celebrate",+ "idle",+ "run",+ "sit",+ "sleep",+ "talk",+ "walk",+ "wave",+ "work"+ ],+ "height_m": 2.18+ },+ {+ "id": "biped/elf",+ "file": "biped-elf.glb",+ "archetype": "biped",+ "variant": "medium",+ "base": "elf",+ "label": "Elf",+ "styles": [+ "fantasy"+ ],+ "heightM": 1.75,+ "palette": {+ "skin": "#f2d3b6",+ "skin_shade": "#d6b195",+ "hair": "#e6d29a",+ "eyes": "#1b2427",+ "primary": "#3f6d52",+ "primary_shade": "#2b4e39",+ "secondary": "#6b8f5f",+ "secondary_shade": "#4d6b44",+ "accent": "#d9c56b",+ "metal": "#9aa3a8",+ "leather": "#5b4130",+ "fur": "#b87556",+ "fur_shade": "#8d4c39",+ "shoes": "#4a3a26",+ "eye_white": "#f4f7f8",+ "emissive": "#ffd166"+ },+ "family": "jarvis-biped",+ "clipsFrom": "biped-clips.glb",+ "source": "Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / Elf",+ "license": "first-party",+ "note": "body modelled by humanoid_builder.py (profile `elf`); rig and clips from KayKit Character Pack: Adventurers 1.0 (CC0-1.0) / Rogue, every donor mesh deleted",+ "triangles": 384,+ "clips": [+ "celebrate",+ "idle",+ "run",+ "sit",+ "sleep",+ "talk",+ "walk",+ "wave",+ "work"+ ],+ "height_m": 2.18+ },{"id": "biped/knight","file": "biped-knight.glb",@@ -222,6 +421,7 @@"eye_white": "#e6ecef","emissive": "#ffd166"},+ "family": "kaykit-adventurers","source": "KayKit Character Pack: Adventurers 1.0 / Knight","license": "CC0-1.0","triangles": 4148,@@ -267,6 +467,7 @@"eye_white": "#e6ecef","emissive": "#ffd166"},+ "family": "kaykit-adventurers","source": "KayKit Character Pack: Adventurers 1.0 / Mage","license": "CC0-1.0","triangles": 4029,@@ -283,6 +484,102 @@],"height_m": 2.2027},+ {+ "id": "biped/medic",+ "file": "biped-medic.glb",+ "archetype": "biped",+ "variant": "medium",+ "base": "medic",+ "label": "Medic",+ "styles": [+ "modern"+ ],+ "heightM": 1.75,+ "palette": {+ "skin": "#f1c4a0",+ "skin_shade": "#c9926d",+ "hair": "#6b6b6b",+ "eyes": "#1b2427",+ "primary": "#4f8fb0",+ "primary_shade": "#2b3441",+ "secondary": "#f6f8f8",+ "secondary_shade": "#d6dbdd",+ "accent": "#d2453c",+ "metal": "#9aa3a8",+ "leather": "#5b4130",+ "fur": "#b87556",+ "fur_shade": "#8d4c39",+ "shoes": "#241f1c",+ "eye_white": "#f4f7f8",+ "emissive": "#ffd166"+ },+ "family": "jarvis-biped",+ "clipsFrom": "biped-clips.glb",+ "source": "Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / Medic",+ "license": "first-party",+ "note": "body modelled by humanoid_builder.py (profile `medic`); rig and clips from KayKit Character Pack: Adventurers 1.0 (CC0-1.0) / Rogue, every donor mesh deleted",+ "triangles": 384,+ "clips": [+ "celebrate",+ "idle",+ "run",+ "sit",+ "sleep",+ "talk",+ "walk",+ "wave",+ "work"+ ],+ "height_m": 2.18+ },+ {+ "id": "biped/monk",+ "file": "biped-monk.glb",+ "archetype": "biped",+ "variant": "medium",+ "base": "monk",+ "label": "Monk",+ "styles": [+ "fantasy"+ ],+ "heightM": 1.75,+ "palette": {+ "skin": "#d8a37c",+ "skin_shade": "#c9926d",+ "hair": "#3b2a20",+ "eyes": "#1b2427",+ "primary": "#8a5a34",+ "primary_shade": "#66401f",+ "secondary": "#c4a06a",+ "secondary_shade": "#666b71",+ "accent": "#d9a441",+ "metal": "#9aa3a8",+ "leather": "#4a3223",+ "fur": "#b87556",+ "fur_shade": "#8d4c39",+ "shoes": "#3a2a1e",+ "eye_white": "#f4f7f8",+ "emissive": "#ffd166"+ },+ "family": "jarvis-biped",+ "clipsFrom": "biped-clips.glb",+ "source": "Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / Monk",+ "license": "first-party",+ "note": "body modelled by humanoid_builder.py (profile `monk`); rig and clips from KayKit Character Pack: Adventurers 1.0 (CC0-1.0) / Rogue, every donor mesh deleted",+ "triangles": 336,+ "clips": [+ "celebrate",+ "idle",+ "run",+ "sit",+ "sleep",+ "talk",+ "walk",+ "wave",+ "work"+ ],+ "height_m": 2.15+ },{"id": "biped/office","file": "biped-office.glb",@@ -312,6 +609,8 @@"eye_white": "#f4f7f8","emissive": "#ffd166"},+ "family": "jarvis-biped",+ "clipsFrom": "biped-clips.glb","source": "Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / Office","license": "first-party","note": "body modelled by humanoid_builder.py (profile `office`); rig and clips from KayKit Character Pack: Adventurers 1.0 (CC0-1.0) / Rogue, every donor mesh deleted",@@ -329,6 +628,54 @@],"height_m": 2.18},+ {+ "id": "biped/pilot",+ "file": "biped-pilot.glb",+ "archetype": "biped",+ "variant": "medium",+ "base": "pilot",+ "label": "Pilot",+ "styles": [+ "scifi"+ ],+ "heightM": 1.75,+ "palette": {+ "skin": "#e8b48c",+ "skin_shade": "#c9926d",+ "hair": "#3b2a20",+ "eyes": "#1b2427",+ "primary": "#e8a33d",+ "primary_shade": "#b57a24",+ "secondary": "#3b4550",+ "secondary_shade": "#262d35",+ "accent": "#e8a33d",+ "metal": "#b6c0c6",+ "leather": "#4a3a2c",+ "fur": "#b87556",+ "fur_shade": "#8d4c39",+ "shoes": "#2b2320",+ "eye_white": "#f4f7f8",+ "emissive": "#7fdcff"+ },+ "family": "jarvis-biped",+ "clipsFrom": "biped-clips.glb",+ "source": "Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / Pilot",+ "license": "first-party",+ "note": "body modelled by humanoid_builder.py (profile `pilot`); rig and clips from KayKit Character Pack: Adventurers 1.0 (CC0-1.0) / Rogue, every donor mesh deleted",+ "triangles": 288,+ "clips": [+ "celebrate",+ "idle",+ "run",+ "sit",+ "sleep",+ "talk",+ "walk",+ "wave",+ "work"+ ],+ "height_m": 2.15+ },{"id": "biped/rogue","file": "biped-rogue.glb",@@ -358,6 +705,7 @@"eye_white": "#e6ecef","emissive": "#ffd166"},+ "family": "kaykit-adventurers","source": "KayKit Character Pack: Adventurers 1.0 / Rogue","license": "CC0-1.0","triangles": 4263,@@ -375,38 +723,40 @@"height_m": 2.187},{- "id": "quadruped/fox",- "file": "quadruped-fox.glb",- "archetype": "quadruped",- "variant": "default",- "base": "fox",- "label": "Fox",+ "id": "biped/scientist",+ "file": "biped-scientist.glb",+ "archetype": "biped",+ "variant": "medium",+ "base": "scientist",+ "label": "Scientist","styles": [- "animal"+ "scifi"],- "heightM": 0.9,+ "heightM": 1.75,"palette": {- "skin": "#f0b5a8",- "skin_shade": "#d29488",- "hair": "#b8532a",- "eyes": "#1a1614",- "primary": "#c25a2a",- "primary_shade": "#9a4420",- "secondary": "#f4efe6",- "secondary_shade": "#d8d0c2",- "accent": "#f2c14e",+ "skin": "#e9c3a3",+ "skin_shade": "#c9926d",+ "hair": "#8a8f96",+ "eyes": "#1b2427",+ "primary": "#4a7fb0",+ "primary_shade": "#2b3441",+ "secondary": "#f6f8f8",+ "secondary_shade": "#c3c9cc",+ "accent": "#5ad1c0","metal": "#9aa3a8",- "leather": "#6b4a33",- "fur": "#c8622b",- "fur_shade": "#f4efe6",- "shoes": "#2b2320",- "eye_white": "#fbf8f2",+ "leather": "#3a3f45",+ "fur": "#b87556",+ "fur_shade": "#8d4c39",+ "shoes": "#2b2f33",+ "eye_white": "#f4f7f8","emissive": "#ffd166"},- "source": "Personal Jarvis animals (first-party) / Fox",+ "family": "jarvis-biped",+ "clipsFrom": "biped-clips.glb",+ "source": "Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / Scientist","license": "first-party",- "note": "rig, body and clips written by quadruped_builder.py (shape `fox`); no external source",- "triangles": 396,+ "note": "body modelled by humanoid_builder.py (profile `scientist`); rig and clips from KayKit Character Pack: Adventurers 1.0 (CC0-1.0) / Rogue, every donor mesh deleted",+ "triangles": 408,"clips": ["celebrate","idle",@@ -414,17 +764,439 @@"sit","sleep","talk",- "walk"+ "walk",+ "wave",+ "work"],- "height_m": 0.88+ "height_m": 2.18},{- "id": "spirit/gigi",- "file": "spirit-gigi.glb",- "archetype": "spirit",- "variant": "default",- "base": "gigi",- "label": "Gigi",+ "id": "biped/toon",+ "file": "biped-toon.glb",+ "archetype": "biped",+ "variant": "medium",+ "base": "toon",+ "label": "Toon",+ "styles": [+ "cartoon"+ ],+ "heightM": 1.75,+ "palette": {+ "skin": "#f6cdaa",+ "skin_shade": "#c9926d",+ "hair": "#1c1512",+ "eyes": "#1b2427",+ "primary": "#d63d47",+ "primary_shade": "#2b3441",+ "secondary": "#ffffff",+ "secondary_shade": "#d9d9d9",+ "accent": "#f5c542",+ "metal": "#9aa3a8",+ "leather": "#5b4130",+ "fur": "#b87556",+ "fur_shade": "#8d4c39",+ "shoes": "#f2b43a",+ "eye_white": "#f4f7f8",+ "emissive": "#ffd166"+ },+ "family": "jarvis-biped",+ "clipsFrom": "biped-clips.glb",+ "source": "Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / Toon",+ "license": "first-party",+ "note": "body modelled by humanoid_builder.py (profile `toon`); rig and clips from KayKit Character Pack: Adventurers 1.0 (CC0-1.0) / Rogue, every donor mesh deleted",+ "triangles": 336,+ "clips": [+ "celebrate",+ "idle",+ "run",+ "sit",+ "sleep",+ "talk",+ "walk",+ "wave",+ "work"+ ],+ "height_m": 2.18+ },+ {+ "id": "biped/trooper",+ "file": "biped-trooper.glb",+ "archetype": "biped",+ "variant": "medium",+ "base": "trooper",+ "label": "Trooper",+ "styles": [+ "scifi"+ ],+ "heightM": 1.75,+ "palette": {+ "skin": "#e8b48c",+ "skin_shade": "#c9926d",+ "hair": "#3b2a20",+ "eyes": "#1b2427",+ "primary": "#2b3a4a",+ "primary_shade": "#1c2733",+ "secondary": "#e6eaec",+ "secondary_shade": "#9aa3a8",+ "accent": "#d84b3a",+ "metal": "#6f797f",+ "leather": "#5b4130",+ "fur": "#b87556",+ "fur_shade": "#8d4c39",+ "shoes": "#2b2320",+ "eye_white": "#f4f7f8",+ "emissive": "#ff6a4d"+ },+ "family": "jarvis-biped",+ "clipsFrom": "biped-clips.glb",+ "source": "Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / Trooper",+ "license": "first-party",+ "note": "body modelled by humanoid_builder.py (profile `trooper`); rig and clips from KayKit Character Pack: Adventurers 1.0 (CC0-1.0) / Rogue, every donor mesh deleted",+ "triangles": 288,+ "clips": [+ "celebrate",+ "idle",+ "run",+ "sit",+ "sleep",+ "talk",+ "walk",+ "wave",+ "work"+ ],+ "height_m": 2.15+ },+ {+ "id": "biped/worker",+ "file": "biped-worker.glb",+ "archetype": "biped",+ "variant": "medium",+ "base": "worker",+ "label": "Worker",+ "styles": [+ "modern"+ ],+ "heightM": 1.75,+ "palette": {+ "skin": "#d8a37c",+ "skin_shade": "#c9926d",+ "hair": "#4a3529",+ "eyes": "#1b2427",+ "primary": "#c9d2d8",+ "primary_shade": "#2b3441",+ "secondary": "#3f6d9e",+ "secondary_shade": "#2c4d70",+ "accent": "#f2b43a",+ "metal": "#9aa3a8",+ "leather": "#6b4a33",+ "fur": "#b87556",+ "fur_shade": "#8d4c39",+ "shoes": "#3a2c22",+ "eye_white": "#f4f7f8",+ "emissive": "#ffd166"+ },+ "family": "jarvis-biped",+ "clipsFrom": "biped-clips.glb",+ "source": "Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / Worker",+ "license": "first-party",+ "note": "body modelled by humanoid_builder.py (profile `worker`); rig and clips from KayKit Character Pack: Adventurers 1.0 (CC0-1.0) / Rogue, every donor mesh deleted",+ "triangles": 372,+ "clips": [+ "celebrate",+ "idle",+ "run",+ "sit",+ "sleep",+ "talk",+ "walk",+ "wave",+ "work"+ ],+ "height_m": 2.18+ },+ {+ "id": "quadruped/bear",+ "file": "quadruped-bear.glb",+ "archetype": "quadruped",+ "variant": "default",+ "base": "bear",+ "label": "Bear",+ "styles": [+ "animal"+ ],+ "heightM": 0.9,+ "palette": {+ "skin": "#f0b5a8",+ "skin_shade": "#d29488",+ "hair": "#b8532a",+ "eyes": "#1a1210",+ "primary": "#c25a2a",+ "primary_shade": "#9a4420",+ "secondary": "#3a2a20",+ "secondary_shade": "#d8d0c2",+ "accent": "#d9a441",+ "metal": "#9aa3a8",+ "leather": "#6b4a33",+ "fur": "#6b4630",+ "fur_shade": "#a98157",+ "shoes": "#2b2320",+ "eye_white": "#fbf8f2",+ "emissive": "#ffd166"+ },+ "family": "jarvis-quadruped",+ "clipsFrom": "quadruped-clips.glb",+ "source": "Personal Jarvis animals (first-party) / Bear",+ "license": "first-party",+ "note": "rig, body and clips written by quadruped_builder.py (shape `bear`); no external source",+ "triangles": 396,+ "clips": [+ "celebrate",+ "idle",+ "run",+ "sit",+ "sleep",+ "talk",+ "walk"+ ],+ "height_m": 0.76+ },+ {+ "id": "quadruped/cat",+ "file": "quadruped-cat.glb",+ "archetype": "quadruped",+ "variant": "default",+ "base": "cat",+ "label": "Cat",+ "styles": [+ "animal"+ ],+ "heightM": 0.9,+ "palette": {+ "skin": "#f0b5a8",+ "skin_shade": "#d29488",+ "hair": "#b8532a",+ "eyes": "#3fae6a",+ "primary": "#c25a2a",+ "primary_shade": "#9a4420",+ "secondary": "#f0ece4",+ "secondary_shade": "#d8d0c2",+ "accent": "#7fd1a8",+ "metal": "#9aa3a8",+ "leather": "#6b4a33",+ "fur": "#3c3a42",+ "fur_shade": "#8e8a96",+ "shoes": "#2b2320",+ "eye_white": "#fbf8f2",+ "emissive": "#ffd166"+ },+ "family": "jarvis-quadruped",+ "clipsFrom": "quadruped-clips.glb",+ "source": "Personal Jarvis animals (first-party) / Cat",+ "license": "first-party",+ "note": "rig, body and clips written by quadruped_builder.py (shape `cat`); no external source",+ "triangles": 396,+ "clips": [+ "celebrate",+ "idle",+ "run",+ "sit",+ "sleep",+ "talk",+ "walk"+ ],+ "height_m": 0.8+ },+ {+ "id": "quadruped/dog",+ "file": "quadruped-dog.glb",+ "archetype": "quadruped",+ "variant": "default",+ "base": "dog",+ "label": "Dog",+ "styles": [+ "animal"+ ],+ "heightM": 0.9,+ "palette": {+ "skin": "#f0b5a8",+ "skin_shade": "#d29488",+ "hair": "#b8532a",+ "eyes": "#2a1d14",+ "primary": "#c25a2a",+ "primary_shade": "#9a4420",+ "secondary": "#f4efe6",+ "secondary_shade": "#d8d0c2",+ "accent": "#d24b3a",+ "metal": "#9aa3a8",+ "leather": "#6b4a33",+ "fur": "#a9793f",+ "fur_shade": "#e8dcc6",+ "shoes": "#2b2320",+ "eye_white": "#fbf8f2",+ "emissive": "#ffd166"+ },+ "family": "jarvis-quadruped",+ "clipsFrom": "quadruped-clips.glb",+ "source": "Personal Jarvis animals (first-party) / Dog",+ "license": "first-party",+ "note": "rig, body and clips written by quadruped_builder.py (shape `dog`); no external source",+ "triangles": 396,+ "clips": [+ "celebrate",+ "idle",+ "run",+ "sit",+ "sleep",+ "talk",+ "walk"+ ],+ "height_m": 0.78+ },+ {+ "id": "quadruped/fox",+ "file": "quadruped-fox.glb",+ "archetype": "quadruped",+ "variant": "default",+ "base": "fox",+ "label": "Fox",+ "styles": [+ "animal"+ ],+ "heightM": 0.9,+ "palette": {+ "skin": "#f0b5a8",+ "skin_shade": "#d29488",+ "hair": "#b8532a",+ "eyes": "#1a1614",+ "primary": "#c25a2a",+ "primary_shade": "#9a4420",+ "secondary": "#f4efe6",+ "secondary_shade": "#d8d0c2",+ "accent": "#f2c14e",+ "metal": "#9aa3a8",+ "leather": "#6b4a33",+ "fur": "#c8622b",+ "fur_shade": "#f4efe6",+ "shoes": "#2b2320",+ "eye_white": "#fbf8f2",+ "emissive": "#ffd166"+ },+ "family": "jarvis-quadruped",+ "clipsFrom": "quadruped-clips.glb",+ "source": "Personal Jarvis animals (first-party) / Fox",+ "license": "first-party",+ "note": "rig, body and clips written by quadruped_builder.py (shape `fox`); no external source",+ "triangles": 396,+ "clips": [+ "celebrate",+ "idle",+ "run",+ "sit",+ "sleep",+ "talk",+ "walk"+ ],+ "height_m": 0.88+ },+ {+ "id": "quadruped/rabbit",+ "file": "quadruped-rabbit.glb",+ "archetype": "quadruped",+ "variant": "default",+ "base": "rabbit",+ "label": "Rabbit",+ "styles": [+ "animal"+ ],+ "heightM": 0.9,+ "palette": {+ "skin": "#f0b5b8",+ "skin_shade": "#d29488",+ "hair": "#b8532a",+ "eyes": "#4a2e2a",+ "primary": "#c25a2a",+ "primary_shade": "#9a4420",+ "secondary": "#f6f2ea",+ "secondary_shade": "#d8d0c2",+ "accent": "#e8a0b0",+ "metal": "#9aa3a8",+ "leather": "#6b4a33",+ "fur": "#d9cfc2",+ "fur_shade": "#f6f2ea",+ "shoes": "#2b2320",+ "eye_white": "#fbf8f2",+ "emissive": "#ffd166"+ },+ "family": "jarvis-quadruped",+ "clipsFrom": "quadruped-clips.glb",+ "source": "Personal Jarvis animals (first-party) / Rabbit",+ "license": "first-party",+ "note": "rig, body and clips written by quadruped_builder.py (shape `rabbit`); no external source",+ "triangles": 396,+ "clips": [+ "celebrate",+ "idle",+ "run",+ "sit",+ "sleep",+ "talk",+ "walk"+ ],+ "height_m": 1.18+ },+ {+ "id": "quadruped/wolf",+ "file": "quadruped-wolf.glb",+ "archetype": "quadruped",+ "variant": "default",+ "base": "wolf",+ "label": "Wolf",+ "styles": [+ "animal"+ ],+ "heightM": 0.9,+ "palette": {+ "skin": "#f0b5a8",+ "skin_shade": "#d29488",+ "hair": "#b8532a",+ "eyes": "#d8c24a",+ "primary": "#c25a2a",+ "primary_shade": "#9a4420",+ "secondary": "#e4e8ec",+ "secondary_shade": "#d8d0c2",+ "accent": "#8fb8d8",+ "metal": "#9aa3a8",+ "leather": "#6b4a33",+ "fur": "#6d7580",+ "fur_shade": "#c6ccd2",+ "shoes": "#2b2320",+ "eye_white": "#fbf8f2",+ "emissive": "#ffd166"+ },+ "family": "jarvis-quadruped",+ "clipsFrom": "quadruped-clips.glb",+ "source": "Personal Jarvis animals (first-party) / Wolf",+ "license": "first-party",+ "note": "rig, body and clips written by quadruped_builder.py (shape `wolf`); no external source",+ "triangles": 396,+ "clips": [+ "celebrate",+ "idle",+ "run",+ "sit",+ "sleep",+ "talk",+ "walk"+ ],+ "height_m": 0.86+ },+ {+ "id": "spirit/gigi",+ "file": "spirit-gigi.glb",+ "archetype": "spirit",+ "variant": "default",+ "base": "gigi",+ "label": "Gigi","styles": ["spirit"],@@ -447,6 +1219,7 @@"eye_white": "#ffffff","emissive": "#ffffff"},+ "family": "gigi","source": "Gigi mascot (first-party) / Gigi","license": "first-party","triangles": 3540,@@ -475,6 +1248,7 @@"scifi"],"hides": [],+ "fits_family": null,"from_base": "office","source": "Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / back-backpack","license": "first-party",@@ -485,6 +1259,52 @@"triangles": 48,"two_sided": false},+ {+ "id": "back-blanket",+ "file": "parts/quadruped/back-blanket.glb",+ "archetype": "quadruped",+ "slot": "back",+ "attach": "chest",+ "label": "Blanket",+ "styles": [+ "animal"+ ],+ "hides": [],+ "fits_family": null,+ "from_base": "fox",+ "source": "Personal Jarvis animals (first-party) / back-blanket",+ "license": "first-party",+ "palette_cells": {+ "primary": 6,+ "accent": 6+ },+ "triangles": 24,+ "two_sided": false+ },+ {+ "id": "back-cloak",+ "file": "parts/biped/back-cloak.glb",+ "archetype": "biped",+ "slot": "back",+ "attach": "chest",+ "label": "Cloak",+ "styles": [+ "fantasy",+ "cartoon",+ "scifi"+ ],+ "hides": [],+ "fits_family": null,+ "from_base": "office",+ "source": "Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / back-cloak",+ "license": "first-party",+ "palette_cells": {+ "primary_shade": 6,+ "accent": 6+ },+ "triangles": 24,+ "two_sided": true+ },{"id": "back-fur-cape","file": "parts/biped/back-fur-cape.glb",@@ -496,6 +1316,7 @@"fantasy"],"hides": [],+ "fits_family": null,"from_base": "barbarian","source": "KayKit Character Pack: Adventurers 1.0 / Barbarian_Cape","license": "CC0-1.0",@@ -505,6 +1326,29 @@"triangles": 78,"two_sided": true},+ {+ "id": "back-jetpack",+ "file": "parts/biped/back-jetpack.glb",+ "archetype": "biped",+ "slot": "back",+ "attach": "chest",+ "label": "Jetpack",+ "styles": [+ "scifi"+ ],+ "hides": [],+ "fits_family": null,+ "from_base": "office",+ "source": "Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / back-jetpack",+ "license": "first-party",+ "palette_cells": {+ "metal": 12,+ "emissive": 6,+ "leather": 12+ },+ "triangles": 60,+ "two_sided": false+ },{"id": "back-knight-cape","file": "parts/biped/back-knight-cape.glb",@@ -516,6 +1360,7 @@"fantasy"],"hides": [],+ "fits_family": null,"from_base": "knight","source": "KayKit Character Pack: Adventurers 1.0 / Knight_Cape","license": "CC0-1.0",@@ -536,6 +1381,7 @@"fantasy"],"hides": [],+ "fits_family": null,"from_base": "mage","source": "KayKit Character Pack: Adventurers 1.0 / Mage_Cape","license": "CC0-1.0",@@ -545,6 +1391,29 @@"triangles": 84,"two_sided": true},+ {+ "id": "back-quiver",+ "file": "parts/biped/back-quiver.glb",+ "archetype": "biped",+ "slot": "back",+ "attach": "chest",+ "label": "Quiver",+ "styles": [+ "fantasy",+ "cartoon"+ ],+ "hides": [],+ "fits_family": null,+ "from_base": "office",+ "source": "Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / back-quiver",+ "license": "first-party",+ "palette_cells": {+ "leather": 12,+ "secondary_shade": 6+ },+ "triangles": 36,+ "two_sided": false+ },{"id": "back-rogue-cape","file": "parts/biped/back-rogue-cape.glb",@@ -556,6 +1425,7 @@"fantasy"],"hides": [],+ "fits_family": null,"from_base": "rogue","source": "KayKit Character Pack: Adventurers 1.0 / Rogue_Cape","license": "CC0-1.0",@@ -565,6 +1435,98 @@"triangles": 84,"two_sided": true},+ {+ "id": "back-saddlebag",+ "file": "parts/quadruped/back-saddlebag.glb",+ "archetype": "quadruped",+ "slot": "back",+ "attach": "chest",+ "label": "Saddle bag",+ "styles": [+ "animal"+ ],+ "hides": [],+ "fits_family": null,+ "from_base": "fox",+ "source": "Personal Jarvis animals (first-party) / back-saddlebag",+ "license": "first-party",+ "palette_cells": {+ "leather": 12,+ "secondary_shade": 6+ },+ "triangles": 36,+ "two_sided": false+ },+ {+ "id": "back-satchel",+ "file": "parts/biped/back-satchel.glb",+ "archetype": "biped",+ "slot": "back",+ "attach": "chest",+ "label": "Satchel",+ "styles": [+ "modern",+ "fantasy",+ "cartoon"+ ],+ "hides": [],+ "fits_family": null,+ "from_base": "office",+ "source": "Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / back-satchel",+ "license": "first-party",+ "palette_cells": {+ "leather": 12,+ "secondary_shade": 6+ },+ "triangles": 36,+ "two_sided": false+ },+ {+ "id": "belt-sash",+ "file": "parts/biped/belt-sash.glb",+ "archetype": "biped",+ "slot": "belt",+ "attach": "hips",+ "label": "Sash",+ "styles": [+ "fantasy",+ "cartoon"+ ],+ "hides": [],+ "fits_family": null,+ "from_base": "office",+ "source": "Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / belt-sash",+ "license": "first-party",+ "palette_cells": {+ "accent": 12+ },+ "triangles": 24,+ "two_sided": false+ },+ {+ "id": "belt-toolbelt",+ "file": "parts/biped/belt-toolbelt.glb",+ "archetype": "biped",+ "slot": "belt",+ "attach": "hips",+ "label": "Tool belt",+ "styles": [+ "modern",+ "scifi",+ "cartoon"+ ],+ "hides": [],+ "fits_family": null,+ "from_base": "office",+ "source": "Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / belt-toolbelt",+ "license": "first-party",+ "palette_cells": {+ "leather": 12,+ "metal": 6+ },+ "triangles": 36,+ "two_sided": false+ },{"id": "collar-band","file": "parts/quadruped/collar-band.glb",@@ -576,14 +1538,181 @@"animal"],"hides": [],- "from_base": "fox",- "source": "Personal Jarvis animals (first-party) / collar-band",+ "fits_family": null,+ "from_base": "fox",+ "source": "Personal Jarvis animals (first-party) / collar-band",+ "license": "first-party",+ "palette_cells": {+ "leather": 6,+ "accent": 6+ },+ "triangles": 24,+ "two_sided": false+ },+ {+ "id": "collar-bandana",+ "file": "parts/quadruped/collar-bandana.glb",+ "archetype": "quadruped",+ "slot": "collar",+ "attach": "neck",+ "label": "Bandana",+ "styles": [+ "animal"+ ],+ "hides": [],+ "fits_family": null,+ "from_base": "fox",+ "source": "Personal Jarvis animals (first-party) / collar-bandana",+ "license": "first-party",+ "palette_cells": {+ "accent": 12+ },+ "triangles": 24,+ "two_sided": false+ },+ {+ "id": "collar-scarf",+ "file": "parts/quadruped/collar-scarf.glb",+ "archetype": "quadruped",+ "slot": "collar",+ "attach": "neck",+ "label": "Scarf",+ "styles": [+ "animal"+ ],+ "hides": [],+ "fits_family": null,+ "from_base": "fox",+ "source": "Personal Jarvis animals (first-party) / collar-scarf",+ "license": "first-party",+ "palette_cells": {+ "primary": 6,+ "primary_shade": 6+ },+ "triangles": 24,+ "two_sided": false+ },+ {+ "id": "face_extra-glasses",+ "file": "parts/biped/face_extra-glasses.glb",+ "archetype": "biped",+ "slot": "face_extra",+ "attach": "head",+ "label": "Glasses",+ "styles": [+ "modern",+ "scifi",+ "cartoon",+ "fantasy"+ ],+ "hides": [],+ "fits_family": "jarvis-biped",+ "from_base": "office",+ "source": "Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / face_extra-glasses",+ "license": "first-party",+ "palette_cells": {+ "metal": 30+ },+ "triangles": 60,+ "two_sided": false+ },+ {+ "id": "face_extra-respirator",+ "file": "parts/biped/face_extra-respirator.glb",+ "archetype": "biped",+ "slot": "face_extra",+ "attach": "head",+ "label": "Respirator",+ "styles": [+ "scifi",+ "modern"+ ],+ "hides": [],+ "fits_family": "jarvis-biped",+ "from_base": "office",+ "source": "Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / face_extra-respirator",+ "license": "first-party",+ "palette_cells": {+ "metal": 6,+ "accent": 6,+ "leather": 6+ },+ "triangles": 36,+ "two_sided": false+ },+ {+ "id": "face_extra-shades",+ "file": "parts/biped/face_extra-shades.glb",+ "archetype": "biped",+ "slot": "face_extra",+ "attach": "head",+ "label": "Shades",+ "styles": [+ "modern",+ "cartoon",+ "scifi",+ "fantasy"+ ],+ "hides": [],+ "fits_family": "jarvis-biped",+ "from_base": "office",+ "source": "Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / face_extra-shades",+ "license": "first-party",+ "palette_cells": {+ "eyes": 6,+ "secondary": 6+ },+ "triangles": 24,+ "two_sided": false+ },+ {+ "id": "hand_l-clipboard",+ "file": "parts/biped/hand_l-clipboard.glb",+ "archetype": "biped",+ "slot": "hand_l",+ "attach": "handslot_l",+ "label": "Clipboard",+ "styles": [+ "modern",+ "scifi",+ "cartoon",+ "fantasy"+ ],+ "hides": [],+ "fits_family": null,+ "from_base": "office",+ "source": "Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / hand_l-clipboard",+ "license": "first-party",+ "palette_cells": {+ "leather": 6,+ "secondary": 6,+ "metal": 6+ },+ "triangles": 36,+ "two_sided": false+ },+ {+ "id": "hand_l-lantern",+ "file": "parts/biped/hand_l-lantern.glb",+ "archetype": "biped",+ "slot": "hand_l",+ "attach": "handslot_l",+ "label": "Lantern",+ "styles": [+ "fantasy",+ "modern",+ "cartoon"+ ],+ "hides": [],+ "fits_family": null,+ "from_base": "office",+ "source": "Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / hand_l-lantern","license": "first-party","palette_cells": {- "leather": 6,- "accent": 6+ "emissive": 6,+ "metal": 12},- "triangles": 24,+ "triangles": 36,"two_sided": false},{@@ -597,6 +1726,7 @@"fantasy"],"hides": [],+ "fits_family": null,"from_base": "knight","source": "KayKit Character Pack: Adventurers 1.0 / Round_Shield","license": "CC0-1.0",@@ -618,6 +1748,7 @@"fantasy"],"hides": [],+ "fits_family": null,"from_base": "mage","source": "KayKit Character Pack: Adventurers 1.0 / Spellbook","license": "CC0-1.0",@@ -639,9 +1770,11 @@"label": "Tablet","styles": ["modern",- "scifi"+ "scifi",+ "cartoon"],"hides": [],+ "fits_family": null,"from_base": "office","source": "Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / hand_l-tablet","license": "first-party",@@ -663,6 +1796,7 @@"fantasy"],"hides": [],+ "fits_family": null,"from_base": "barbarian","source": "KayKit Character Pack: Adventurers 1.0 / Barbarian_Round_Shield","license": "CC0-1.0",@@ -686,6 +1820,7 @@"fantasy"],"hides": [],+ "fits_family": null,"from_base": "barbarian","source": "KayKit Character Pack: Adventurers 1.0 / 1H_Axe","license": "CC0-1.0",@@ -697,6 +1832,30 @@"triangles": 274,"two_sided": false},+ {+ "id": "hand_r-broom",+ "file": "parts/biped/hand_r-broom.glb",+ "archetype": "biped",+ "slot": "hand_r",+ "attach": "handslot_r",+ "label": "Broom",+ "styles": [+ "modern",+ "cartoon",+ "fantasy"+ ],+ "hides": [],+ "fits_family": null,+ "from_base": "office",+ "source": "Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / hand_r-broom",+ "license": "first-party",+ "palette_cells": {+ "leather": 6,+ "accent": 6+ },+ "triangles": 24,+ "two_sided": false+ },{"id": "hand_r-knife","file": "parts/biped/hand_r-knife.glb",@@ -708,6 +1867,7 @@"fantasy"],"hides": [],+ "fits_family": null,"from_base": "rogue","source": "KayKit Character Pack: Adventurers 1.0 / Knife","license": "CC0-1.0",@@ -732,6 +1892,7 @@"scifi"],"hides": [],+ "fits_family": null,"from_base": "barbarian","source": "KayKit Character Pack: Adventurers 1.0 / Mug","license": "CC0-1.0",@@ -743,6 +1904,30 @@"triangles": 426,"two_sided": false},+ {+ "id": "hand_r-scanner",+ "file": "parts/biped/hand_r-scanner.glb",+ "archetype": "biped",+ "slot": "hand_r",+ "attach": "handslot_r",+ "label": "Scanner",+ "styles": [+ "scifi",+ "modern"+ ],+ "hides": [],+ "fits_family": null,+ "from_base": "office",+ "source": "Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / hand_r-scanner",+ "license": "first-party",+ "palette_cells": {+ "primary_shade": 6,+ "metal": 6,+ "emissive": 6+ },+ "triangles": 36,+ "two_sided": false+ },{"id": "hand_r-staff","file": "parts/biped/hand_r-staff.glb",@@ -754,6 +1939,7 @@"fantasy"],"hides": [],+ "fits_family": null,"from_base": "mage","source": "KayKit Character Pack: Adventurers 1.0 / 2H_Staff","license": "CC0-1.0",@@ -776,6 +1962,7 @@"fantasy"],"hides": [],+ "fits_family": null,"from_base": "knight","source": "KayKit Character Pack: Adventurers 1.0 / 1H_Sword","license": "CC0-1.0",@@ -786,6 +1973,30 @@"triangles": 300,"two_sided": false},+ {+ "id": "hand_r-torch",+ "file": "parts/biped/hand_r-torch.glb",+ "archetype": "biped",+ "slot": "hand_r",+ "attach": "handslot_r",+ "label": "Torch",+ "styles": [+ "fantasy",+ "cartoon",+ "scifi"+ ],+ "hides": [],+ "fits_family": null,+ "from_base": "office",+ "source": "Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / hand_r-torch",+ "license": "first-party",+ "palette_cells": {+ "leather": 6,+ "emissive": 6+ },+ "triangles": 24,+ "two_sided": false+ },{"id": "hand_r-wrench","file": "parts/biped/hand_r-wrench.glb",@@ -799,6 +2010,7 @@"scifi"],"hides": [],+ "fits_family": null,"from_base": "office","source": "Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / hand_r-wrench","license": "first-party",@@ -809,6 +2021,54 @@"triangles": 24,"two_sided": false},+ {+ "id": "headgear-antlers",+ "file": "parts/quadruped/headgear-antlers.glb",+ "archetype": "quadruped",+ "slot": "headgear",+ "attach": "head",+ "label": "Antlers",+ "styles": [+ "animal"+ ],+ "hides": [],+ "fits_family": null,+ "from_base": "fox",+ "source": "Personal Jarvis animals (first-party) / headgear-antlers",+ "license": "first-party",+ "palette_cells": {+ "leather": 24+ },+ "triangles": 48,+ "two_sided": false+ },+ {+ "id": "headgear-beanie",+ "file": "parts/biped/headgear-beanie.glb",+ "archetype": "biped",+ "slot": "headgear",+ "attach": "head",+ "label": "Beanie",+ "styles": [+ "modern",+ "cartoon",+ "fantasy"+ ],+ "hides": [+ "hair"+ ],+ "fits_family": "jarvis-biped",+ "from_base": "office",+ "source": "Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / headgear-beanie",+ "license": "first-party",+ "palette_cells": {+ "primary": 6,+ "primary_shade": 6,+ "accent": 6+ },+ "triangles": 36,+ "two_sided": false+ },{"id": "headgear-cap","file": "parts/biped/headgear-cap.glb",@@ -824,6 +2084,7 @@"hides": ["hair"],+ "fits_family": "jarvis-biped","from_base": "office","source": "Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / headgear-cap","license": "first-party",@@ -835,6 +2096,78 @@"triangles": 48,"two_sided": false},+ {+ "id": "headgear-crown",+ "file": "parts/biped/headgear-crown.glb",+ "archetype": "biped",+ "slot": "headgear",+ "attach": "head",+ "label": "Crown",+ "styles": [+ "fantasy",+ "cartoon"+ ],+ "hides": [],+ "fits_family": "jarvis-biped",+ "from_base": "office",+ "source": "Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / headgear-crown",+ "license": "first-party",+ "palette_cells": {+ "accent": 24,+ "emissive": 6+ },+ "triangles": 60,+ "two_sided": false+ },+ {+ "id": "headgear-hardhat",+ "file": "parts/biped/headgear-hardhat.glb",+ "archetype": "biped",+ "slot": "headgear",+ "attach": "head",+ "label": "Hard hat",+ "styles": [+ "modern",+ "scifi"+ ],+ "hides": [+ "hair"+ ],+ "fits_family": "jarvis-biped",+ "from_base": "office",+ "source": "Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / headgear-hardhat",+ "license": "first-party",+ "palette_cells": {+ "accent": 12,+ "primary_shade": 6+ },+ "triangles": 36,+ "two_sided": false+ },+ {+ "id": "headgear-headset",+ "file": "parts/biped/headgear-headset.glb",+ "archetype": "biped",+ "slot": "headgear",+ "attach": "head",+ "label": "Headset",+ "styles": [+ "modern",+ "scifi",+ "cartoon"+ ],+ "hides": [],+ "fits_family": "jarvis-biped",+ "from_base": "office",+ "source": "Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / headgear-headset",+ "license": "first-party",+ "palette_cells": {+ "primary_shade": 12,+ "metal": 12+ },+ "triangles": 48,+ "two_sided": false+ },{"id": "headgear-horned-hat","file": "parts/biped/headgear-horned-hat.glb",@@ -848,6 +2181,7 @@"hides": ["hair"],+ "fits_family": null,"from_base": "barbarian","source": "KayKit Character Pack: Adventurers 1.0 / Barbarian_Hat","license": "CC0-1.0",@@ -872,6 +2206,7 @@"hides": ["hair"],+ "fits_family": null,"from_base": "knight","source": "KayKit Character Pack: Adventurers 1.0 / Knight_Helmet","license": "CC0-1.0",@@ -894,6 +2229,7 @@"hides": ["hair"],+ "fits_family": null,"from_base": "mage","source": "KayKit Character Pack: Adventurers 1.0 / Mage_Hat","license": "CC0-1.0",@@ -904,6 +2240,170 @@},"triangles": 396,"two_sided": false+ },+ {+ "id": "headgear-pet-cap",+ "file": "parts/quadruped/headgear-pet-cap.glb",+ "archetype": "quadruped",+ "slot": "headgear",+ "attach": "head",+ "label": "Cap",+ "styles": [+ "animal"+ ],+ "hides": [],+ "fits_family": null,+ "from_base": "fox",+ "source": "Personal Jarvis animals (first-party) / headgear-pet-cap",+ "license": "first-party",+ "palette_cells": {+ "primary": 6,+ "primary_shade": 6+ },+ "triangles": 24,+ "two_sided": false+ },+ {+ "id": "headgear-space-helmet",+ "file": "parts/biped/headgear-space-helmet.glb",+ "archetype": "biped",+ "slot": "headgear",+ "attach": "head",+ "label": "Space helmet",+ "styles": [+ "scifi"+ ],+ "hides": [+ "hair"+ ],+ "fits_family": "jarvis-biped",+ "from_base": "office",+ "source": "Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / headgear-space-helmet",+ "license": "first-party",+ "palette_cells": {+ "secondary": 6,+ "emissive": 6,+ "metal": 6+ },+ "triangles": 36,+ "two_sided": false+ },+ {+ "id": "headgear-top-hat",+ "file": "parts/biped/headgear-top-hat.glb",+ "archetype": "biped",+ "slot": "headgear",+ "attach": "head",+ "label": "Top hat",+ "styles": [+ "cartoon",+ "modern"+ ],+ "hides": [+ "hair"+ ],+ "fits_family": "jarvis-biped",+ "from_base": "office",+ "source": "Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / headgear-top-hat",+ "license": "first-party",+ "palette_cells": {+ "primary": 12,+ "accent": 6+ },+ "triangles": 36,+ "two_sided": false+ },+ {+ "id": "tail_extra-bow",+ "file": "parts/quadruped/tail_extra-bow.glb",+ "archetype": "quadruped",+ "slot": "tail_extra",+ "attach": "tail_2",+ "label": "Bow",+ "styles": [+ "animal"+ ],+ "hides": [],+ "fits_family": null,+ "from_base": "fox",+ "source": "Personal Jarvis animals (first-party) / tail_extra-bow",+ "license": "first-party",+ "palette_cells": {+ "accent": 18+ },+ "triangles": 36,+ "two_sided": false+ },+ {+ "id": "torso_over-apron",+ "file": "parts/biped/torso_over-apron.glb",+ "archetype": "biped",+ "slot": "torso_over",+ "attach": "chest",+ "label": "Apron",+ "styles": [+ "modern",+ "fantasy",+ "cartoon",+ "scifi"+ ],+ "hides": [],+ "fits_family": null,+ "from_base": "office",+ "source": "Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / torso_over-apron",+ "license": "first-party",+ "palette_cells": {+ "secondary": 18+ },+ "triangles": 36,+ "two_sided": false+ },+ {+ "id": "torso_over-plate",+ "file": "parts/biped/torso_over-plate.glb",+ "archetype": "biped",+ "slot": "torso_over",+ "attach": "chest",+ "label": "Chest plate",+ "styles": [+ "scifi",+ "fantasy"+ ],+ "hides": [],+ "fits_family": null,+ "from_base": "office",+ "source": "Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / torso_over-plate",+ "license": "first-party",+ "palette_cells": {+ "metal": 12,+ "accent": 6+ },+ "triangles": 36,+ "two_sided": false+ },+ {+ "id": "torso_over-vest",+ "file": "parts/biped/torso_over-vest.glb",+ "archetype": "biped",+ "slot": "torso_over",+ "attach": "chest",+ "label": "Vest",+ "styles": [+ "modern",+ "fantasy",+ "scifi",+ "cartoon"+ ],+ "hides": [],+ "fits_family": null,+ "from_base": "office",+ "source": "Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / torso_over-vest",+ "license": "first-party",+ "palette_cells": {+ "leather": 18+ },+ "triangles": 36,+ "two_sided": false}]}diff --git a/jarvis/ui/web/frontend/src/components/society/figures/figureFraming.test.ts b/jarvis/ui/web/frontend/src/components/society/figures/figureFraming.test.tsnew file mode 100644index 0000000000..0b534263e3--- /dev/null+++ b/jarvis/ui/web/frontend/src/components/society/figures/figureFraming.test.ts@@ -0,0 +1,62 @@+/**+ * The figure must fit its box whatever shape the box is. These are the cases+ * that actually went wrong: a wide, short column cropped the legs, and a fox+ * framed by its height alone lost its nose and tail.+ */+import { describe, expect, it } from "vitest";++import { FRAME_MARGIN, frameDistance } from "./figureFraming";++const FOV = 26;++/** Half the world-space height the frustum covers at `distance`. */+function halfHeightAt(distance: number): number {+ return Math.tan(((FOV * Math.PI) / 180) / 2) * distance;+}++function fits(spanM: number, aspect: number, zoom = 1): boolean {+ const distance = frameDistance({ spanM, fovDeg: FOV, aspect, zoom });+ const halfH = halfHeightAt(distance);+ const halfW = halfH * aspect;+ const need = (spanM * 0.5 * FRAME_MARGIN) / zoom;+ // A hair of tolerance for the floating point, not for a real overshoot.+ return halfH >= need - 1e-9 && halfW >= need - 1e-9;+}++describe("the figure fits the frame at any shape of column", () => {+ it.each([+ ["a tall column", 0.6],+ ["a square column", 1.0],+ ["the wide, short column the look editor left", 2.1],+ ["an extremely wide strip", 6.0],+ ])("fits a 1.75 m person in %s", (_name, aspect) => {+ expect(fits(1.75, aspect)).toBe(true);+ });++ it("fits a fox, whose length is its span, in a wide column", () => {+ expect(fits(1.6, 2.1)).toBe(true);+ });++ it("stands further back for a longer figure", () => {+ const person = frameDistance({ spanM: 1.75, fovDeg: FOV, aspect: 1.4, zoom: 1 });+ const giant = frameDistance({ spanM: 2.4, fovDeg: FOV, aspect: 1.4, zoom: 1 });+ expect(giant).toBeGreaterThan(person);+ });++ it("moves closer as the person zooms in, and still returns a real distance", () => {+ const near = frameDistance({ spanM: 1.75, fovDeg: FOV, aspect: 1.4, zoom: 2.4 });+ const far = frameDistance({ spanM: 1.75, fovDeg: FOV, aspect: 1.4, zoom: 0.55 });+ expect(near).toBeLessThan(far);+ expect(near).toBeGreaterThan(0);+ });++ it("survives a canvas measured before layout", () => {+ // R3F reports an aspect of 0 for one frame inside a dialog that mounts+ // mid-animation; a camera at distance 0 sits inside the figure.+ for (const bad of [{ aspect: 0 }, { zoom: 0 }, { spanM: 0 }]) {+ const distance = frameDistance({ spanM: 1.75, fovDeg: FOV, aspect: 1.4, zoom: 1, ...bad });+ expect(Number.isFinite(distance)).toBe(true);+ expect(distance).toBeGreaterThan(0);+ }+ });+});diff --git a/jarvis/ui/web/frontend/src/components/society/figures/figureFraming.ts b/jarvis/ui/web/frontend/src/components/society/figures/figureFraming.tsnew file mode 100644index 0000000000..a19b1af6e5--- /dev/null+++ b/jarvis/ui/web/frontend/src/components/society/figures/figureFraming.ts@@ -0,0 +1,39 @@+/**+ * How far the card's camera stands back from a figure.+ *+ * A fixed multiple of the figure's height only works while the column it+ * renders into is tall. The look editor grew from four rows to nine, the+ * column became wide and short, and the same distance started cutting the+ * legs off. Solving the frustum for the figure's span in BOTH axes does not+ * care what shape the box is — and it is the same maths for a 1.75 m person+ * and a fox that is longer than it is tall.+ */++/** Air around the figure, so the crown and the feet never touch the edge. */+export const FRAME_MARGIN = 1.2;++export interface FrameInput {+ /** The figure's largest rendered extent, in metres. */+ spanM: number;+ /** Vertical field of view, degrees. */+ fovDeg: number;+ /** Viewport width / height. */+ aspect: number;+ /** The person's wheel zoom; larger means closer. */+ zoom: number;+}++/**+ * Distance in metres. Never returns zero or a negative: a canvas measured+ * before layout reports an aspect of 0, and a camera inside the figure is a+ * black frame nobody can recover from by dragging.+ */+export function frameDistance({ spanM, fovDeg, aspect, zoom }: FrameInput): number {+ const half = Math.max(spanM, 0.01) * 0.5 * FRAME_MARGIN;+ const tan = Math.tan(((Math.min(Math.max(fovDeg, 1), 179) * Math.PI) / 180) / 2);+ const safeAspect = aspect > 0 ? aspect : 1;+ const fitVertically = half / tan;+ const fitHorizontally = half / (tan * safeAspect);+ const distance = Math.max(fitVertically, fitHorizontally);+ return distance / (zoom > 0 ? zoom : 1);+}diff --git a/jarvis/ui/web/frontend/src/components/society/figures/figureRegistry.test.ts b/jarvis/ui/web/frontend/src/components/society/figures/figureRegistry.test.tsindex df684ddec1..a6cfae032d 100644--- a/jarvis/ui/web/frontend/src/components/society/figures/figureRegistry.test.ts+++ b/jarvis/ui/web/frontend/src/components/society/figures/figureRegistry.test.ts@@ -23,10 +23,13 @@ import {type CatalogPart,} from "./figureRegistry";-/** Styles that are a lane, not a look: `custom` is the person's own import. */-const IMPORT_ONLY = new Set(["custom"]);+/**+ * Styles that are a lane or a reservation, not a look a person picks:+ * `custom` is their own import, `spirit` is Jarvis and there is one of him.+ */+const NOT_PICKABLE = new Set(["custom", "spirit"]);-const pickableStyles = Object.keys(CATALOG.styles).filter((s) => !IMPORT_ONLY.has(s));+const pickableStyles = Object.keys(CATALOG.styles).filter((s) => !NOT_PICKABLE.has(s));describe("the catalog covers every style the creator shows", () => {it.each(pickableStyles)("%s has at least one base", (style) => {@@ -74,27 +77,80 @@ describe("a part is only ever offered where it fits", () => {}});- it("marks the flat capes two-sided and nothing solid", () => {- const twoSided = CATALOG.parts.filter((p) => p.two_sided).map((p) => p.id);- expect(twoSided.sort()).toEqual(- CATALOG.parts.filter((p) => p.slot === "back" && p.id.endsWith("-cape")).map((p) => p.id).sort(),- );+ /**+ * The point of the wardrobe: a person opening a style finds real choices,+ * not one body and one hat. The floor is deliberately low — it catches a+ * style emptied by a bad rebuild, not a style that is merely small.+ */+ it.each(pickableStyles)("%s offers more than one build", (style) => {+ expect(basesForStyle(style).length).toBeGreaterThan(1);+ });++ it.each(pickableStyles)("%s fills at least three slots for every body it has", (style) => {+ for (const base of basesForStyle(style)) {+ const slots = slotsWithParts(base.archetype, style, base.family ?? null);+ expect(slots.length, `${base.label} (${style})`).toBeGreaterThanOrEqual(3);+ }+ });++ it("never offers a skull-fitted part on a body of another family", () => {+ for (const part of CATALOG.parts.filter((p) => p.fits_family)) {+ for (const style of part.styles) {+ for (const base of basesForStyle(style, part.archetype)) {+ const offered = partsForSlot(part.slot, part.archetype, style, base.family ?? null);+ const listed = offered.some((p) => p.id === part.id);+ expect(listed, `${part.id} on ${base.label}`).toBe(part.fits_family === base.family);+ }+ }+ }+ });++ it("renders every hanging cloth from both sides, and nothing solid", () => {+ // A cape or a cloak is one open sheet with no inside; front-side-only it+ // vanishes when the wearer turns. Nothing with a volume needs the cost.+ const cloth = CATALOG.parts.filter((p) => /-(cape|cloak)$/.test(p.id));+ expect(cloth.length).toBeGreaterThan(0);+ for (const part of cloth) {+ expect(part.two_sided, part.id).toBe(true);+ expect(part.slot, part.id).toBe("back");+ }+ for (const part of CATALOG.parts.filter((p) => p.two_sided)) {+ expect(part.slot, part.id).toBe("back");+ }});});describe("switching style or base never leaves a stranded part", () => {- const capeOf = (style: string): CatalogPart | undefined =>- CATALOG.parts.find((p) => p.slot === "back" && p.styles.includes(style));+ /** A back piece that belongs to `style` and to nothing else — the clean case. */+ const exclusiveBack = (style: string): CatalogPart | undefined =>+ CATALOG.parts.find(+ (p) => p.slot === "back" && p.archetype === "biped" && p.styles.join() === style,+ );it("keeps a part the new style still offers", () => {- const cape = capeOf("fantasy");+ const cape = exclusiveBack("fantasy");expect(cape).toBeDefined();const kept = keepablePartsFor({ back: cape!.id }, "biped", "fantasy");expect(kept).toEqual({ back: cape!.id });});+ it("drops a hat the new body cannot wear, even inside one style", () => {+ // Fantasy holds two skull families; a hat cut for one must not survive a+ // move to the other, which the style tag alone would let through.+ const hat = CATALOG.parts.find((p) => p.slot === "headgear" && p.fits_family);+ expect(hat).toBeDefined();+ const other = CATALOG.bases.find(+ (b) => b.archetype === hat!.archetype && b.family !== hat!.fits_family,+ );+ expect(other).toBeDefined();+ expect(keepablePartsFor({ headgear: hat!.id }, hat!.archetype, null, other!.family ?? null)).toEqual({});+ expect(keepablePartsFor({ headgear: hat!.id }, hat!.archetype, null, hat!.fits_family!)).toEqual({+ headgear: hat!.id,+ });+ });+it("drops a part the new style does not offer", () => {- const cape = capeOf("fantasy")!;+ const cape = exclusiveBack("fantasy")!;expect(cape.styles).not.toContain("scifi");expect(keepablePartsFor({ back: cape.id }, "biped", "scifi")).toEqual({});});diff --git a/jarvis/ui/web/frontend/src/components/society/figures/figureRegistry.ts b/jarvis/ui/web/frontend/src/components/society/figures/figureRegistry.tsindex 90a58a4a19..bdc804a457 100644--- a/jarvis/ui/web/frontend/src/components/society/figures/figureRegistry.ts+++ b/jarvis/ui/web/frontend/src/components/society/figures/figureRegistry.ts@@ -28,6 +28,18 @@ export interface CatalogBase {triangles: number;clips: string[];height_m: number;+ /**+ * Which wardrobe fits this body. A cap cut for one crown exposes the top of+ * a wider head, and two bodies of different families now share a style, so+ * the style tag alone can no longer keep them apart.+ */+ family?: string;+ /**+ * The file this base borrows its animation from, beside it in the same+ * folder. Nine clips of a 23-bone rig outweigh a procedural body five to+ * one, so every look built on one rig shares a single copy.+ */+ clipsFrom?: string;}export interface CatalogPart {@@ -46,6 +58,12 @@ export interface CatalogPart {triangles: number;/** Flat cloth (a cape) has no back face of its own; the runtime renders it from both sides. */two_sided?: boolean;+ /**+ * Set when the piece is measured against one body family — a hat, a pair of+ * glasses. Null on anything that hangs off `chest`, `hips` or a handslot,+ * which every biped of the rig places identically.+ */+ fits_family?: string | null;}export interface FigureCatalog {@@ -77,6 +95,8 @@ const LEGACY_BASES: Record<string, string> = { medium: "rogue", small: "rogue",export interface FigureAsset {url: string;+ /** Where the clips live, when the base does not carry its own. */+ clipsUrl: string | null;archetype: FigureArchetype;base: string;defaultHeightM: number;@@ -113,6 +133,7 @@ export function figureAssetFor(if (recipe.model) {return {url: recipe.model,+ clipsUrl: null,archetype: recipe.archetype,base: recipe.base,defaultHeightM: recipe.heightM ?? 1.75,@@ -126,6 +147,7 @@ export function figureAssetFor(if (!url) return null;return {url,+ clipsUrl: entry.clipsFrom ? urlForFile(entry.clipsFrom) : null,archetype: entry.archetype,base: entry.base,defaultHeightM: entry.heightM,@@ -164,6 +186,16 @@ export function partAssetsFor(.filter((p) => !archetype || p.part.archetype === archetype);}+/**+ * Styles nobody creates into, whatever the catalog holds.+ *+ * `spirit` is Jarvis. There is one of him, he stands on the map, and the+ * base stays in the catalog so his card and his walker still render — but a+ * style with a cast of one is a label, not a choice, so the creator does not+ * offer it (maintainer, 2026-09-02).+ */+const RESERVED_STYLES = new Set(["spirit"]);+/*** Styles that have at least one base today, in catalog order; the creator* disables the rest. `custom` is the import lane and never appears here — it@@ -172,7 +204,12 @@ export function partAssetsFor(*/export function stylesWithBases(): string[] {const live = new Set(CATALOG.bases.flatMap((b) => b.styles));- return Object.keys(CATALOG.styles).filter((s) => live.has(s));+ return Object.keys(CATALOG.styles).filter((s) => live.has(s) && !RESERVED_STYLES.has(s));+}++/** True for a style the creator never lists — reserved, or the import lane. */+export function isReservedStyle(style: string): boolean {+ return RESERVED_STYLES.has(style);}/**@@ -190,22 +227,37 @@ export function partsForSlot(slot: string,archetype: FigureArchetype = "biped",style: string | null = null,+ family: string | null = null,): CatalogPart[] {return CATALOG.parts.filter(- (p) => p.archetype === archetype && p.slot === slot && (!style || p.styles.includes(style)),+ (p) =>+ p.archetype === archetype &&+ p.slot === slot &&+ (!style || p.styles.includes(style)) &&+ fitsFamily(p, family),);}+/** A part with no family fits every body of its archetype; one with a family fits only that family. */+export function fitsFamily(part: CatalogPart, family: string | null): boolean {+ return !part.fits_family || !family || part.fits_family === family;+}+/*** Slots that hold at least one part for this archetype AND style, in the* order the catalog lists them. A slot with nothing to offer is not a row of* one "None" button — it is not a row at all.*/-export function slotsWithParts(archetype: FigureArchetype = "biped", style: string | null = null): string[] {+export function slotsWithParts(+ archetype: FigureArchetype = "biped",+ style: string | null = null,+ family: string | null = null,+): string[] {const seen: string[] = [];for (const p of CATALOG.parts) {if (p.archetype !== archetype) continue;if (style && !p.styles.includes(style)) continue;+ if (!fitsFamily(p, family)) continue;if (!seen.includes(p.slot)) seen.push(p.slot);}return seen;@@ -220,12 +272,14 @@ export function keepablePartsFor(parts: Record<string, string>,archetype: FigureArchetype,style: string | null,+ family: string | null = null,): Record<string, string> {const kept: Record<string, string> = {};for (const [slot, id] of Object.entries(parts ?? {})) {const part = CATALOG.parts.find((p) => p.id === id);if (!part || part.archetype !== archetype || part.slot !== slot) continue;if (style && !part.styles.includes(style)) continue;+ if (!fitsFamily(part, family)) continue;kept[slot] = id;}return kept;diff --git a/jarvis/ui/web/frontend/src/components/society/figures/useFigureAssets.ts b/jarvis/ui/web/frontend/src/components/society/figures/useFigureAssets.tsindex 0af104f4e3..198f85b8e3 100644--- a/jarvis/ui/web/frontend/src/components/society/figures/useFigureAssets.ts+++ b/jarvis/ui/web/frontend/src/components/society/figures/useFigureAssets.ts@@ -13,23 +13,37 @@ export interface LoadedFigureAssets {base: LoadedGltf;parts: Array<{ gltf: LoadedGltf; part: CatalogPart }>;defaultHeightM: number;+ /**+ * The clips a body borrows, when it ships none of its own. Every look built+ * on one rig shares a single copy — the base file would otherwise be five+ * parts animation to one part geometry — and three.js binds a clip by node+ * name, so the same clip drives every body of that rig.+ */+ clips: LoadedGltf | null;}-export function figureUrls(recipe: FigureRecipe): { base: string; parts: ReturnType<typeof partAssetsFor> } | null {+export function figureUrls(+ recipe: FigureRecipe,+): { base: string; clips: string | null; parts: ReturnType<typeof partAssetsFor> } | null {const asset = figureAssetFor(recipe);if (!asset) return null;- return { base: asset.url, parts: partAssetsFor(recipe) };+ return { base: asset.url, clips: asset.clipsUrl, parts: partAssetsFor(recipe) };}/** Suspends. Call only when `figureAssetFor(recipe)` is non-null. */export function useFigureAssets(recipe: FigureRecipe): LoadedFigureAssets {const asset = figureAssetFor(recipe);const parts = partAssetsFor(recipe);- const urls = [asset?.url ?? "", ...parts.map((p) => p.url)].filter(Boolean);+ const clipsUrl = asset?.clipsUrl ?? null;+ const urls = [asset?.url ?? "", ...(clipsUrl ? [clipsUrl] : []), ...parts.map((p) => p.url)].filter(+ Boolean,+ );const loaded = useGLTF(urls) as unknown as LoadedGltf[];+ const partsAt = clipsUrl ? 2 : 1;return {base: loaded[0],- parts: parts.map((p, i) => ({ gltf: loaded[i + 1], part: p.part })),+ clips: clipsUrl ? loaded[1] : null,+ parts: parts.map((p, i) => ({ gltf: loaded[i + partsAt], part: p.part })),defaultHeightM: asset?.defaultHeightM ?? 1.75,};}@@ -41,6 +55,7 @@ export function preloadFigureAssets(recipes: Array<FigureRecipe | null>): void {const urls = figureUrls(recipe);if (!urls) continue;useGLTF.preload(urls.base);+ if (urls.clips) useGLTF.preload(urls.clips);for (const p of urls.parts) useGLTF.preload(p.url);}}diff --git a/scripts/ci/check_society_figures.py b/scripts/ci/check_society_figures.pyindex ebaac8d7a4..a989fc8ba8 100644--- a/scripts/ci/check_society_figures.py+++ b/scripts/ci/check_society_figures.py@@ -91,9 +91,12 @@ def check_file(# 1 — extrasfigure = gt.figure_extras(doc)part = gt.part_extras(doc)- extras = figure or part+ library = gt.clips_extras(doc)+ extras = figure or part or libraryif extras is None:- return ["no asset.extras.jarvis_figure / jarvis_part block (contract §4.2)"]+ return [+ "no asset.extras.jarvis_figure / jarvis_part / jarvis_clips block (contract §4.2)"+ ]if extras.get("contract") != contract["contract"]:problems.append(f"contract version {extras.get('contract')!r} != {contract['contract']}")archetype_name = extras.get("archetype")@@ -256,7 +259,30 @@ def check_file(by_name = {a.get("name"): a for a in anims}if part and anims:problems.append(f"part carries {len(anims)} animations; parts have none")- if figure:+ borrowed = figure.get("clips_from") if figure else None+ if borrowed:+ # The body ships no clips of its own; the library it names must exist,+ # sit beside it, and be a library for the same archetype.+ if anims:+ problems.append(f"figure borrows clips from {borrowed!r} but also carries {len(anims)}")+ lib_path = path.parent / borrowed+ if not lib_path.exists():+ problems.append(f"clips_from {borrowed!r} is not beside this file")+ else:+ try:+ lib = gt.clips_extras(gt.read_glb(lib_path).doc)+ except (ValueError, OSError) as exc:+ lib = None+ problems.append(f"clips_from {borrowed!r} unreadable: {exc}")+ if lib is not None and lib.get("archetype") != archetype_name:+ problems.append(+ f"clips_from {borrowed!r} is a {lib.get('archetype')!r} library, "+ f"not {archetype_name!r}"+ )+ missing = set(archetype["clips"]) - set(figure.get("clips", {}))+ if missing:+ problems.append(f"extras.clips is missing facts for {sorted(missing)}")+ if (figure and not borrowed) or library:for clip, spec in archetype["clips"].items():anim = by_name.get(clip)if anim is None:@@ -301,7 +327,8 @@ def check_file()breakif spec.get("stride"):- recorded = float(figure.get("clips", {}).get(clip, {}).get("stride_m", 0) or 0)+ facts = (figure or library).get("clips", {})+ recorded = float(facts.get(clip, {}).get("stride_m", 0) or 0)measured = gt.measure_stride(glb, anim, archetype["feet"])if recorded <= 0:problems.append(f"clip {clip!r} has no stride_m in extras")diff --git a/scripts/figures/build_figures.py b/scripts/figures/build_figures.pyindex 3b19b02b42..4e1d297416 100644--- a/scripts/figures/build_figures.py+++ b/scripts/figures/build_figures.py@@ -472,8 +472,19 @@ def finish_common(glb: gt.Glb, two_sided: bool = False) -> gt.Glb:def finish_base(- glb_path: Path, target: dict, source: dict, archetype: dict, uv_report: dict+ glb_path: Path,+ target: dict,+ source: dict,+ archetype: dict,+ uv_report: dict,+ borrowed: dict | None = None,) -> dict:+ """Write a base's extras. `borrowed` = the clip facts of a shared library.++ A body that borrows its clips carries no animation of its own, so the+ facts the runtime needs — duration, loop, stride — are copied from the+ library and the file it came from is named in `clips_from`.+ """glb = finish_common(gt.read_glb(glb_path))doc = glb.docskinned = gt.skinned_mesh_nodes(doc)@@ -486,7 +497,7 @@ def finish_base(lo = [min(a, b) for a, b in zip(lo, mlo, strict=True)]hi = [max(a, b) for a, b in zip(hi, mhi, strict=True)]tris += gt.triangle_count(doc, mesh)- clips: dict[str, dict] = {}+ clips: dict[str, dict] = dict(borrowed["clips"]) if borrowed else {}for name, spec in archetype["clips"].items():anim = gt.clip_by_name(doc, name)if anim is None:@@ -511,6 +522,8 @@ def finish_base("hair_primitive": bool(uv_report["hair_faces"]),"source": f"{source['name']} ({source['license']}) / {target['character']}",}+ if borrowed:+ extras["clips_from"] = borrowed["file"]doc.setdefault("asset", {})["extras"] = {"jarvis_figure": extras}doc["asset"]["generator"] = "Personal Jarvis build_figures.py"gt.write_glb(glb_path, doc, glb.blob)@@ -631,6 +644,7 @@ def build_target(target: dict, out_dir: Path, ledger: Path) -> tuple[dict, list["styles": target.get("styles", []),"heightM": archetype["variants"][target["variant"]]["height_m"],"palette": character["default_palette"],+ "family": source.get("family", source_slug(source)),"source": f"{source['name']} / {target['character']}","license": source["license"],**facts,@@ -669,6 +683,7 @@ def build_target(target: dict, out_dir: Path, ledger: Path) -> tuple[dict, list["label": spec["label"],"styles": spec.get("styles", []),"hides": spec.get("hides", []),+ "fits_family": spec.get("fits_family"),"from_base": target["base"],"source": f"{source['name']} / {spec['object']}","license": source["license"],@@ -690,6 +705,13 @@ def build_procedural_quadruped(import quadruped_builder # noqa: PLC0415 — Blender-only module beside this filelog(f"building {target['id']} procedurally")++ def make_rig():+ reset_scene()+ bpy.context.scene.render.fps = quadruped_builder.FPS+ return quadruped_builder.build_rig_with_clips()++ borrowed = ensure_clip_library(source, archetype, out_dir, make_rig)reset_scene()bpy.context.scene.render.fps = quadruped_builder.FPScharacter = source["characters"][target["character"]]@@ -700,16 +722,12 @@ def build_procedural_quadruped(character["shape"], CONTRACT["sheet"], img, sheet_material)apply_materials(body, img, target["id"], uv_report["hair_faces"])- for name, spec in archetype["clips"].items():- action = bpy.data.actions.get(name)- if action is not None:- normalize_clip(action, spec["loop"])fwd = add_forward_marker(arm)out_dir.mkdir(parents=True, exist_ok=True)base_path = out_dir / f"{target['id']}.glb"- export_glb(base_path, [body, arm, fwd], animations=True)- facts = finish_base(base_path, target, source, archetype, uv_report)+ export_glb(base_path, [body, arm, fwd], animations=False)+ facts = finish_base(base_path, target, source, archetype, uv_report, borrowed=borrowed)entry = {"id": f"{target['archetype']}/{target['base']}","file": base_path.name,@@ -720,6 +738,8 @@ def build_procedural_quadruped("styles": target.get("styles", []),"heightM": archetype["variants"][target["variant"]]["height_m"],"palette": character["default_palette"],+ "family": source.get("family", source_slug(source)),+ "clipsFrom": borrowed["file"],"source": f"{source['name']} / {target['character']}","license": source["license"],"note": (@@ -757,6 +777,7 @@ def build_procedural_quadruped("label": spec["label"],"styles": spec.get("styles", []),"hides": spec.get("hides", []),+ "fits_family": spec.get("fits_family"),"from_base": target["base"],"source": f"{source['name']} / {part_id}","license": source["license"],@@ -796,6 +817,7 @@ def build_procedural_gigi("styles": target.get("styles", []),"heightM": archetype["variants"][target["variant"]]["height_m"],"palette": character["default_palette"],+ "family": source.get("family", source_slug(source)),"source": f"{source['name']} / {target['character']}","license": source["license"],**facts,@@ -803,6 +825,92 @@ def build_procedural_gigi(return entry, []+def normalize_donor_rig(source: dict, archetype: dict) -> bpy.types.Object:+ """Import the CC0 donor, keep its skeleton and clips, drop every mesh it ships.++ Shared by the clip library and by every body built on that rig, so the two+ can never drift: the bones a body is weighted to are the bones the clips+ animate, because both came out of this function.+ """+ rig = load_source(source["rig_source"])+ rig_file = fetch_source_file(rig, f"{source['rig_character']}.glb")+ reset_scene()+ import_glb(rig_file, int(rig.get("fps", 30)))+ arm = find_armature()+ keep_objects(arm, set())+ dropped = drop_bones(arm, rig["drop_bone_patterns"])+ log(f"dropped {len(dropped)} control bones")+ rename_bones(arm, rig["bone_map"], archetype["bones"])+ kept = filter_clips(rig["clip_map"], archetype["clips"])+ for name, action in kept.items():+ normalize_clip(action, archetype["clips"][name]["loop"])+ return arm+++def clip_library_path(source: dict, out_dir: Path) -> Path:+ return out_dir / source["clip_library"]+++def build_clip_library(source: dict, archetype: dict, out_dir: Path, make_rig) -> dict:+ """The nine clips of one rig, once, in a file with no body.++ Nine clips of 23 bones are ~200 KB — five times a procedural body's+ geometry — so shipping a copy inside every look would make a new look cost+ 240 KB instead of 40 KB, and rewrite all of them on every rebuild. The+ bodies name this file in `extras.clips_from`; three.js binds a clip by node+ name, and every body of this rig has those nodes.+ """+ arm = make_rig()+ out_dir.mkdir(parents=True, exist_ok=True)+ path = clip_library_path(source, out_dir)+ export_glb(path, [arm], animations=True)++ glb = finish_common(gt.read_glb(path))+ doc = glb.doc+ clips: dict[str, dict] = {}+ for name, spec in archetype["clips"].items():+ anim = gt.clip_by_name(doc, name)+ if anim is None:+ raise SystemExit(f"clip library is missing {name!r}")+ entry: dict = {+ "duration": round(gt.clip_duration(glb, anim), 4),+ "loop": bool(spec["loop"]),+ }+ if spec.get("stride"):+ entry["stride_m"] = round(gt.measure_stride(glb, anim, archetype["feet"]), 4)+ clips[name] = entry+ doc.setdefault("asset", {})["extras"] = {+ "jarvis_clips": {+ "contract": CONTRACT["contract"],+ "archetype": source["clip_archetype"],+ "clips": clips,+ "source": clip_source_credit(source),+ }+ }+ doc["asset"]["generator"] = "Personal Jarvis build_figures.py"+ gt.write_glb(path, doc, glb.blob)+ log(f"clip library {path.name}: {path.stat().st_size // 1024} KB, clips {sorted(clips)}")+ return {"file": path.name, "clips": clips}+++def clip_source_credit(source: dict) -> str:+ """Who the clips came from — a CC0 donor, or this repo."""+ if not source.get("rig_source"):+ return f"{source['name']} ({source['license']}) / written by script"+ rig = load_source(source["rig_source"])+ return f"{rig['name']} ({rig['license']}) / {source['rig_character']}"+++def ensure_clip_library(source: dict, archetype: dict, out_dir: Path, make_rig) -> dict:+ """Build the library if it is not beside the bodies yet, else read its facts."""+ path = clip_library_path(source, out_dir)+ if path.exists():+ facts = gt.clips_extras(gt.read_glb(path).doc)+ if facts and facts.get("contract") == CONTRACT["contract"]:+ return {"file": path.name, "clips": facts["clips"]}+ return build_clip_library(source, archetype, out_dir, make_rig)++def build_procedural_humanoid(target: dict, source: dict, archetype: dict, out_dir: Path) -> tuple[dict, list[dict]]:@@ -816,19 +924,11 @@ def build_procedural_humanoid(rig = load_source(source["rig_source"])character = source["characters"][target["character"]]- rig_file = fetch_source_file(rig, f"{source['rig_character']}.glb")+ borrowed = ensure_clip_library(+ source, archetype, out_dir, lambda: normalize_donor_rig(source, archetype)+ )log(f"building {target['id']} procedurally on the {source['rig_character']} rig")-- reset_scene()- import_glb(rig_file, int(rig.get("fps", 30)))- arm = find_armature()- keep_objects(arm, set()) # the donor's own meshes go; the rig and clips stay- dropped = drop_bones(arm, rig["drop_bone_patterns"])- log(f"dropped {len(dropped)} control bones")- rename_bones(arm, rig["bone_map"], archetype["bones"])- kept = filter_clips(rig["clip_map"], archetype["clips"])- for name, action in kept.items():- normalize_clip(action, archetype["clips"][name]["loop"])+ arm = normalize_donor_rig(source, archetype)sheet_path = CACHE / f"{target['id']}-sheet.png"write_sheet(sheet_path, character["default_palette"])@@ -841,8 +941,8 @@ def build_procedural_humanoid(out_dir.mkdir(parents=True, exist_ok=True)base_path = out_dir / f"{target['id']}.glb"- export_glb(base_path, [body, arm, fwd], animations=True)- facts = finish_base(base_path, target, source, archetype, uv_report)+ export_glb(base_path, [body, arm, fwd], animations=False)+ facts = finish_base(base_path, target, source, archetype, uv_report, borrowed=borrowed)entry = {"id": f"{target['archetype']}/{target['base']}","file": base_path.name,@@ -853,6 +953,8 @@ def build_procedural_humanoid("styles": target.get("styles", []),"heightM": archetype["variants"][target["variant"]]["height_m"],"palette": character["default_palette"],+ "family": source.get("family", source_slug(source)),+ "clipsFrom": borrowed["file"],"source": f"{source['name']} / {target['character']}","license": source["license"],"note": (@@ -894,6 +996,7 @@ def build_procedural_humanoid("label": spec["label"],"styles": spec.get("styles", []),"hides": spec.get("hides", []),+ "fits_family": spec.get("fits_family"),"from_base": target["base"],"source": f"{source['name']} / {part_id}","license": source["license"],@@ -905,7 +1008,11 @@ def build_procedural_humanoid(def write_ledger(- path: Path, bases: list[dict], parts: list[dict], sources: dict[str, dict]+ path: Path,+ bases: list[dict],+ parts: list[dict],+ sources: dict[str, dict],+ libraries: list[dict],) -> None:lines = ["# Figure assets — provenance ledger",@@ -928,6 +1035,12 @@ def write_ledger(lines.append(f"| `{b['file']}` | {b['source']} | {b['license']} | {b.get('note') or imported_note} |")+ for lib in libraries:+ lines.append(+ f"| `{lib['file']}` | {lib['source']} | {lib['license']} | rig imported, IK/control "+ "bones dropped, 23 deform bones renamed; clips kept/renamed, root XZ zeroed, loops "+ "closed; every donor mesh deleted — clips only, borrowed by the bodies of this rig |"+ )for p in parts:lines.append(f"| `{p['file'].split('/')[-1]}` | {p['source']} | {p['license']} | unparented at "@@ -983,11 +1096,28 @@ def main() -> None:catalog["bases"] = sorted(bases.values(), key=lambda b: b["id"])catalog["parts"] = sorted(parts.values(), key=lambda p: p["id"])sources = {t["source"]: load_source(t["source"]) for t in CONTRACT["targets"]}- write_ledger(ledger, catalog["bases"], catalog["parts"], sources)+ # Every clip library a shipped base borrows from, whether this run built it+ # or found it already beside the bodies.+ libraries = []+ for src in sources.values():+ if not src.get("clip_library"):+ continue+ rig = load_source(src["rig_source"]) if src.get("rig_source") else src+ libraries.append(+ {+ "file": src["clip_library"],+ "source": f"{clip_source_credit(src)} — rig and clips only",+ "license": rig["license"],+ }+ )+ write_ledger(ledger, catalog["bases"], catalog["parts"], sources, libraries)CATALOG_PATH.write_text(json.dumps(catalog, indent=2) + "\n", encoding="utf-8")log(f"catalog: {len(catalog['bases'])} bases, {len(catalog['parts'])} parts")# The gate runs last, against the regenerated ledger.+ for lib in libraries:+ if (out_dir / lib["file"]).exists():+ run_gate(out_dir / lib["file"], ledger)for b in built_bases:run_gate(out_dir / b["file"], ledger)for p in built_parts:diff --git a/scripts/figures/contract.json b/scripts/figures/contract.jsonindex 60ef0dd53e..c1227e3b35 100644--- a/scripts/figures/contract.json+++ b/scripts/figures/contract.json@@ -476,6 +476,138 @@"scifi"]},+ {+ "id": "biped-worker",+ "archetype": "biped",+ "variant": "medium",+ "base": "worker",+ "source": "jarvis-humanoids",+ "character": "Worker",+ "label": "Worker",+ "styles": [+ "modern"+ ]+ },+ {+ "id": "biped-athlete",+ "archetype": "biped",+ "variant": "medium",+ "base": "athlete",+ "source": "jarvis-humanoids",+ "character": "Athlete",+ "label": "Athlete",+ "styles": [+ "modern"+ ]+ },+ {+ "id": "biped-medic",+ "archetype": "biped",+ "variant": "medium",+ "base": "medic",+ "source": "jarvis-humanoids",+ "character": "Medic",+ "label": "Medic",+ "styles": [+ "modern"+ ]+ },+ {+ "id": "biped-toon",+ "archetype": "biped",+ "variant": "medium",+ "base": "toon",+ "source": "jarvis-humanoids",+ "character": "Toon",+ "label": "Toon",+ "styles": [+ "cartoon"+ ]+ },+ {+ "id": "biped-blockhead",+ "archetype": "biped",+ "variant": "medium",+ "base": "blockhead",+ "source": "jarvis-humanoids",+ "character": "Blockhead",+ "label": "Blockhead",+ "styles": [+ "cartoon"+ ]+ },+ {+ "id": "biped-pilot",+ "archetype": "biped",+ "variant": "medium",+ "base": "pilot",+ "source": "jarvis-humanoids",+ "character": "Pilot",+ "label": "Pilot",+ "styles": [+ "scifi"+ ]+ },+ {+ "id": "biped-trooper",+ "archetype": "biped",+ "variant": "medium",+ "base": "trooper",+ "source": "jarvis-humanoids",+ "character": "Trooper",+ "label": "Trooper",+ "styles": [+ "scifi"+ ]+ },+ {+ "id": "biped-scientist",+ "archetype": "biped",+ "variant": "medium",+ "base": "scientist",+ "source": "jarvis-humanoids",+ "character": "Scientist",+ "label": "Scientist",+ "styles": [+ "scifi"+ ]+ },+ {+ "id": "biped-dwarf",+ "archetype": "biped",+ "variant": "medium",+ "base": "dwarf",+ "source": "jarvis-humanoids",+ "character": "Dwarf",+ "label": "Dwarf",+ "styles": [+ "fantasy"+ ]+ },+ {+ "id": "biped-elf",+ "archetype": "biped",+ "variant": "medium",+ "base": "elf",+ "source": "jarvis-humanoids",+ "character": "Elf",+ "label": "Elf",+ "styles": [+ "fantasy"+ ]+ },+ {+ "id": "biped-monk",+ "archetype": "biped",+ "variant": "medium",+ "base": "monk",+ "source": "jarvis-humanoids",+ "character": "Monk",+ "label": "Monk",+ "styles": [+ "fantasy"+ ]+ },{"id": "quadruped-fox","archetype": "quadruped",@@ -488,6 +620,66 @@"animal"]},+ {+ "id": "quadruped-cat",+ "archetype": "quadruped",+ "variant": "default",+ "base": "cat",+ "source": "jarvis-animals",+ "character": "Cat",+ "label": "Cat",+ "styles": [+ "animal"+ ]+ },+ {+ "id": "quadruped-dog",+ "archetype": "quadruped",+ "variant": "default",+ "base": "dog",+ "source": "jarvis-animals",+ "character": "Dog",+ "label": "Dog",+ "styles": [+ "animal"+ ]+ },+ {+ "id": "quadruped-wolf",+ "archetype": "quadruped",+ "variant": "default",+ "base": "wolf",+ "source": "jarvis-animals",+ "character": "Wolf",+ "label": "Wolf",+ "styles": [+ "animal"+ ]+ },+ {+ "id": "quadruped-rabbit",+ "archetype": "quadruped",+ "variant": "default",+ "base": "rabbit",+ "source": "jarvis-animals",+ "character": "Rabbit",+ "label": "Rabbit",+ "styles": [+ "animal"+ ]+ },+ {+ "id": "quadruped-bear",+ "archetype": "quadruped",+ "variant": "default",+ "base": "bear",+ "source": "jarvis-animals",+ "character": "Bear",+ "label": "Bear",+ "styles": [+ "animal"+ ]+ },{"id": "spirit-gigi","archetype": "spirit",diff --git a/scripts/figures/glb_tools.py b/scripts/figures/glb_tools.pyindex b08557230c..5ca2da0a83 100644--- a/scripts/figures/glb_tools.py+++ b/scripts/figures/glb_tools.py@@ -627,5 +627,15 @@ def figure_extras(doc: dict) -> dict | None:return (doc.get("asset", {}).get("extras") or {}).get("jarvis_figure")+def clips_extras(doc: dict) -> dict | None:+ """A clip library: an archetype's skeleton and its clips, with no body.++ Nine clips of a 23-bone rig are 200 KB — five times the geometry of a+ procedural body. Shipping them once and letting every body of that rig+ borrow them is what makes a new look cost 40 KB instead of 240 KB.+ """+ return (doc.get("asset", {}).get("extras") or {}).get("jarvis_clips")++def part_extras(doc: dict) -> dict | None:return (doc.get("asset", {}).get("extras") or {}).get("jarvis_part")diff --git a/scripts/figures/humanoid_builder.py b/scripts/figures/humanoid_builder.pyindex 8d8a2cf036..d261b744de 100644--- a/scripts/figures/humanoid_builder.py+++ b/scripts/figures/humanoid_builder.py@@ -75,7 +75,11 @@ LANDMARKS = {@dataclass(frozen=True)class Profile:- """Everything one look decides. The rig decides the rest."""+ """Everything one look decides. The rig decides the rest.++ Adding a look is adding an entry to `PROFILES` — no geometry, no export+ step, ~45 KB of file, because the clips live in the shared library.+ """#: How far the head reaches DOWN from `HEAD_TOP`; the width is shared.head_h: float = 0.78@@ -96,43 +100,100 @@ class Profile:torso_d: float = 0.20arm_r: float = 0.105leg_r: float = 0.125- # features+ #: One multiplier on every width: a trooper is not a scientist.+ bulk: float = 1.0+ # --- head ---hair: bool = Truehair_long: bool = False- hood: bool = False- tie: bool = False+ #: A beard is NOT part of the hidable hair primitive — a helmet covers the+ #: skull, not the chin.+ beard: bool = False+ pointed_ears: bool = False+ goggles: bool = False+ headband: bool = Falsevisor: bool = Falseantenna: bool = False+ # --- torso ---+ hood: bool = False+ tie: bool = Falsepocket: bool = False+ #: The bib and straps of a pair of overalls.+ bib: bool = False+ #: A work apron down the front.+ apron: bool = False+ #: Two long panels down the sides — a lab coat, a duster.+ coat: bool = False+ #: A ring of cloth at the neck.+ scarf: bool = False+ #: Armour pads over the shoulders.+ shoulders: bool = False+ # --- limbs ---+ #: Bare arms from the shoulder down.+ sleeveless: bool = False+ #: Hands in their own cell instead of bare.+ glove_cell: str | None = None+ #: Boots climb the shin; shoes stop at the ankle.+ boots: bool = False+ #: One skirt from the hips down instead of two trouser legs.+ robe: bool = False#: Cells that belong to the hidable hair primitive.hair_cells: tuple[str, ...] = field(default=("hair",))PROFILES: dict[str, Profile] = {+ # ---- modern -------------------------------------------------------------# An everyday person in a shirt: the plain silhouette every other look# departs from, and the one the "modern" style was missing entirely.- "office": Profile(tie=True, sleeve_cell="primary", leg_cell="secondary"),+ "office": Profile(tie=True),# Same body, softer clothes: a hood behind the head reads at 20 px where a# drawstring does not.- "casual": Profile(- head_h=0.80,- hair_long=True,- hood=True,- pocket=True,- sleeve_cell="primary",+ "casual": Profile(head_h=0.80, hair_long=True, hood=True, pocket=True),+ # Overalls over a work shirt, gloves and boots.+ "worker": Profile(+ head_h=0.76,+ bulk=1.12,+ bib=True,+ beard=True,+ boots=True,+ glove_cell="leather",leg_cell="secondary",),+ # Bare arms, shorts, a headband: the silhouette does the talking.+ "athlete": Profile(+ head_h=0.76,+ bulk=0.92,+ sleeveless=True,+ headband=True,+ shoe_cell="secondary",+ ),+ # A long coat over the shirt, gloves, short hair.+ "medic": Profile(coat=True, glove_cell="secondary", tie=False, pocket=True),+ # ---- cartoon ------------------------------------------------------------# Kart-racer proportions: the head is nearly half the figure, the eyes are# a third of the face, and the body is a stub under it.- "chibi": Profile(- head_h=1.06,- eye_w=0.13,- eye_h=0.24,- torso_w=0.27,- arm_r=0.115,- leg_r=0.135,- hair=True,+ "chibi": Profile(head_h=1.06, eye_w=0.13, eye_h=0.24, torso_w=0.27, bulk=1.1),+ # Rubber-hose cartoon: enormous eyes, white gloves, boots too big for it.+ "toon": Profile(+ head_h=1.14,+ eye_w=0.16,+ eye_h=0.30,+ bulk=0.95,+ glove_cell="secondary",+ boots=True,+ shoe_cell="shoes",+ ),+ # All corners and no neck; two dots for eyes.+ "blockhead": Profile(+ head_h=0.92,+ eye_w=0.05,+ eye_h=0.07,+ bulk=1.3,+ torso_w=0.33,+ torso_d=0.23,+ hair=False,+ scarf=True,),+ # ---- sci-fi -------------------------------------------------------------# No skin, no hair: a metal shell with a lit visor and a panelled chest."android": Profile(head_h=0.70,@@ -147,6 +208,73 @@ PROFILES: dict[str, Profile] = {visor=True,antenna=True,),+ # A flight suit under a visored helmet, with shoulder rigs and boots.+ "pilot": Profile(+ head_h=0.74,+ visor=True,+ hair=False,+ shoulders=True,+ boots=True,+ glove_cell="leather",+ belt_cell="accent",+ shoe_cell="primary_shade",+ ),+ # Heavy plate: wide shoulders, a slab of chest, nothing human showing.+ "trooper": Profile(+ head_h=0.72,+ bulk=1.32,+ torso_w=0.33,+ torso_d=0.22,+ head_cell="secondary",+ torso_cell="secondary",+ leg_cell="secondary_shade",+ sleeve_cell="secondary",+ limb_cell="secondary_shade",+ glove_cell="metal",+ shoe_cell="metal",+ belt_cell="metal",+ hair=False,+ visor=True,+ shoulders=True,+ boots=True,+ ),+ # A lab coat and goggles pushed up on the forehead.+ "scientist": Profile(+ bulk=0.95,+ coat=True,+ goggles=True,+ glove_cell="secondary",+ leg_cell="secondary_shade",+ ),+ # ---- fantasy ------------------------------------------------------------+ # Short, broad and mostly beard.+ "dwarf": Profile(+ head_h=0.98,+ bulk=1.28,+ torso_w=0.31,+ beard=True,+ boots=True,+ belt_cell="leather",+ leg_cell="secondary",+ ),+ # Tall, slim, pointed ears and long hair.+ "elf": Profile(+ head_h=0.72,+ bulk=0.88,+ pointed_ears=True,+ hair_long=True,+ boots=True,+ leg_cell="secondary",+ ),+ # A hooded robe and nothing else to look at.+ "monk": Profile(+ head_h=0.76,+ hood=True,+ robe=True,+ hair=False,+ glove_cell=None,+ belt_cell="accent",+ ),}@@ -238,7 +366,7 @@ def head_pieces(p: Profile) -> list[Piece]:),]if p.visor:- # One lit band instead of eyes: an android reads as a machine from the+ # One lit band instead of eyes: a machine reads as a machine from the# silhouette down to 20 px, which two dots never manage.pieces.append(box(@@ -296,14 +424,76 @@ def head_pieces(p: Profile) -> list[Piece]:(eye_z - 0.12, eye_z - 0.02),))+ if not p.beard:+ pieces.append(+ box(+ "Mouth",+ "head",+ "skin_shade",+ (-0.09, 0.09),+ (face - 0.02, -d + 0.02),+ (eye_z - 0.26, eye_z - 0.21),+ )+ )+ if p.beard:+ # Chin-length and squared off. Deliberately NOT in `hair_cells`: a+ # helmet hides the skull, and a beard under one still shows.+ pieces.append(+ box(+ "Beard",+ "head",+ "hair",+ (-w * 0.66, w * 0.66),+ (face - 0.03, d * 0.35),+ (chin - 0.16, eye_z - 0.13),+ )+ )+ if p.pointed_ears:+ for side, sx in (("L", 1.0), ("R", -1.0)):+ xs = sorted((sx * w, sx * (w + 0.075)))+ pieces.append(+ box(+ f"Ear{side}",+ "head",+ p.head_cell,+ xs,+ (-d * 0.25, d * 0.3),+ (eye_z - 0.02, eye_z + 0.20),+ )+ )+ if p.goggles:+ # Pushed up on the forehead, where a scientist actually keeps them.pieces.append(box(- "Mouth",+ "GoggleBand","head",- "skin_shade",- (-0.09, 0.09),- (face - 0.02, -d + 0.02),- (eye_z - 0.26, eye_z - 0.21),+ "leather",+ (-w - 0.02, w + 0.02),+ (-d - 0.03, d + 0.03),+ (top - 0.24, top - 0.16),+ )+ )+ for side, sx in (("L", 1.0), ("R", -1.0)):+ xs = sorted((sx * 0.05, sx * 0.21))+ pieces.append(+ box(+ f"Lens{side}",+ "head",+ "accent",+ xs,+ (-d - 0.05, -d + 0.01),+ (top - 0.26, top - 0.14),+ )+ )+ if p.headband:+ pieces.append(+ box(+ "Headband",+ "head",+ "accent",+ (-w - 0.02, w + 0.02),+ (-d - 0.02, d + 0.02),+ (top - 0.26, top - 0.18),))if p.antenna:@@ -336,26 +526,17 @@ def head_pieces(p: Profile) -> list[Piece]:box("HairBack", "head", "hair", (-cap, cap), (d - 0.04, d + 0.03), (chin + 0.16, top)))if p.hair_long:- pieces.append(- box(- "HairSideL",- "head",- "hair",- (w - 0.02, cap),- (-d * 0.4, d + 0.03),- (chin + 0.05, top),+ for side, lo, hi in (("L", w - 0.02, cap), ("R", -cap, -w + 0.02)):+ pieces.append(+ box(+ f"HairSide{side}",+ "head",+ "hair",+ (lo, hi),+ (-d * 0.4, d + 0.03),+ (chin + 0.05, top),+ ))- )- pieces.append(- box(- "HairSideR",- "head",- "hair",- (-cap, -w + 0.02),- (-d * 0.4, d + 0.03),- (chin + 0.05, top),- )- )if p.hood:# The hood rides the chest, not the head: it stays put when the head turns.pieces.append(@@ -372,7 +553,7 @@ def head_pieces(p: Profile) -> list[Piece]:def torso_pieces(p: Profile) -> list[Piece]:- w, d = p.torso_w, p.torso_d+ w, d = p.torso_w * p.bulk, p.torso_d * p.bulkpieces = [box("Chest", "chest", p.torso_cell, (-w, w), (-d, d), (CHEST_Z - 0.02, NECK_Z + 0.03)),box(@@ -425,35 +606,123 @@ def torso_pieces(p: Profile) -> list[Piece]:(WAIST_Z + 0.06, WAIST_Z + 0.20),))- if p.visor:+ if p.bib:+ # Overalls: a panel up the front and two straps over the shoulders.pieces.append(box(- "CoreLight",+ "Bib","chest",- "emissive",- (-0.07, 0.07),- (-d - 0.02, -d + 0.02),- (CHEST_Z + 0.10, CHEST_Z + 0.24),+ p.leg_cell,+ (-w * 0.62, w * 0.62),+ (-d - 0.02, -d + 0.04),+ (CHEST_Z - 0.02, NECK_Z - 0.05),+ )+ )+ for side, sx in (("L", 1.0), ("R", -1.0)):+ xs = sorted((sx * w * 0.30, sx * w * 0.62))+ pieces.append(+ box(+ f"Strap{side}",+ "chest",+ p.leg_cell,+ xs,+ (-d - 0.02, d + 0.02),+ (NECK_Z - 0.07, NECK_Z + 0.02),+ )+ )+ if p.apron:+ pieces.append(+ box(+ "Apron",+ "spine",+ "secondary",+ (-w * 0.8, w * 0.8),+ (-d - 0.03, -d + 0.01),+ (HIP_Z - 0.16, CHEST_Z),))+ if p.coat:+ # Two long panels, one per side, so the legs still read between them.+ for side, sx in (("L", 1.0), ("R", -1.0)):+ xs = sorted((sx * (w - 0.02), sx * (w + 0.035)))+ pieces.append(+ box(+ f"Coat{side}",+ "chest",+ "secondary",+ xs,+ (-d - 0.02, d + 0.02),+ (KNEE_Z + 0.04, NECK_Z + 0.02),+ )+ )pieces.append(box(- "PanelL",+ "CoatBack","chest",- "primary",- (0.12, w - 0.01),- (-d - 0.01, -d + 0.03),- (CHEST_Z + 0.02, NECK_Z - 0.02),+ "secondary",+ (-w - 0.03, w + 0.03),+ (d - 0.01, d + 0.035),+ (KNEE_Z + 0.04, NECK_Z + 0.02),))+ if p.scarf:pieces.append(box(- "PanelR",+ "Scarf","chest",- "primary",- (-w + 0.01, -0.12),- (-d - 0.01, -d + 0.03),- (CHEST_Z + 0.02, NECK_Z - 0.02),+ "accent",+ (-0.20, 0.20),+ (-d - 0.03, d + 0.03),+ (NECK_Z - 0.04, NECK_Z + 0.06),+ )+ )+ if p.shoulders:+ for side, sx in (("L", 1.0), ("R", -1.0)):+ xs = sorted((sx * (w - 0.04), sx * (w + 0.10)))+ pieces.append(+ box(+ f"Pad{side}",+ "chest",+ "metal",+ xs,+ (-d - 0.01, d + 0.01),+ (NECK_Z - 0.13, NECK_Z + 0.05),+ )+ )+ if p.visor and not p.shoulders:+ pieces.append(+ box(+ "CoreLight",+ "chest",+ "emissive",+ (-0.07, 0.07),+ (-d - 0.02, -d + 0.02),+ (CHEST_Z + 0.10, CHEST_Z + 0.24),+ )+ )+ for side, sx in (("L", 1.0), ("R", -1.0)):+ xs = sorted((sx * 0.12, sx * (w - 0.01)))+ pieces.append(+ box(+ f"Panel{side}",+ "chest",+ "primary",+ xs,+ (-d - 0.01, -d + 0.03),+ (CHEST_Z + 0.02, NECK_Z - 0.02),+ )+ )+ if p.robe:+ # One skirt on the hips: it does not bend with the knees, which is+ # exactly how a robe hangs.+ pieces.append(+ box(+ "Robe",+ "hips",+ p.torso_cell,+ (-w - 0.03, w + 0.03),+ (-d - 0.02, d + 0.02),+ (ANKLE_Z + 0.02, WAIST_Z + 0.02),))return pieces@@ -461,13 +730,16 @@ def torso_pieces(p: Profile) -> list[Piece]:def limb_pieces(p: Profile) -> list[Piece]:"""One side's arm and leg; the other side is the mirror of these."""- r = p.arm_r- lr = p.leg_r+ r = p.arm_r * p.bulk+ lr = p.leg_r * p.bulk+ upper_arm_cell = p.limb_cell if p.sleeveless else p.sleeve_cell+ hand_cell = p.glove_cell or p.limb_cell+ boot_top = ANKLE_Z + 0.13 if p.boots else ANKLE_Z + 0.02left = [box("UpperArmL","upper_arm_l",- p.sleeve_cell,+ upper_arm_cell,(SHOULDER_X - 0.02, ELBOW_X),(-r, r),(ARM_Z - r, ARM_Z + r),@@ -483,7 +755,7 @@ def limb_pieces(p: Profile) -> list[Piece]:box("HandL","hand_l",- p.limb_cell,+ hand_cell,(HAND_X - 0.02, FINGER_X),(-r, r),(ARM_Z - r, ARM_Z + r),@@ -510,7 +782,7 @@ def limb_pieces(p: Profile) -> list[Piece]:p.shoe_cell,(LEG_X - lr, LEG_X + lr),(TOE_Y, lr + 0.01),- (GROUND, ANKLE_Z + 0.02),+ (GROUND, boot_top),),box("ToeL",@@ -639,6 +911,755 @@ HANDSLOT_R = (-0.8831, 0.0, 1.0493)#: tagged only to the styles built on that skull, never to the wider KayKit#: heads the fantasy hats were cut for.PART_SPECS: dict[str, dict] = {+ # ---- headgear -----------------------------------------------------------+ "headgear-beanie": {+ "slot": "headgear",+ "fits_family": "jarvis-biped",+ "label": "Beanie",+ "styles": ["modern", "cartoon", "fantasy"],+ "hides": ["hair"],+ "pieces": lambda: [+ box(+ "BeanieBody",+ "head",+ "primary",+ (-HEAD_W - 0.03, HEAD_W + 0.03),+ (-HEAD_D - 0.03, HEAD_D + 0.03),+ (HEAD_TOP - 0.32, HEAD_TOP + 0.03),+ ),+ box(+ "BeanieBrim",+ "head",+ "primary_shade",+ (-HEAD_W - 0.045, HEAD_W + 0.045),+ (-HEAD_D - 0.045, HEAD_D + 0.045),+ (HEAD_TOP - 0.36, HEAD_TOP - 0.28),+ ),+ box(+ "BeanieBobble",+ "head",+ "accent",+ (-0.06, 0.06),+ (-0.06, 0.06),+ (HEAD_TOP + 0.03, HEAD_TOP + 0.12),+ ),+ ],+ },+ "headgear-hardhat": {+ "slot": "headgear",+ "fits_family": "jarvis-biped",+ "label": "Hard hat",+ "styles": ["modern", "scifi"],+ "hides": ["hair"],+ "pieces": lambda: [+ box(+ "HatShell",+ "head",+ "accent",+ (-HEAD_W - 0.04, HEAD_W + 0.04),+ (-HEAD_D - 0.03, HEAD_D + 0.03),+ (HEAD_TOP - 0.24, HEAD_TOP + 0.05),+ ),+ box(+ "HatBrim",+ "head",+ "accent",+ (-HEAD_W - 0.06, HEAD_W + 0.06),+ (-HEAD_D - 0.14, HEAD_D + 0.06),+ (HEAD_TOP - 0.26, HEAD_TOP - 0.21),+ ),+ box(+ "HatRidge",+ "head",+ "primary_shade",+ (-0.05, 0.05),+ (-HEAD_D - 0.03, HEAD_D + 0.03),+ (HEAD_TOP + 0.05, HEAD_TOP + 0.10),+ ),+ ],+ },+ "headgear-headset": {+ "slot": "headgear",+ "fits_family": "jarvis-biped",+ "label": "Headset",+ "styles": ["modern", "scifi", "cartoon"],+ "pieces": lambda: [+ box(+ "Band",+ "head",+ "primary_shade",+ (-HEAD_W - 0.03, HEAD_W + 0.03),+ (-0.05, 0.05),+ (HEAD_TOP - 0.06, HEAD_TOP + 0.05),+ ),+ box(+ "CupL",+ "head",+ "metal",+ (HEAD_W - 0.01, HEAD_W + 0.06),+ (-0.12, 0.12),+ (HEAD_TOP - 0.30, HEAD_TOP - 0.08),+ ),+ box(+ "CupR",+ "head",+ "metal",+ (-HEAD_W - 0.06, -HEAD_W + 0.01),+ (-0.12, 0.12),+ (HEAD_TOP - 0.30, HEAD_TOP - 0.08),+ ),+ box(+ "Mic",+ "head",+ "primary_shade",+ (HEAD_W * 0.30, HEAD_W + 0.02),+ (-HEAD_D - 0.10, -HEAD_D + 0.02),+ (HEAD_TOP - 0.34, HEAD_TOP - 0.30),+ ),+ ],+ },+ "headgear-crown": {+ "slot": "headgear",+ "fits_family": "jarvis-biped",+ "label": "Crown",+ "styles": ["fantasy", "cartoon"],+ "pieces": lambda: [+ box(+ "CrownBand",+ "head",+ "accent",+ (-HEAD_W - 0.03, HEAD_W + 0.03),+ (-HEAD_D - 0.03, HEAD_D + 0.03),+ (HEAD_TOP - 0.14, HEAD_TOP + 0.01),+ ),+ box(+ "SpikeC",+ "head",+ "accent",+ (-0.05, 0.05),+ (-HEAD_D - 0.03, -HEAD_D + 0.02),+ (HEAD_TOP + 0.01, HEAD_TOP + 0.11),+ ),+ box(+ "SpikeL",+ "head",+ "accent",+ (HEAD_W - 0.10, HEAD_W - 0.01),+ (-HEAD_D - 0.03, -HEAD_D + 0.02),+ (HEAD_TOP + 0.01, HEAD_TOP + 0.08),+ ),+ box(+ "SpikeR",+ "head",+ "accent",+ (-HEAD_W + 0.01, -HEAD_W + 0.10),+ (-HEAD_D - 0.03, -HEAD_D + 0.02),+ (HEAD_TOP + 0.01, HEAD_TOP + 0.08),+ ),+ box(+ "Gem",+ "head",+ "emissive",+ (-0.035, 0.035),+ (-HEAD_D - 0.04, -HEAD_D - 0.02),+ (HEAD_TOP - 0.11, HEAD_TOP - 0.04),+ ),+ ],+ },+ "headgear-space-helmet": {+ "slot": "headgear",+ "fits_family": "jarvis-biped",+ "label": "Space helmet",+ "styles": ["scifi"],+ "hides": ["hair"],+ "pieces": lambda: [+ box(+ "HelmShell",+ "head",+ "secondary",+ (-HEAD_W - 0.06, HEAD_W + 0.06),+ (-HEAD_D - 0.05, HEAD_D + 0.06),+ (HEAD_TOP - HEAD_D * 1.9, HEAD_TOP + 0.06),+ ),+ box(+ "HelmGlass",+ "head",+ "emissive",+ (-HEAD_W * 0.85, HEAD_W * 0.85),+ (-HEAD_D - 0.075, -HEAD_D - 0.04),+ (HEAD_TOP - 0.52, HEAD_TOP - 0.16),+ ),+ box(+ "HelmCollar",+ "head",+ "metal",+ (-HEAD_W - 0.07, HEAD_W + 0.07),+ (-HEAD_D - 0.06, HEAD_D + 0.07),+ (HEAD_TOP - HEAD_D * 2.0, HEAD_TOP - HEAD_D * 1.85),+ ),+ ],+ },+ "headgear-top-hat": {+ "slot": "headgear",+ "fits_family": "jarvis-biped",+ "label": "Top hat",+ "styles": ["cartoon", "modern"],+ "hides": ["hair"],+ "pieces": lambda: [+ box(+ "HatBrim",+ "head",+ "primary",+ (-HEAD_W - 0.16, HEAD_W + 0.16),+ (-HEAD_D - 0.16, HEAD_D + 0.16),+ (HEAD_TOP - 0.06, HEAD_TOP - 0.01),+ ),+ box(+ "HatTube",+ "head",+ "primary",+ (-HEAD_W - 0.01, HEAD_W + 0.01),+ (-HEAD_D - 0.01, HEAD_D + 0.01),+ (HEAD_TOP - 0.06, HEAD_TOP + 0.34),+ ),+ box(+ "HatBand",+ "head",+ "accent",+ (-HEAD_W - 0.02, HEAD_W + 0.02),+ (-HEAD_D - 0.02, HEAD_D + 0.02),+ (HEAD_TOP + 0.01, HEAD_TOP + 0.08),+ ),+ ],+ },+ # ---- face ---------------------------------------------------------------+ "face_extra-glasses": {+ "slot": "face_extra",+ "fits_family": "jarvis-biped",+ "label": "Glasses",+ "styles": ["modern", "scifi", "cartoon", "fantasy"],+ "pieces": lambda: [+ box(+ "LensL",+ "head",+ "metal",+ (0.055, 0.215),+ (-HEAD_D - 0.045, -HEAD_D - 0.015),+ (HEAD_TOP - 0.52, HEAD_TOP - 0.38),+ ),+ box(+ "LensR",+ "head",+ "metal",+ (-0.215, -0.055),+ (-HEAD_D - 0.045, -HEAD_D - 0.015),+ (HEAD_TOP - 0.52, HEAD_TOP - 0.38),+ ),+ box(+ "Bridge",+ "head",+ "metal",+ (-0.055, 0.055),+ (-HEAD_D - 0.04, -HEAD_D - 0.02),+ (HEAD_TOP - 0.47, HEAD_TOP - 0.43),+ ),+ box(+ "TempleL",+ "head",+ "metal",+ (HEAD_W - 0.02, HEAD_W + 0.02),+ (-HEAD_D - 0.02, 0.0),+ (HEAD_TOP - 0.47, HEAD_TOP - 0.43),+ ),+ box(+ "TempleR",+ "head",+ "metal",+ (-HEAD_W - 0.02, -HEAD_W + 0.02),+ (-HEAD_D - 0.02, 0.0),+ (HEAD_TOP - 0.47, HEAD_TOP - 0.43),+ ),+ ],+ },+ "face_extra-shades": {+ "slot": "face_extra",+ "fits_family": "jarvis-biped",+ "label": "Shades",+ "styles": ["modern", "cartoon", "scifi", "fantasy"],+ "pieces": lambda: [+ box(+ "ShadeBar",+ "head",+ "eyes",+ (-HEAD_W - 0.01, HEAD_W + 0.01),+ (-HEAD_D - 0.05, -HEAD_D - 0.02),+ (HEAD_TOP - 0.52, HEAD_TOP - 0.37),+ ),+ box(+ "ShadeGlint",+ "head",+ "secondary",+ (0.10, 0.20),+ (-HEAD_D - 0.055, -HEAD_D - 0.045),+ (HEAD_TOP - 0.49, HEAD_TOP - 0.44),+ ),+ ],+ },+ "face_extra-respirator": {+ "slot": "face_extra",+ "fits_family": "jarvis-biped",+ "label": "Respirator",+ "styles": ["scifi", "modern"],+ "pieces": lambda: [+ box(+ "MaskBody",+ "head",+ "metal",+ (-HEAD_W * 0.7, HEAD_W * 0.7),+ (-HEAD_D - 0.07, -HEAD_D + 0.02),+ (HEAD_TOP - 0.72, HEAD_TOP - 0.50),+ ),+ box(+ "MaskFilter",+ "head",+ "accent",+ (-0.07, 0.07),+ (-HEAD_D - 0.12, -HEAD_D - 0.06),+ (HEAD_TOP - 0.68, HEAD_TOP - 0.56),+ ),+ box(+ "MaskStrap",+ "head",+ "leather",+ (-HEAD_W - 0.02, HEAD_W + 0.02),+ (-HEAD_D - 0.01, HEAD_D + 0.02),+ (HEAD_TOP - 0.66, HEAD_TOP - 0.58),+ ),+ ],+ },+ # ---- over the torso -----------------------------------------------------+ "torso_over-vest": {+ "slot": "torso_over",+ "label": "Vest",+ "styles": ["modern", "fantasy", "scifi", "cartoon"],+ "pieces": lambda: [+ box(+ "VestL",+ "chest",+ "leather",+ (0.13, 0.34),+ (-0.24, 0.24),+ (WAIST_Z + 0.06, NECK_Z + 0.02),+ ),+ box(+ "VestR",+ "chest",+ "leather",+ (-0.34, -0.13),+ (-0.24, 0.24),+ (WAIST_Z + 0.06, NECK_Z + 0.02),+ ),+ box(+ "VestBack",+ "chest",+ "leather",+ (-0.34, 0.34),+ (0.20, 0.25),+ (WAIST_Z + 0.06, NECK_Z + 0.02),+ ),+ ],+ },+ "torso_over-plate": {+ "slot": "torso_over",+ "label": "Chest plate",+ "styles": ["scifi", "fantasy"],+ "pieces": lambda: [+ box(+ "Plate",+ "chest",+ "metal",+ (-0.30, 0.30),+ (-0.28, -0.19),+ (CHEST_Z - 0.02, NECK_Z + 0.02),+ ),+ box(+ "PlateBack",+ "chest",+ "metal",+ (-0.30, 0.30),+ (0.19, 0.28),+ (CHEST_Z - 0.02, NECK_Z + 0.02),+ ),+ box(+ "PlateStud",+ "chest",+ "accent",+ (-0.06, 0.06),+ (-0.31, -0.27),+ (CHEST_Z + 0.12, CHEST_Z + 0.24),+ ),+ ],+ },+ "torso_over-apron": {+ "slot": "torso_over",+ "label": "Apron",+ "styles": ["modern", "fantasy", "cartoon", "scifi"],+ "pieces": lambda: [+ box(+ "ApronBody",+ "spine",+ "secondary",+ (-0.26, 0.26),+ (-0.27, -0.20),+ (HIP_Z - 0.18, CHEST_Z + 0.02),+ ),+ box(+ "ApronStrapL",+ "chest",+ "secondary",+ (0.08, 0.18),+ (-0.24, 0.24),+ (NECK_Z - 0.06, NECK_Z + 0.02),+ ),+ box(+ "ApronStrapR",+ "chest",+ "secondary",+ (-0.18, -0.08),+ (-0.24, 0.24),+ (NECK_Z - 0.06, NECK_Z + 0.02),+ ),+ ],+ },+ # ---- belt ---------------------------------------------------------------+ "belt-toolbelt": {+ "slot": "belt",+ "label": "Tool belt",+ "styles": ["modern", "scifi", "cartoon"],+ "pieces": lambda: [+ box(+ "BeltStrap",+ "hips",+ "leather",+ (-0.33, 0.33),+ (-0.24, 0.24),+ (WAIST_Z - 0.07, WAIST_Z + 0.01),+ ),+ box(+ "PouchL",+ "hips",+ "leather",+ (0.16, 0.33),+ (-0.26, -0.14),+ (WAIST_Z - 0.20, WAIST_Z - 0.05),+ ),+ box(+ "PouchR",+ "hips",+ "metal",+ (-0.33, -0.16),+ (-0.26, -0.14),+ (WAIST_Z - 0.18, WAIST_Z - 0.05),+ ),+ ],+ },+ "belt-sash": {+ "slot": "belt",+ "label": "Sash",+ "styles": ["fantasy", "cartoon"],+ "pieces": lambda: [+ box(+ "SashBand",+ "hips",+ "accent",+ (-0.33, 0.33),+ (-0.24, 0.24),+ (WAIST_Z - 0.09, WAIST_Z + 0.02),+ ),+ box(+ "SashTail",+ "hips",+ "accent",+ (0.16, 0.28),+ (-0.26, -0.17),+ (HIP_Z - 0.10, WAIST_Z - 0.06),+ ),+ ],+ },+ # ---- back ---------------------------------------------------------------+ "back-satchel": {+ "slot": "back",+ "label": "Satchel",+ "styles": ["modern", "fantasy", "cartoon"],+ "pieces": lambda: [+ box(+ "Bag",+ "chest",+ "leather",+ (0.18, 0.40),+ (-0.10, 0.16),+ (WAIST_Z - 0.04, CHEST_Z + 0.06),+ ),+ box(+ "BagFlap",+ "chest",+ "secondary_shade",+ (0.17, 0.41),+ (-0.11, 0.17),+ (CHEST_Z - 0.02, CHEST_Z + 0.07),+ ),+ box(+ "BagStrap",+ "chest",+ "leather",+ (-0.16, 0.30),+ (-0.24, 0.24),+ (CHEST_Z + 0.10, NECK_Z + 0.02),+ ),+ ],+ },+ "back-jetpack": {+ "slot": "back",+ "label": "Jetpack",+ "styles": ["scifi"],+ "pieces": lambda: [+ box(+ "TankL",+ "chest",+ "metal",+ (0.06, 0.22),+ (0.20, 0.42),+ (CHEST_Z - 0.06, NECK_Z),+ ),+ box(+ "TankR",+ "chest",+ "metal",+ (-0.22, -0.06),+ (0.20, 0.42),+ (CHEST_Z - 0.06, NECK_Z),+ ),+ box(+ "Thrust",+ "chest",+ "emissive",+ (-0.20, 0.20),+ (0.24, 0.38),+ (CHEST_Z - 0.14, CHEST_Z - 0.06),+ ),+ box(+ "PackStrapL",+ "chest",+ "leather",+ (0.10, 0.19),+ (-0.23, 0.21),+ (NECK_Z - 0.06, NECK_Z + 0.01),+ ),+ box(+ "PackStrapR",+ "chest",+ "leather",+ (-0.19, -0.10),+ (-0.23, 0.21),+ (NECK_Z - 0.06, NECK_Z + 0.01),+ ),+ ],+ },+ "back-quiver": {+ "slot": "back",+ "label": "Quiver",+ "styles": ["fantasy", "cartoon"],+ "pieces": lambda: [+ box(+ "QuiverTube",+ "chest",+ "leather",+ (0.14, 0.30),+ (0.18, 0.34),+ (WAIST_Z, NECK_Z - 0.02),+ ),+ box(+ "Arrows",+ "chest",+ "secondary_shade",+ (0.17, 0.27),+ (0.21, 0.31),+ (NECK_Z - 0.04, NECK_Z + 0.18),+ ),+ box(+ "QuiverStrap",+ "chest",+ "leather",+ (-0.24, 0.24),+ (-0.23, 0.22),+ (CHEST_Z + 0.06, CHEST_Z + 0.16),+ ),+ ],+ },+ "back-cloak": {+ "slot": "back",+ "label": "Cloak",+ "styles": ["fantasy", "cartoon", "scifi"],+ "two_sided": True,+ "pieces": lambda: [+ box(+ "CloakSheet",+ "chest",+ "primary_shade",+ (-0.40, 0.40),+ (0.235, 0.245),+ (HIP_Z - 0.22, NECK_Z + 0.02),+ ),+ box(+ "CloakCollar",+ "chest",+ "accent",+ (-0.28, 0.28),+ (-0.24, 0.26),+ (NECK_Z - 0.03, NECK_Z + 0.05),+ ),+ ],+ },+ # ---- hands --------------------------------------------------------------+ "hand_l-clipboard": {+ "slot": "hand_l",+ "label": "Clipboard",+ "styles": ["modern", "scifi", "cartoon", "fantasy"],+ "pieces": lambda: [+ box(+ "Board",+ "handslot_l",+ "leather",+ (HANDSLOT_L[0] - 0.04, HANDSLOT_L[0] + 0.03),+ (-0.44, -0.08),+ (HANDSLOT_L[2] - 0.24, HANDSLOT_L[2] + 0.22),+ ),+ box(+ "Paper",+ "handslot_l",+ "secondary",+ (HANDSLOT_L[0] + 0.03, HANDSLOT_L[0] + 0.045),+ (-0.41, -0.11),+ (HANDSLOT_L[2] - 0.21, HANDSLOT_L[2] + 0.16),+ ),+ box(+ "Clip",+ "handslot_l",+ "metal",+ (HANDSLOT_L[0] + 0.03, HANDSLOT_L[0] + 0.05),+ (-0.34, -0.18),+ (HANDSLOT_L[2] + 0.16, HANDSLOT_L[2] + 0.22),+ ),+ ],+ },+ "hand_l-lantern": {+ "slot": "hand_l",+ "label": "Lantern",+ "styles": ["fantasy", "modern", "cartoon"],+ "pieces": lambda: [+ box(+ "LanternGlass",+ "handslot_l",+ "emissive",+ (HANDSLOT_L[0] - 0.07, HANDSLOT_L[0] + 0.07),+ (-0.30, -0.16),+ (HANDSLOT_L[2] - 0.30, HANDSLOT_L[2] - 0.12),+ ),+ box(+ "LanternCap",+ "handslot_l",+ "metal",+ (HANDSLOT_L[0] - 0.08, HANDSLOT_L[0] + 0.08),+ (-0.31, -0.15),+ (HANDSLOT_L[2] - 0.12, HANDSLOT_L[2] - 0.05),+ ),+ box(+ "LanternHoop",+ "handslot_l",+ "metal",+ (HANDSLOT_L[0] - 0.02, HANDSLOT_L[0] + 0.02),+ (-0.25, -0.21),+ (HANDSLOT_L[2] - 0.05, HANDSLOT_L[2] + 0.06),+ ),+ ],+ },+ "hand_r-broom": {+ "slot": "hand_r",+ "label": "Broom",+ "styles": ["modern", "cartoon", "fantasy"],+ "pieces": lambda: [+ box(+ "Handle",+ "handslot_r",+ "leather",+ (HANDSLOT_R[0] - 0.025, HANDSLOT_R[0] + 0.025),+ (-0.30, 0.62),+ (HANDSLOT_R[2] - 0.025, HANDSLOT_R[2] + 0.025),+ ),+ box(+ "Bristles",+ "handslot_r",+ "accent",+ (HANDSLOT_R[0] - 0.07, HANDSLOT_R[0] + 0.07),+ (0.62, 0.86),+ (HANDSLOT_R[2] - 0.07, HANDSLOT_R[2] + 0.07),+ ),+ ],+ },+ "hand_r-torch": {+ "slot": "hand_r",+ "label": "Torch",+ "styles": ["fantasy", "cartoon", "scifi"],+ "pieces": lambda: [+ box(+ "Shaft",+ "handslot_r",+ "leather",+ (HANDSLOT_R[0] - 0.03, HANDSLOT_R[0] + 0.03),+ (-0.34, 0.10),+ (HANDSLOT_R[2] - 0.03, HANDSLOT_R[2] + 0.03),+ ),+ box(+ "Flame",+ "handslot_r",+ "emissive",+ (HANDSLOT_R[0] - 0.06, HANDSLOT_R[0] + 0.06),+ (-0.50, -0.34),+ (HANDSLOT_R[2] - 0.06, HANDSLOT_R[2] + 0.06),+ ),+ ],+ },+ "hand_r-scanner": {+ "slot": "hand_r",+ "label": "Scanner",+ "styles": ["scifi", "modern"],+ "pieces": lambda: [+ box(+ "Grip",+ "handslot_r",+ "primary_shade",+ (HANDSLOT_R[0] - 0.035, HANDSLOT_R[0] + 0.035),+ (-0.20, 0.02),+ (HANDSLOT_R[2] - 0.035, HANDSLOT_R[2] + 0.035),+ ),+ box(+ "Head",+ "handslot_r",+ "metal",+ (HANDSLOT_R[0] - 0.06, HANDSLOT_R[0] + 0.06),+ (-0.34, -0.20),+ (HANDSLOT_R[2] - 0.06, HANDSLOT_R[2] + 0.06),+ ),+ box(+ "Beam",+ "handslot_r",+ "emissive",+ (HANDSLOT_R[0] - 0.03, HANDSLOT_R[0] + 0.03),+ (-0.42, -0.34),+ (HANDSLOT_R[2] - 0.03, HANDSLOT_R[2] + 0.03),+ ),+ ],+ },"back-backpack": {"slot": "back","label": "Backpack",@@ -679,7 +1700,7 @@ PART_SPECS: dict[str, dict] = {"hand_l-tablet": {"slot": "hand_l","label": "Tablet",- "styles": ["modern", "scifi"],+ "styles": ["modern", "scifi", "cartoon"],"pieces": lambda: [box("TabletShell",@@ -724,6 +1745,7 @@ PART_SPECS: dict[str, dict] = {},"headgear-cap": {"slot": "headgear",+ "fits_family": "jarvis-biped","label": "Cap","styles": ["modern", "cartoon", "scifi"],"hides": ["hair"],diff --git a/scripts/figures/quadruped_builder.py b/scripts/figures/quadruped_builder.pyindex b62414eac7..336c888d7d 100644--- a/scripts/figures/quadruped_builder.py+++ b/scripts/figures/quadruped_builder.py@@ -106,7 +106,13 @@ ALL_LEGS = FRONT_LEGS + BACK_LEGS@dataclass(frozen=True)class Shape:- """What tells one animal from the next; the rig and the clips are shared."""+ """What tells one animal from the next; the rig and the clips are shared.++ A second animal is an entry here and a `contract.json` target — no new rig,+ no new clips, ~50 KB of file. The bones never move between shapes, so a+ shape changes what hangs on them: how tall the ears stand, how far the+ muzzle reaches, how bushy the tail is, how heavy the body sits.+ """#: Palette cell of the coat, the underside, the paws and the tail tip.coat: str = "fur"@@ -121,11 +127,82 @@ class Shape:leg_r: float = 0.043#: How bushy the tail is, as a half-width.tail_r: float = 0.075+ #: How far the tail reaches back from the rump, in metres.+ tail_len: float = 0.52+ #: Where the ear tips end. The ear BONE ends at EAR_Z; a shorter ear simply+ #: leaves the top of it bare, a longer one runs past it and still follows.+ ear_top: float = EAR_Z+ #: Half-width of an ear, and how far apart the pair sits.+ ear_w: float = 0.085+ #: How far forward the muzzle reaches; a bear has none to speak of.+ muzzle_y: float = MUZZLE_Y+ #: Muzzle half-width as a fraction of the skull.+ muzzle_w: float = 0.52SHAPES: dict[str, Shape] = {# A fox: narrow muzzle, big ears, a tail almost as thick as the body."fox": Shape(),+ # A cat: small round ears, a slim body, a thin tail held long.+ "cat": Shape(+ body_w=0.115,+ head_w=0.098,+ leg_r=0.038,+ tail_r=0.032,+ tail_len=0.56,+ ear_top=0.80,+ ear_w=0.072,+ muzzle_y=-0.66,+ muzzle_w=0.62,+ ),+ # A dog: a blunt square muzzle and a medium tail.+ "dog": Shape(+ body_w=0.140,+ head_w=0.112,+ leg_r=0.047,+ tail_r=0.048,+ tail_len=0.44,+ ear_top=0.78,+ ear_w=0.095,+ muzzle_y=-0.70,+ muzzle_w=0.70,+ ),+ # A wolf: longer in the leg and the muzzle than a dog, heavier in the chest.+ "wolf": Shape(+ body_w=0.150,+ head_w=0.110,+ leg_r=0.049,+ tail_r=0.062,+ tail_len=0.50,+ ear_top=0.86,+ ear_w=0.082,+ muzzle_y=-0.76,+ muzzle_w=0.56,+ ),+ # A rabbit: the ears are the whole silhouette, the tail is a puff.+ "rabbit": Shape(+ body_w=0.115,+ head_w=0.092,+ leg_r=0.040,+ tail_r=0.055,+ tail_len=0.16,+ ear_top=1.18,+ ear_w=0.058,+ muzzle_y=-0.62,+ muzzle_w=0.66,+ ),+ # A bear: all barrel, small ears, barely a muzzle, a stub of a tail.+ "bear": Shape(+ body_w=0.175,+ head_w=0.128,+ leg_r=0.062,+ tail_r=0.045,+ tail_len=0.12,+ ear_top=0.76,+ ear_w=0.070,+ muzzle_y=-0.64,+ muzzle_w=0.62,+ ),}@@ -201,8 +278,8 @@ def head_pieces(s: Shape) -> list[Piece]:"Muzzle","head",s.coat,- (-w * 0.52, w * 0.52),- (MUZZLE_Y, HEAD_Y - 0.18),+ (-w * s.muzzle_w, w * s.muzzle_w),+ (s.muzzle_y, HEAD_Y - 0.18),(HEAD_Z - 0.09, HEAD_Z + 0.02),),box(@@ -218,7 +295,7 @@ def head_pieces(s: Shape) -> list[Piece]:"head",s.nose,(-0.026, 0.026),- (MUZZLE_Y - 0.022, MUZZLE_Y + 0.01),+ (s.muzzle_y - 0.022, s.muzzle_y + 0.01),(HEAD_Z - 0.05, HEAD_Z - 0.01),),box(@@ -226,7 +303,7 @@ def head_pieces(s: Shape) -> list[Piece]:"jaw",s.belly,(-w * 0.5, w * 0.5),- (MUZZLE_Y + 0.01, HEAD_Y - 0.08),+ (s.muzzle_y + 0.01, HEAD_Y - 0.08),(HEAD_Z - 0.115, HEAD_Z - 0.075),),]@@ -257,7 +334,7 @@ def head_pieces(s: Shape) -> list[Piece]:))bone = f"ear_{'l' if sx > 0 else 'r'}"- ox = sorted((sx * 0.030, sx * 0.115))+ ox = sorted((sx * 0.030, sx * (0.030 + s.ear_w)))pieces.append(box(f"Ear{side}",@@ -265,10 +342,10 @@ def head_pieces(s: Shape) -> list[Piece]:s.coat,ox,(HEAD_Y - 0.02, HEAD_Y + 0.05),- (HEAD_Z + 0.10, EAR_Z),+ (HEAD_Z + 0.10, s.ear_top),))- ix = sorted((sx * 0.046, sx * 0.099))+ ix = sorted((sx * 0.046, sx * (0.046 + s.ear_w * 0.62)))pieces.append(box(f"EarIn{side}",@@ -276,7 +353,7 @@ def head_pieces(s: Shape) -> list[Piece]:s.ear_inner,ix,(HEAD_Y - 0.032, HEAD_Y - 0.015),- (HEAD_Z + 0.12, EAR_Z - 0.03),+ (HEAD_Z + 0.12, s.ear_top - 0.03),))return pieces@@ -338,7 +415,7 @@ def body_pieces(s: Shape) -> list[Piece]:"tail_1",s.coat,(-s.tail_r, s.tail_r),- (HIP_Y + 0.04, HIP_Y + 0.28),+ (HIP_Y + 0.04, HIP_Y + 0.06 + s.tail_len * 0.5),(HIP_Z - 0.05, HIP_Z + 0.09),),box(@@ -346,7 +423,7 @@ def body_pieces(s: Shape) -> list[Piece]:"tail_2",s.tail_tip,(-s.tail_r + 0.012, s.tail_r - 0.012),- (HIP_Y + 0.28, HIP_Y + 0.52),+ (HIP_Y + 0.04 + s.tail_len * 0.5, HIP_Y + 0.04 + s.tail_len),(HIP_Z - 0.12, HIP_Z + 0.04),),]@@ -636,10 +713,21 @@ def build_quadruped(body.matrix_parent_inverse.identity()modifier = body.modifiers.new("Armature", "ARMATURE")modifier.object = arm- key_clips(arm)return arm, body, {"used": used, "unmapped": {}, "hair_faces": []}+def build_rig_with_clips() -> bpy.types.Object:+ """The skeleton and its seven clips, with no body — the shared clip library.++ Every shape in `SHAPES` is the same rig moving the same way; keeping one+ copy of the clips beside the bodies is what makes a second animal cost its+ geometry alone.+ """+ arm = build_armature()+ key_clips(arm)+ return arm++# ---------------------------------------------------------------------------# parts# ---------------------------------------------------------------------------@@ -648,6 +736,199 @@ def build_quadruped(#: they hang on a bone every animal of this rig shares, so one file fits every#: shape in `SHAPES`.PART_SPECS: dict[str, dict] = {+ "collar-scarf": {+ "slot": "collar",+ "label": "Scarf",+ "styles": ["animal"],+ "pieces": lambda: [+ box(+ "ScarfWrap",+ "neck",+ "primary",+ (-0.112, 0.112),+ (SHOULDER_Y - 0.10, SHOULDER_Y),+ (BACK_Z - 0.07, NECK_TOP_Z + 0.03),+ ),+ box(+ "ScarfTail",+ "neck",+ "primary_shade",+ (0.02, 0.09),+ (SHOULDER_Y - 0.12, SHOULDER_Y - 0.04),+ (BACK_Z - 0.24, BACK_Z - 0.05),+ ),+ ],+ },+ "back-blanket": {+ "slot": "back",+ "label": "Blanket",+ "styles": ["animal"],+ "pieces": lambda: [+ box(+ "Blanket",+ "chest",+ "primary",+ (-0.155, 0.155),+ (CHEST_Y - 0.14, CHEST_Y + 0.22),+ (BACK_Z - 0.14, BACK_Z + 0.04),+ ),+ box(+ "BlanketTrim",+ "chest",+ "accent",+ (-0.16, 0.16),+ (CHEST_Y - 0.16, CHEST_Y - 0.12),+ (BACK_Z - 0.15, BACK_Z + 0.05),+ ),+ ],+ },+ "tail_extra-bow": {+ "slot": "tail_extra",+ "label": "Bow",+ "styles": ["animal"],+ "pieces": lambda: [+ box(+ "BowKnot",+ "tail_2",+ "accent",+ (-0.035, 0.035),+ (HIP_Y + 0.40, HIP_Y + 0.47),+ (HIP_Z - 0.08, HIP_Z - 0.01),+ ),+ box(+ "BowL",+ "tail_2",+ "accent",+ (0.035, 0.105),+ (HIP_Y + 0.41, HIP_Y + 0.46),+ (HIP_Z - 0.10, HIP_Z + 0.01),+ ),+ box(+ "BowR",+ "tail_2",+ "accent",+ (-0.105, -0.035),+ (HIP_Y + 0.41, HIP_Y + 0.46),+ (HIP_Z - 0.10, HIP_Z + 0.01),+ ),+ ],+ },+ "headgear-antlers": {+ "slot": "headgear",+ "label": "Antlers",+ "styles": ["animal"],+ "pieces": lambda: [+ box(+ "AntlerL",+ "head",+ "leather",+ (0.045, 0.075),+ (HEAD_Y - 0.03, HEAD_Y + 0.01),+ (HEAD_Z + 0.11, HEAD_Z + 0.34),+ ),+ box(+ "AntlerR",+ "head",+ "leather",+ (-0.075, -0.045),+ (HEAD_Y - 0.03, HEAD_Y + 0.01),+ (HEAD_Z + 0.11, HEAD_Z + 0.34),+ ),+ box(+ "TineL",+ "head",+ "leather",+ (0.075, 0.155),+ (HEAD_Y - 0.03, HEAD_Y + 0.01),+ (HEAD_Z + 0.26, HEAD_Z + 0.30),+ ),+ box(+ "TineR",+ "head",+ "leather",+ (-0.155, -0.075),+ (HEAD_Y - 0.03, HEAD_Y + 0.01),+ (HEAD_Z + 0.26, HEAD_Z + 0.30),+ ),+ ],+ },+ "collar-bandana": {+ "slot": "collar",+ "label": "Bandana",+ "styles": ["animal"],+ "pieces": lambda: [+ box(+ "BandanaWrap",+ "neck",+ "accent",+ (-0.108, 0.108),+ (SHOULDER_Y - 0.09, SHOULDER_Y - 0.01),+ (BACK_Z - 0.06, NECK_TOP_Z + 0.02),+ ),+ box(+ "BandanaKnot",+ "neck",+ "accent",+ (-0.05, 0.05),+ (SHOULDER_Y - 0.13, SHOULDER_Y - 0.07),+ (BACK_Z - 0.13, BACK_Z - 0.03),+ ),+ ],+ },+ "back-saddlebag": {+ "slot": "back",+ "label": "Saddle bag",+ "styles": ["animal"],+ "pieces": lambda: [+ box(+ "BagL",+ "chest",+ "leather",+ (0.10, 0.20),+ (CHEST_Y - 0.10, CHEST_Y + 0.14),+ (BACK_Z - 0.22, BACK_Z - 0.02),+ ),+ box(+ "BagR",+ "chest",+ "leather",+ (-0.20, -0.10),+ (CHEST_Y - 0.10, CHEST_Y + 0.14),+ (BACK_Z - 0.22, BACK_Z - 0.02),+ ),+ box(+ "BagStrap",+ "chest",+ "secondary_shade",+ (-0.15, 0.15),+ (CHEST_Y - 0.07, CHEST_Y + 0.11),+ (BACK_Z - 0.01, BACK_Z + 0.05),+ ),+ ],+ },+ "headgear-pet-cap": {+ "slot": "headgear",+ "label": "Cap",+ "styles": ["animal"],+ "pieces": lambda: [+ box(+ "PetCapCrown",+ "head",+ "primary",+ (-0.105, 0.105),+ (HEAD_Y - 0.16, HEAD_Y + 0.05),+ (HEAD_Z + 0.09, HEAD_Z + 0.17),+ ),+ box(+ "PetCapPeak",+ "head",+ "primary_shade",+ (-0.075, 0.075),+ (HEAD_Y - 0.29, HEAD_Y - 0.15),+ (HEAD_Z + 0.09, HEAD_Z + 0.115),+ ),+ ],+ },"collar-band": {"slot": "collar","label": "Collar",diff --git a/scripts/figures/sources/gigi-mascot.json b/scripts/figures/sources/gigi-mascot.jsonindex 235ed683c5..6409d79921 100644--- a/scripts/figures/sources/gigi-mascot.json+++ b/scripts/figures/sources/gigi-mascot.json@@ -2,6 +2,7 @@"$comment": "Gigi, the app's own pixel-ghost mascot, as the society's lead figure (spirit archetype). No external file: gigi_builder.py models the figure from the same SVG outline the deck room extrudes (components/deck/room/GigiFigure.tsx, wiki-video/public/gigi.svg) and keys its clips by script, so the whole character is first-party and reproducible.","name": "Gigi mascot (first-party)","author": "Personal Jarvis",+ "family": "gigi","license": "first-party","license_url": "","procedural": "gigi",diff --git a/scripts/figures/sources/jarvis-animals.json b/scripts/figures/sources/jarvis-animals.jsonindex eb10412eb9..1057130779 100644--- a/scripts/figures/sources/jarvis-animals.json+++ b/scripts/figures/sources/jarvis-animals.json@@ -2,14 +2,26 @@"$comment": "Four-legged companions, modelled and keyed by scripts/figures/quadruped_builder.py. The `animal` style has no CC0 donor of the right archetype, so the whole character is first-party: the contract's 21-bone quadruped rig, a blocky body on it and its seven clips written frame by frame. Nothing is downloaded.","name": "Personal Jarvis animals (first-party)","author": "Personal Jarvis",+ "family": "jarvis-quadruped","license": "first-party","license_url": "","procedural": "quadruped",+ "clip_library": "quadruped-clips.glb",+ "clip_archetype": "quadruped","files": {},"characters": {"Fox": {"shape": "fox",- "parts": ["collar-band"],+ "parts": [+ "collar-scarf",+ "back-blanket",+ "tail_extra-bow",+ "headgear-antlers",+ "collar-bandana",+ "back-saddlebag",+ "headgear-pet-cap",+ "collar-band"+ ],"default_palette": {"skin": "#f0b5a8","skin_shade": "#d29488",@@ -28,6 +40,111 @@"eye_white": "#fbf8f2","emissive": "#ffd166"}+ },+ "Cat": {+ "shape": "cat",+ "default_palette": {+ "skin": "#f0b5a8",+ "skin_shade": "#d29488",+ "hair": "#b8532a",+ "eyes": "#3fae6a",+ "primary": "#c25a2a",+ "primary_shade": "#9a4420",+ "secondary": "#f0ece4",+ "secondary_shade": "#d8d0c2",+ "accent": "#7fd1a8",+ "metal": "#9aa3a8",+ "leather": "#6b4a33",+ "fur": "#3c3a42",+ "fur_shade": "#8e8a96",+ "shoes": "#2b2320",+ "eye_white": "#fbf8f2",+ "emissive": "#ffd166"+ }+ },+ "Dog": {+ "shape": "dog",+ "default_palette": {+ "skin": "#f0b5a8",+ "skin_shade": "#d29488",+ "hair": "#b8532a",+ "eyes": "#2a1d14",+ "primary": "#c25a2a",+ "primary_shade": "#9a4420",+ "secondary": "#f4efe6",+ "secondary_shade": "#d8d0c2",+ "accent": "#d24b3a",+ "metal": "#9aa3a8",+ "leather": "#6b4a33",+ "fur": "#a9793f",+ "fur_shade": "#e8dcc6",+ "shoes": "#2b2320",+ "eye_white": "#fbf8f2",+ "emissive": "#ffd166"+ }+ },+ "Wolf": {+ "shape": "wolf",+ "default_palette": {+ "skin": "#f0b5a8",+ "skin_shade": "#d29488",+ "hair": "#b8532a",+ "eyes": "#d8c24a",+ "primary": "#c25a2a",+ "primary_shade": "#9a4420",+ "secondary": "#e4e8ec",+ "secondary_shade": "#d8d0c2",+ "accent": "#8fb8d8",+ "metal": "#9aa3a8",+ "leather": "#6b4a33",+ "fur": "#6d7580",+ "fur_shade": "#c6ccd2",+ "shoes": "#2b2320",+ "eye_white": "#fbf8f2",+ "emissive": "#ffd166"+ }+ },+ "Rabbit": {+ "shape": "rabbit",+ "default_palette": {+ "skin": "#f0b5b8",+ "skin_shade": "#d29488",+ "hair": "#b8532a",+ "eyes": "#4a2e2a",+ "primary": "#c25a2a",+ "primary_shade": "#9a4420",+ "secondary": "#f6f2ea",+ "secondary_shade": "#d8d0c2",+ "accent": "#e8a0b0",+ "metal": "#9aa3a8",+ "leather": "#6b4a33",+ "fur": "#d9cfc2",+ "fur_shade": "#f6f2ea",+ "shoes": "#2b2320",+ "eye_white": "#fbf8f2",+ "emissive": "#ffd166"+ }+ },+ "Bear": {+ "shape": "bear",+ "default_palette": {+ "skin": "#f0b5a8",+ "skin_shade": "#d29488",+ "hair": "#b8532a",+ "eyes": "#1a1210",+ "primary": "#c25a2a",+ "primary_shade": "#9a4420",+ "secondary": "#3a2a20",+ "secondary_shade": "#d8d0c2",+ "accent": "#d9a441",+ "metal": "#9aa3a8",+ "leather": "#6b4a33",+ "fur": "#6b4630",+ "fur_shade": "#a98157",+ "shoes": "#2b2320",+ "eye_white": "#fbf8f2",+ "emissive": "#ffd166"+ }}}}diff --git a/scripts/figures/sources/jarvis-humanoids.json b/scripts/figures/sources/jarvis-humanoids.jsonindex 383e64b2aa..97acba85a2 100644--- a/scripts/figures/sources/jarvis-humanoids.json+++ b/scripts/figures/sources/jarvis-humanoids.json@@ -2,17 +2,48 @@"$comment": "Bodies modelled by scripts/figures/humanoid_builder.py — first-party geometry and sheets on the CC0 KayKit rig and clips (character-pipeline.md §8.2 route B, §12 decision 1). No mesh of the donor survives the build: it is imported for its 23 deform bones and nine clips, every object it shipped is deleted, and the body is built from boxes. The donor's own sha256 rows stay in SOURCES.md through the kaykit-adventurers source.","name": "Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig)","author": "Personal Jarvis",+ "family": "jarvis-biped","license": "first-party","license_url": "","procedural": "humanoid","rig_source": "kaykit-adventurers","rig_character": "Rogue",+ "clip_library": "biped-clips.glb",+ "clip_archetype": "biped","files": {},"characters": {"Office": {"profile": "office","$comment": "The accessories live on this one character: they hang on `chest` and the handslots, bones every biped of this rig shares, so one file fits Office, Casual, Chibi and Android alike. `headgear-cap` is cut for this module's own crown height and skull width and is therefore tagged only to the styles built on it — never to the wider KayKit heads.",- "parts": ["back-backpack", "hand_l-tablet", "hand_r-wrench", "headgear-cap"],+ "parts": [+ "headgear-beanie",+ "headgear-hardhat",+ "headgear-headset",+ "headgear-crown",+ "headgear-space-helmet",+ "headgear-top-hat",+ "face_extra-glasses",+ "face_extra-shades",+ "face_extra-respirator",+ "torso_over-vest",+ "torso_over-plate",+ "torso_over-apron",+ "belt-toolbelt",+ "belt-sash",+ "back-satchel",+ "back-jetpack",+ "back-quiver",+ "back-cloak",+ "hand_l-clipboard",+ "hand_l-lantern",+ "hand_r-broom",+ "hand_r-torch",+ "hand_r-scanner",+ "back-backpack",+ "hand_l-tablet",+ "hand_r-wrench",+ "headgear-cap"+ ],"default_palette": {"skin": "#f1c4a0","skin_shade": "#d3a382",@@ -94,6 +125,237 @@"eye_white": "#e6ecef","emissive": "#6ff2e3"}+ },+ "Worker": {+ "profile": "worker",+ "default_palette": {+ "skin": "#d8a37c",+ "skin_shade": "#c9926d",+ "hair": "#4a3529",+ "eyes": "#1b2427",+ "primary": "#c9d2d8",+ "primary_shade": "#2b3441",+ "secondary": "#3f6d9e",+ "secondary_shade": "#2c4d70",+ "accent": "#f2b43a",+ "metal": "#9aa3a8",+ "leather": "#6b4a33",+ "fur": "#b87556",+ "fur_shade": "#8d4c39",+ "shoes": "#3a2c22",+ "eye_white": "#f4f7f8",+ "emissive": "#ffd166"+ }+ },+ "Athlete": {+ "profile": "athlete",+ "default_palette": {+ "skin": "#8d5b3f",+ "skin_shade": "#6f4630",+ "hair": "#1c1512",+ "eyes": "#1b2427",+ "primary": "#e04f5f",+ "primary_shade": "#2b3441",+ "secondary": "#f4f6f7",+ "secondary_shade": "#cfd4d8",+ "accent": "#f4f6f7",+ "metal": "#9aa3a8",+ "leather": "#5b4130",+ "fur": "#b87556",+ "fur_shade": "#8d4c39",+ "shoes": "#f4f6f7",+ "eye_white": "#f4f7f8",+ "emissive": "#ffd166"+ }+ },+ "Medic": {+ "profile": "medic",+ "default_palette": {+ "skin": "#f1c4a0",+ "skin_shade": "#c9926d",+ "hair": "#6b6b6b",+ "eyes": "#1b2427",+ "primary": "#4f8fb0",+ "primary_shade": "#2b3441",+ "secondary": "#f6f8f8",+ "secondary_shade": "#d6dbdd",+ "accent": "#d2453c",+ "metal": "#9aa3a8",+ "leather": "#5b4130",+ "fur": "#b87556",+ "fur_shade": "#8d4c39",+ "shoes": "#241f1c",+ "eye_white": "#f4f7f8",+ "emissive": "#ffd166"+ }+ },+ "Toon": {+ "profile": "toon",+ "default_palette": {+ "skin": "#f6cdaa",+ "skin_shade": "#c9926d",+ "hair": "#1c1512",+ "eyes": "#1b2427",+ "primary": "#d63d47",+ "primary_shade": "#2b3441",+ "secondary": "#ffffff",+ "secondary_shade": "#d9d9d9",+ "accent": "#f5c542",+ "metal": "#9aa3a8",+ "leather": "#5b4130",+ "fur": "#b87556",+ "fur_shade": "#8d4c39",+ "shoes": "#f2b43a",+ "eye_white": "#f4f7f8",+ "emissive": "#ffd166"+ }+ },+ "Blockhead": {+ "profile": "blockhead",+ "default_palette": {+ "skin": "#c98b62",+ "skin_shade": "#c9926d",+ "hair": "#3b2a20",+ "eyes": "#1b2427",+ "primary": "#7bb26a",+ "primary_shade": "#588a49",+ "secondary": "#5d4a3a",+ "secondary_shade": "#666b71",+ "accent": "#e0533f",+ "metal": "#9aa3a8",+ "leather": "#5b4130",+ "fur": "#b87556",+ "fur_shade": "#8d4c39",+ "shoes": "#3a2f28",+ "eye_white": "#f4f7f8",+ "emissive": "#ffd166"+ }+ },+ "Pilot": {+ "profile": "pilot",+ "default_palette": {+ "skin": "#e8b48c",+ "skin_shade": "#c9926d",+ "hair": "#3b2a20",+ "eyes": "#1b2427",+ "primary": "#e8a33d",+ "primary_shade": "#b57a24",+ "secondary": "#3b4550",+ "secondary_shade": "#262d35",+ "accent": "#e8a33d",+ "metal": "#b6c0c6",+ "leather": "#4a3a2c",+ "fur": "#b87556",+ "fur_shade": "#8d4c39",+ "shoes": "#2b2320",+ "eye_white": "#f4f7f8",+ "emissive": "#7fdcff"+ }+ },+ "Trooper": {+ "profile": "trooper",+ "default_palette": {+ "skin": "#e8b48c",+ "skin_shade": "#c9926d",+ "hair": "#3b2a20",+ "eyes": "#1b2427",+ "primary": "#2b3a4a",+ "primary_shade": "#1c2733",+ "secondary": "#e6eaec",+ "secondary_shade": "#9aa3a8",+ "accent": "#d84b3a",+ "metal": "#6f797f",+ "leather": "#5b4130",+ "fur": "#b87556",+ "fur_shade": "#8d4c39",+ "shoes": "#2b2320",+ "eye_white": "#f4f7f8",+ "emissive": "#ff6a4d"+ }+ },+ "Scientist": {+ "profile": "scientist",+ "default_palette": {+ "skin": "#e9c3a3",+ "skin_shade": "#c9926d",+ "hair": "#8a8f96",+ "eyes": "#1b2427",+ "primary": "#4a7fb0",+ "primary_shade": "#2b3441",+ "secondary": "#f6f8f8",+ "secondary_shade": "#c3c9cc",+ "accent": "#5ad1c0",+ "metal": "#9aa3a8",+ "leather": "#3a3f45",+ "fur": "#b87556",+ "fur_shade": "#8d4c39",+ "shoes": "#2b2f33",+ "eye_white": "#f4f7f8",+ "emissive": "#ffd166"+ }+ },+ "Dwarf": {+ "profile": "dwarf",+ "default_palette": {+ "skin": "#e0a074",+ "skin_shade": "#c9926d",+ "hair": "#a8492a",+ "eyes": "#1b2427",+ "primary": "#7a4a2c",+ "primary_shade": "#5a3520",+ "secondary": "#4f6b3f",+ "secondary_shade": "#3a4f2e",+ "accent": "#d9a441",+ "metal": "#9aa3a8",+ "leather": "#4a3223",+ "fur": "#b87556",+ "fur_shade": "#8d4c39",+ "shoes": "#3a2a1e",+ "eye_white": "#f4f7f8",+ "emissive": "#ffd166"+ }+ },+ "Elf": {+ "profile": "elf",+ "default_palette": {+ "skin": "#f2d3b6",+ "skin_shade": "#d6b195",+ "hair": "#e6d29a",+ "eyes": "#1b2427",+ "primary": "#3f6d52",+ "primary_shade": "#2b4e39",+ "secondary": "#6b8f5f",+ "secondary_shade": "#4d6b44",+ "accent": "#d9c56b",+ "metal": "#9aa3a8",+ "leather": "#5b4130",+ "fur": "#b87556",+ "fur_shade": "#8d4c39",+ "shoes": "#4a3a26",+ "eye_white": "#f4f7f8",+ "emissive": "#ffd166"+ }+ },+ "Monk": {+ "profile": "monk",+ "default_palette": {+ "skin": "#d8a37c",+ "skin_shade": "#c9926d",+ "hair": "#3b2a20",+ "eyes": "#1b2427",+ "primary": "#8a5a34",+ "primary_shade": "#66401f",+ "secondary": "#c4a06a",+ "secondary_shade": "#666b71",+ "accent": "#d9a441",+ "metal": "#9aa3a8",+ "leather": "#4a3223",+ "fur": "#b87556",+ "fur_shade": "#8d4c39",+ "shoes": "#3a2a1e",+ "eye_white": "#f4f7f8",+ "emissive": "#ffd166"+ }}}}diff --git a/scripts/figures/sources/kaykit-adventurers.json b/scripts/figures/sources/kaykit-adventurers.jsonindex d41fb70bf4..a011e66eeb 100644--- a/scripts/figures/sources/kaykit-adventurers.json+++ b/scripts/figures/sources/kaykit-adventurers.json@@ -2,6 +2,7 @@"$comment": "KayKit Character Pack: Adventurers 1.0 by Kay Lousberg — CC0 (LICENSE.txt in the repo). The biped skeleton + clip base and the first four bodies and fifteen parts (character-pipeline.md §8 route A, §11). Every file is fetched by URL into scripts/figures/cache/ and verified by sha256 before the build touches it.","name": "KayKit Character Pack: Adventurers 1.0","author": "Kay Lousberg (kaylousberg.com)",+ "family": "kaykit-adventurers","license": "CC0-1.0","license_url": "https://github.com/KayKit-Game-Assets/KayKit-Character-Pack-Adventures-1.0/blob/main/LICENSE.txt","base_url": "https://raw.githubusercontent.com/KayKit-Game-Assets/KayKit-Character-Pack-Adventures-1.0/main/addons/kaykit_character_pack_adventures/Characters/gltf/",diff --git a/tests/unit/ui/test_society_figures_gate.py b/tests/unit/ui/test_society_figures_gate.pyindex bd57176dcf..afa3a0197e 100644--- a/tests/unit/ui/test_society_figures_gate.py+++ b/tests/unit/ui/test_society_figures_gate.py@@ -56,6 +56,17 @@ def test_png_codec_round_trips():assert decoded == rows+def _pick_figure(gt, own_clips: bool) -> Path:+ """A shipped figure, chosen by whether it carries its own animation."""+ for path in _shipped():+ doc = gt.read_glb(path).doc+ if gt.figure_extras(doc) is None:+ continue # a part, or the clip library itself+ if bool(doc.get("animations")) == own_clips:+ return path+ pytest.skip(f"no shipped figure with own_clips={own_clips}")++@pytest.mark.skipif(not _shipped(), reason="no figure asset built yet")@pytest.mark.parametrize("mutate, expected",@@ -65,12 +76,16 @@ def test_png_codec_round_trips():("drop_walk", "clip 'walk' missing"),("root_motion", "root motion"),("blur", "NEAREST"),+ ("lose_the_clip_library", "clips_from"),],)def test_the_gate_catches_a_broken_figure(tmp_path: Path, mutate: str, expected: str):gate = _load(_GATE, "check_society_figures")gt = _load(_TOOLS, "glb_tools")- source = _shipped()[0]+ # A body that BORROWS its clips carries none of its own, so breaking a clip+ # inside it proves nothing; those mutations need a figure that ships them.+ wants_own_clips = mutate in {"drop_walk", "root_motion"}+ source = _pick_figure(gt, own_clips=wants_own_clips)glb = gt.read_glb(source)doc = glb.docnames = gt.node_index_by_name(doc)@@ -93,6 +108,12 @@ def test_the_gate_catches_a_broken_figure(tmp_path: Path, mutate: str, expected:elif mutate == "blur":for sampler in doc["samplers"]:sampler["magFilter"] = 9729+ elif mutate == "lose_the_clip_library":+ # A body that borrows its clips is dead without the file it names; the+ # gate must say so at build time, not the runtime at render time.+ extras = doc["asset"]["extras"]["jarvis_figure"]+ extras["clips_from"] = "no-such-clips.glb"+ doc["animations"] = []broken = tmp_path / source.namegt.write_glb(broken, doc, glb.blob)(tmp_path / "SOURCES.md").write_text(