Skip to content

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.

fix(society): every garment fits the body it is offered to, and an audit that says so

rubenluetke10-beep3c80971d1e11
diff --git a/jarvis/ui/web/frontend/src/assets/society/figures/SOURCES.md b/jarvis/ui/web/frontend/src/assets/society/figures/SOURCES.md
index b16880d73a..4def5ba8a5 100644
--- a/jarvis/ui/web/frontend/src/assets/society/figures/SOURCES.md
+++ b/jarvis/ui/web/frontend/src/assets/society/figures/SOURCES.md
@@ -48,7 +48,9 @@ into `scripts/figures/cache/` and verified by sha256 before the build touches th
| `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-sash-broad.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 |
+| `belt-toolbelt-broad.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 |
@@ -84,8 +86,11 @@ into `scripts/figures/cache/` and verified by sha256 before the build touches th
| `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-apron-broad.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-plate-broad.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 |
+| `torso_over-vest-broad.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-athlete.glb b/jarvis/ui/web/frontend/src/assets/society/figures/biped-athlete.glb
index 0e10bac853..da521e11fa 100644
Binary files a/jarvis/ui/web/frontend/src/assets/society/figures/biped-athlete.glb and b/jarvis/ui/web/frontend/src/assets/society/figures/biped-athlete.glb differ
diff --git a/jarvis/ui/web/frontend/src/assets/society/figures/biped-casual.glb b/jarvis/ui/web/frontend/src/assets/society/figures/biped-casual.glb
index a80c7cbfea..28e1f992a7 100644
Binary 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 differ
diff --git a/jarvis/ui/web/frontend/src/assets/society/figures/biped-chibi.glb b/jarvis/ui/web/frontend/src/assets/society/figures/biped-chibi.glb
index 22b6fcc90d..c54f2b7abb 100644
Binary 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 differ
diff --git a/jarvis/ui/web/frontend/src/assets/society/figures/biped-dwarf.glb b/jarvis/ui/web/frontend/src/assets/society/figures/biped-dwarf.glb
index b8621c746b..91b2deadf3 100644
Binary files a/jarvis/ui/web/frontend/src/assets/society/figures/biped-dwarf.glb and b/jarvis/ui/web/frontend/src/assets/society/figures/biped-dwarf.glb differ
diff --git a/jarvis/ui/web/frontend/src/assets/society/figures/biped-elf.glb b/jarvis/ui/web/frontend/src/assets/society/figures/biped-elf.glb
index 97d24b6284..62938d7e13 100644
Binary files a/jarvis/ui/web/frontend/src/assets/society/figures/biped-elf.glb and b/jarvis/ui/web/frontend/src/assets/society/figures/biped-elf.glb differ
diff --git a/jarvis/ui/web/frontend/src/assets/society/figures/biped-medic.glb b/jarvis/ui/web/frontend/src/assets/society/figures/biped-medic.glb
index 76222b349a..9de1e53cd6 100644
Binary files a/jarvis/ui/web/frontend/src/assets/society/figures/biped-medic.glb and b/jarvis/ui/web/frontend/src/assets/society/figures/biped-medic.glb differ
diff --git a/jarvis/ui/web/frontend/src/assets/society/figures/biped-office.glb b/jarvis/ui/web/frontend/src/assets/society/figures/biped-office.glb
index 8e59d0e52e..bf8be5234a 100644
Binary 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 differ
diff --git a/jarvis/ui/web/frontend/src/assets/society/figures/biped-pilot.glb b/jarvis/ui/web/frontend/src/assets/society/figures/biped-pilot.glb
index 2d235a54ea..1ea39d82f3 100644
Binary files a/jarvis/ui/web/frontend/src/assets/society/figures/biped-pilot.glb and b/jarvis/ui/web/frontend/src/assets/society/figures/biped-pilot.glb differ
diff --git a/jarvis/ui/web/frontend/src/assets/society/figures/biped-scientist.glb b/jarvis/ui/web/frontend/src/assets/society/figures/biped-scientist.glb
index 61b367ff46..72cbe45cc6 100644
Binary files a/jarvis/ui/web/frontend/src/assets/society/figures/biped-scientist.glb and b/jarvis/ui/web/frontend/src/assets/society/figures/biped-scientist.glb differ
diff --git a/jarvis/ui/web/frontend/src/assets/society/figures/biped-toon.glb b/jarvis/ui/web/frontend/src/assets/society/figures/biped-toon.glb
index 6a7e507610..b57c102486 100644
Binary files a/jarvis/ui/web/frontend/src/assets/society/figures/biped-toon.glb and b/jarvis/ui/web/frontend/src/assets/society/figures/biped-toon.glb differ
diff --git a/jarvis/ui/web/frontend/src/assets/society/figures/biped-worker.glb b/jarvis/ui/web/frontend/src/assets/society/figures/biped-worker.glb
index 35fdd977f7..9c6767e72d 100644
Binary files a/jarvis/ui/web/frontend/src/assets/society/figures/biped-worker.glb and b/jarvis/ui/web/frontend/src/assets/society/figures/biped-worker.glb differ
diff --git a/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/belt-sash-broad.glb b/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/belt-sash-broad.glb
new file mode 100644
index 0000000000..f77631e8c5
Binary files /dev/null and b/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/belt-sash-broad.glb differ
diff --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.glb
index 54c1e79996..c86a16431d 100644
Binary files a/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/belt-sash.glb and b/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/belt-sash.glb differ
diff --git a/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/belt-toolbelt-broad.glb b/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/belt-toolbelt-broad.glb
new file mode 100644
index 0000000000..48a1d9d2d8
Binary files /dev/null and b/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/belt-toolbelt-broad.glb differ
diff --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.glb
index e1d9e6eb8d..d358747665 100644
Binary files a/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/belt-toolbelt.glb and b/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/belt-toolbelt.glb differ
diff --git a/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/torso_over-apron-broad.glb b/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/torso_over-apron-broad.glb
new file mode 100644
index 0000000000..c3b16466cf
Binary files /dev/null and b/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/torso_over-apron-broad.glb differ
diff --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.glb
index 4c6464e86f..820028c45f 100644
Binary files a/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/torso_over-apron.glb and b/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/torso_over-apron.glb differ
diff --git a/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/torso_over-plate-broad.glb b/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/torso_over-plate-broad.glb
new file mode 100644
index 0000000000..e6fc0b8ee1
Binary files /dev/null and b/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/torso_over-plate-broad.glb differ
diff --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.glb
index c94f6ba9cf..493738ff6c 100644
Binary files a/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/torso_over-plate.glb and b/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/torso_over-plate.glb differ
diff --git a/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/torso_over-vest-broad.glb b/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/torso_over-vest-broad.glb
new file mode 100644
index 0000000000..12f730c54e
Binary files /dev/null and b/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/torso_over-vest-broad.glb differ
diff --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.glb
index 369d39a152..dee924da26 100644
Binary files a/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/torso_over-vest.glb and b/jarvis/ui/web/frontend/src/assets/society/figures/parts/biped/torso_over-vest.glb differ
diff --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.glb
index 945b3d571f..03afd2088b 100644
Binary files a/jarvis/ui/web/frontend/src/assets/society/figures/parts/quadruped/back-blanket.glb and b/jarvis/ui/web/frontend/src/assets/society/figures/parts/quadruped/back-blanket.glb differ
diff --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.glb
index 1ccd28f34e..786ff617e3 100644
Binary files a/jarvis/ui/web/frontend/src/assets/society/figures/parts/quadruped/back-saddlebag.glb and b/jarvis/ui/web/frontend/src/assets/society/figures/parts/quadruped/back-saddlebag.glb differ
diff --git a/jarvis/ui/web/frontend/src/assets/society/figures/parts/quadruped/collar-band.glb b/jarvis/ui/web/frontend/src/assets/society/figures/parts/quadruped/collar-band.glb
index 68bf1724cf..352aa30b2c 100644
Binary files a/jarvis/ui/web/frontend/src/assets/society/figures/parts/quadruped/collar-band.glb and b/jarvis/ui/web/frontend/src/assets/society/figures/parts/quadruped/collar-band.glb differ
diff --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.glb
index 5cc3cb984b..7e77a42ae4 100644
Binary files a/jarvis/ui/web/frontend/src/assets/society/figures/parts/quadruped/collar-bandana.glb and b/jarvis/ui/web/frontend/src/assets/society/figures/parts/quadruped/collar-bandana.glb differ
diff --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.glb
index b98123e52c..a52ed954ce 100644
Binary files a/jarvis/ui/web/frontend/src/assets/society/figures/parts/quadruped/collar-scarf.glb and b/jarvis/ui/web/frontend/src/assets/society/figures/parts/quadruped/collar-scarf.glb differ
diff --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.glb
index 21ce443c9c..c2a3b19c9b 100644
Binary files a/jarvis/ui/web/frontend/src/assets/society/figures/parts/quadruped/headgear-antlers.glb and b/jarvis/ui/web/frontend/src/assets/society/figures/parts/quadruped/headgear-antlers.glb differ
diff --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.glb
index ce0acf0e54..1d845ae7eb 100644
Binary files a/jarvis/ui/web/frontend/src/assets/society/figures/parts/quadruped/headgear-pet-cap.glb and b/jarvis/ui/web/frontend/src/assets/society/figures/parts/quadruped/headgear-pet-cap.glb differ
diff --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.glb
index e90568f974..1a72da0b03 100644
Binary files a/jarvis/ui/web/frontend/src/assets/society/figures/parts/quadruped/tail_extra-bow.glb and b/jarvis/ui/web/frontend/src/assets/society/figures/parts/quadruped/tail_extra-bow.glb differ
diff --git a/jarvis/ui/web/frontend/src/assets/society/figures/quadruped-bear.glb b/jarvis/ui/web/frontend/src/assets/society/figures/quadruped-bear.glb
index 546c803a3a..68cee2745c 100644
Binary files a/jarvis/ui/web/frontend/src/assets/society/figures/quadruped-bear.glb and b/jarvis/ui/web/frontend/src/assets/society/figures/quadruped-bear.glb differ
diff --git a/jarvis/ui/web/frontend/src/assets/society/figures/quadruped-cat.glb b/jarvis/ui/web/frontend/src/assets/society/figures/quadruped-cat.glb
index dd6907fafa..3dc12d2758 100644
Binary files a/jarvis/ui/web/frontend/src/assets/society/figures/quadruped-cat.glb and b/jarvis/ui/web/frontend/src/assets/society/figures/quadruped-cat.glb differ
diff --git a/jarvis/ui/web/frontend/src/assets/society/figures/quadruped-dog.glb b/jarvis/ui/web/frontend/src/assets/society/figures/quadruped-dog.glb
index 261fe992f6..0b596e463f 100644
Binary files a/jarvis/ui/web/frontend/src/assets/society/figures/quadruped-dog.glb and b/jarvis/ui/web/frontend/src/assets/society/figures/quadruped-dog.glb differ
diff --git a/jarvis/ui/web/frontend/src/assets/society/figures/quadruped-fox.glb b/jarvis/ui/web/frontend/src/assets/society/figures/quadruped-fox.glb
index 51d298b729..eafa07a4ee 100644
Binary 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 differ
diff --git a/jarvis/ui/web/frontend/src/assets/society/figures/quadruped-rabbit.glb b/jarvis/ui/web/frontend/src/assets/society/figures/quadruped-rabbit.glb
index 06fa278696..938657d551 100644
Binary files a/jarvis/ui/web/frontend/src/assets/society/figures/quadruped-rabbit.glb and b/jarvis/ui/web/frontend/src/assets/society/figures/quadruped-rabbit.glb differ
diff --git a/jarvis/ui/web/frontend/src/assets/society/figures/quadruped-wolf.glb b/jarvis/ui/web/frontend/src/assets/society/figures/quadruped-wolf.glb
index 1b881398bd..f210b066e7 100644
Binary files a/jarvis/ui/web/frontend/src/assets/society/figures/quadruped-wolf.glb and b/jarvis/ui/web/frontend/src/assets/society/figures/quadruped-wolf.glb differ
diff --git a/jarvis/ui/web/frontend/src/assets/society/figures/spirit-gigi.glb b/jarvis/ui/web/frontend/src/assets/society/figures/spirit-gigi.glb
index 0fcad3623f..ce7f2e9c5a 100644
Binary 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 differ
diff --git a/jarvis/ui/web/frontend/src/components/society/create/CreateAgentDialog.tsx b/jarvis/ui/web/frontend/src/components/society/create/CreateAgentDialog.tsx
index 877360f950..c743210b12 100644
--- a/jarvis/ui/web/frontend/src/components/society/create/CreateAgentDialog.tsx
+++ b/jarvis/ui/web/frontend/src/components/society/create/CreateAgentDialog.tsx
@@ -250,11 +250,12 @@ export function CreateAgentDialog({ open, onClose, onCreated }: CreateAgentDialo
// 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 fitSize = baseEntry?.fitSize ?? null;
const styleOptions = useMemo(() => stylesWithBases(), []);
const bases = useMemo(() => basesForStyle(style), [style]);
const slots = useMemo(
- () => (imported ? [] : slotsWithParts(archetype, style, family)),
- [imported, archetype, style, family],
+ () => (imported ? [] : slotsWithParts(archetype, style, family, fitSize)),
+ [imported, archetype, style, family, fitSize],
);
const heights = imported ? IMPORTED_RANGE : (HEIGHT_RANGE[archetype] ?? HEIGHT_RANGE.biped);
const defaultHeight = baseEntry?.heightM ?? 1.75;
@@ -271,6 +272,7 @@ export function CreateAgentDialog({ open, onClose, onCreated }: CreateAgentDialo
const nextArchetype: FigureArchetype = entry?.archetype ?? "biped";
const band = HEIGHT_RANGE[nextArchetype] ?? HEIGHT_RANGE.biped;
const nextFamily = entry?.family ?? null;
+ const nextSize = entry?.fitSize ?? null;
setStyle(nextStyle);
setRecipe((r) => {
const next: FigureRecipe = {
@@ -278,7 +280,7 @@ export function CreateAgentDialog({ open, onClose, onCreated }: CreateAgentDialo
archetype: nextArchetype,
base,
style: nextStyle,
- parts: keepablePartsFor(r.parts, nextArchetype, nextStyle, nextFamily),
+ parts: keepablePartsFor(r.parts, nextArchetype, nextStyle, nextFamily, nextSize),
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
@@ -719,7 +721,7 @@ export function CreateAgentDialog({ open, onClose, onCreated }: CreateAgentDialo
value={recipe.parts[slot] ?? ""}
options={[
{ value: "", label: t("society.create.none") },
- ...partsForSlot(slot, archetype, style, family).map((part) => ({
+ ...partsForSlot(slot, archetype, style, family, fitSize).map((part) => ({
value: part.id,
label: part.label,
})),
diff --git a/jarvis/ui/web/frontend/src/components/society/figures/catalog.json b/jarvis/ui/web/frontend/src/components/society/figures/catalog.json
index a6ea68568a..294eda555d 100644
--- a/jarvis/ui/web/frontend/src/components/society/figures/catalog.json
+++ b/jarvis/ui/web/frontend/src/components/society/figures/catalog.json
@@ -40,6 +40,7 @@
"emissive": "#6ff2e3"
},
"family": "jarvis-biped",
+ "fitSize": "slim",
"clipsFrom": "biped-clips.glb",
"source": "Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / Android",
"license": "first-party",
@@ -88,11 +89,12 @@
"emissive": "#ffd166"
},
"family": "jarvis-biped",
+ "fitSize": "slim",
"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,
+ "triangles": 360,
"clips": [
"celebrate",
"idle",
@@ -136,6 +138,7 @@
"emissive": "#ffd166"
},
"family": "kaykit-adventurers",
+ "fitSize": null,
"source": "KayKit Character Pack: Adventurers 1.0 / Barbarian",
"license": "CC0-1.0",
"triangles": 4045,
@@ -182,6 +185,7 @@
"emissive": "#ffd166"
},
"family": "jarvis-biped",
+ "fitSize": "broad",
"clipsFrom": "biped-clips.glb",
"source": "Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / Blockhead",
"license": "first-party",
@@ -230,11 +234,12 @@
"emissive": "#ffd166"
},
"family": "jarvis-biped",
+ "fitSize": "slim",
"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",
- "triangles": 384,
+ "triangles": 396,
"clips": [
"celebrate",
"idle",
@@ -278,11 +283,12 @@
"emissive": "#ffe066"
},
"family": "jarvis-biped",
+ "fitSize": "broad",
"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",
- "triangles": 336,
+ "triangles": 348,
"clips": [
"celebrate",
"idle",
@@ -326,11 +332,12 @@
"emissive": "#ffd166"
},
"family": "jarvis-biped",
+ "fitSize": "broad",
"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,
+ "triangles": 360,
"clips": [
"celebrate",
"idle",
@@ -374,11 +381,12 @@
"emissive": "#ffd166"
},
"family": "jarvis-biped",
+ "fitSize": "slim",
"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,
+ "triangles": 396,
"clips": [
"celebrate",
"idle",
@@ -422,6 +430,7 @@
"emissive": "#ffd166"
},
"family": "kaykit-adventurers",
+ "fitSize": null,
"source": "KayKit Character Pack: Adventurers 1.0 / Knight",
"license": "CC0-1.0",
"triangles": 4148,
@@ -468,6 +477,7 @@
"emissive": "#ffd166"
},
"family": "kaykit-adventurers",
+ "fitSize": null,
"source": "KayKit Character Pack: Adventurers 1.0 / Mage",
"license": "CC0-1.0",
"triangles": 4029,
@@ -514,11 +524,12 @@
"emissive": "#ffd166"
},
"family": "jarvis-biped",
+ "fitSize": "slim",
"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,
+ "triangles": 396,
"clips": [
"celebrate",
"idle",
@@ -562,6 +573,7 @@
"emissive": "#ffd166"
},
"family": "jarvis-biped",
+ "fitSize": "slim",
"clipsFrom": "biped-clips.glb",
"source": "Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / Monk",
"license": "first-party",
@@ -610,11 +622,12 @@
"emissive": "#ffd166"
},
"family": "jarvis-biped",
+ "fitSize": "slim",
"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",
- "triangles": 360,
+ "triangles": 372,
"clips": [
"celebrate",
"idle",
@@ -646,8 +659,8 @@
"eyes": "#1b2427",
"primary": "#e8a33d",
"primary_shade": "#b57a24",
- "secondary": "#3b4550",
- "secondary_shade": "#262d35",
+ "secondary": "#dfe4e8",
+ "secondary_shade": "#a9b2b8",
"accent": "#e8a33d",
"metal": "#b6c0c6",
"leather": "#4a3a2c",
@@ -658,6 +671,7 @@
"emissive": "#7fdcff"
},
"family": "jarvis-biped",
+ "fitSize": "slim",
"clipsFrom": "biped-clips.glb",
"source": "Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / Pilot",
"license": "first-party",
@@ -706,6 +720,7 @@
"emissive": "#ffd166"
},
"family": "kaykit-adventurers",
+ "fitSize": null,
"source": "KayKit Character Pack: Adventurers 1.0 / Rogue",
"license": "CC0-1.0",
"triangles": 4263,
@@ -736,7 +751,7 @@
"palette": {
"skin": "#e9c3a3",
"skin_shade": "#c9926d",
- "hair": "#8a8f96",
+ "hair": "#5a4638",
"eyes": "#1b2427",
"primary": "#4a7fb0",
"primary_shade": "#2b3441",
@@ -752,11 +767,12 @@
"emissive": "#ffd166"
},
"family": "jarvis-biped",
+ "fitSize": "slim",
"clipsFrom": "biped-clips.glb",
"source": "Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / Scientist",
"license": "first-party",
"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,
+ "triangles": 420,
"clips": [
"celebrate",
"idle",
@@ -800,11 +816,12 @@
"emissive": "#ffd166"
},
"family": "jarvis-biped",
+ "fitSize": "slim",
"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,
+ "triangles": 348,
"clips": [
"celebrate",
"idle",
@@ -848,6 +865,7 @@
"emissive": "#ff6a4d"
},
"family": "jarvis-biped",
+ "fitSize": "broad",
"clipsFrom": "biped-clips.glb",
"source": "Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / Trooper",
"license": "first-party",
@@ -896,11 +914,12 @@
"emissive": "#ffd166"
},
"family": "jarvis-biped",
+ "fitSize": "broad",
"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,
+ "triangles": 396,
"clips": [
"celebrate",
"idle",
@@ -930,8 +949,8 @@
"skin_shade": "#d29488",
"hair": "#b8532a",
"eyes": "#1a1210",
- "primary": "#c25a2a",
- "primary_shade": "#9a4420",
+ "primary": "#4f7d4a",
+ "primary_shade": "#375c33",
"secondary": "#3a2a20",
"secondary_shade": "#d8d0c2",
"accent": "#d9a441",
@@ -944,6 +963,7 @@
"emissive": "#ffd166"
},
"family": "jarvis-quadruped",
+ "fitSize": null,
"clipsFrom": "quadruped-clips.glb",
"source": "Personal Jarvis animals (first-party) / Bear",
"license": "first-party",
@@ -976,8 +996,8 @@
"skin_shade": "#d29488",
"hair": "#b8532a",
"eyes": "#3fae6a",
- "primary": "#c25a2a",
- "primary_shade": "#9a4420",
+ "primary": "#c2503f",
+ "primary_shade": "#96392b",
"secondary": "#f0ece4",
"secondary_shade": "#d8d0c2",
"accent": "#7fd1a8",
@@ -990,6 +1010,7 @@
"emissive": "#ffd166"
},
"family": "jarvis-quadruped",
+ "fitSize": null,
"clipsFrom": "quadruped-clips.glb",
"source": "Personal Jarvis animals (first-party) / Cat",
"license": "first-party",
@@ -1022,8 +1043,8 @@
"skin_shade": "#d29488",
"hair": "#b8532a",
"eyes": "#2a1d14",
- "primary": "#c25a2a",
- "primary_shade": "#9a4420",
+ "primary": "#3f6d9e",
+ "primary_shade": "#2c4d70",
"secondary": "#f4efe6",
"secondary_shade": "#d8d0c2",
"accent": "#d24b3a",
@@ -1036,6 +1057,7 @@
"emissive": "#ffd166"
},
"family": "jarvis-quadruped",
+ "fitSize": null,
"clipsFrom": "quadruped-clips.glb",
"source": "Personal Jarvis animals (first-party) / Dog",
"license": "first-party",
@@ -1068,8 +1090,8 @@
"skin_shade": "#d29488",
"hair": "#b8532a",
"eyes": "#1a1614",
- "primary": "#c25a2a",
- "primary_shade": "#9a4420",
+ "primary": "#2f7d8f",
+ "primary_shade": "#1f5a68",
"secondary": "#f4efe6",
"secondary_shade": "#d8d0c2",
"accent": "#f2c14e",
@@ -1082,6 +1104,7 @@
"emissive": "#ffd166"
},
"family": "jarvis-quadruped",
+ "fitSize": null,
"clipsFrom": "quadruped-clips.glb",
"source": "Personal Jarvis animals (first-party) / Fox",
"license": "first-party",
@@ -1114,8 +1137,8 @@
"skin_shade": "#d29488",
"hair": "#b8532a",
"eyes": "#4a2e2a",
- "primary": "#c25a2a",
- "primary_shade": "#9a4420",
+ "primary": "#7a5ba8",
+ "primary_shade": "#5a3f82",
"secondary": "#f6f2ea",
"secondary_shade": "#d8d0c2",
"accent": "#e8a0b0",
@@ -1128,6 +1151,7 @@
"emissive": "#ffd166"
},
"family": "jarvis-quadruped",
+ "fitSize": null,
"clipsFrom": "quadruped-clips.glb",
"source": "Personal Jarvis animals (first-party) / Rabbit",
"license": "first-party",
@@ -1142,7 +1166,7 @@
"talk",
"walk"
],
- "height_m": 1.18
+ "height_m": 1.06
},
{
"id": "quadruped/wolf",
@@ -1160,8 +1184,8 @@
"skin_shade": "#d29488",
"hair": "#b8532a",
"eyes": "#d8c24a",
- "primary": "#c25a2a",
- "primary_shade": "#9a4420",
+ "primary": "#c9922f",
+ "primary_shade": "#9a6d1f",
"secondary": "#e4e8ec",
"secondary_shade": "#d8d0c2",
"accent": "#8fb8d8",
@@ -1174,6 +1198,7 @@
"emissive": "#ffd166"
},
"family": "jarvis-quadruped",
+ "fitSize": null,
"clipsFrom": "quadruped-clips.glb",
"source": "Personal Jarvis animals (first-party) / Wolf",
"license": "first-party",
@@ -1220,6 +1245,7 @@
"emissive": "#ffffff"
},
"family": "gigi",
+ "fitSize": null,
"source": "Gigi mascot (first-party) / Gigi",
"license": "first-party",
"triangles": 3540,
@@ -1249,6 +1275,9 @@
],
"hides": [],
"fits_family": null,
+ "fits_size": null,
+ "asymmetric": false,
+ "covers": [],
"from_base": "office",
"source": "Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / back-backpack",
"license": "first-party",
@@ -1271,6 +1300,9 @@
],
"hides": [],
"fits_family": null,
+ "fits_size": null,
+ "asymmetric": false,
+ "covers": [],
"from_base": "fox",
"source": "Personal Jarvis animals (first-party) / back-blanket",
"license": "first-party",
@@ -1295,6 +1327,9 @@
],
"hides": [],
"fits_family": null,
+ "fits_size": null,
+ "asymmetric": false,
+ "covers": [],
"from_base": "office",
"source": "Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / back-cloak",
"license": "first-party",
@@ -1317,6 +1352,9 @@
],
"hides": [],
"fits_family": null,
+ "fits_size": null,
+ "asymmetric": false,
+ "covers": [],
"from_base": "barbarian",
"source": "KayKit Character Pack: Adventurers 1.0 / Barbarian_Cape",
"license": "CC0-1.0",
@@ -1338,6 +1376,9 @@
],
"hides": [],
"fits_family": null,
+ "fits_size": null,
+ "asymmetric": false,
+ "covers": [],
"from_base": "office",
"source": "Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / back-jetpack",
"license": "first-party",
@@ -1361,6 +1402,9 @@
],
"hides": [],
"fits_family": null,
+ "fits_size": null,
+ "asymmetric": false,
+ "covers": [],
"from_base": "knight",
"source": "KayKit Character Pack: Adventurers 1.0 / Knight_Cape",
"license": "CC0-1.0",
@@ -1382,6 +1426,9 @@
],
"hides": [],
"fits_family": null,
+ "fits_size": null,
+ "asymmetric": false,
+ "covers": [],
"from_base": "mage",
"source": "KayKit Character Pack: Adventurers 1.0 / Mage_Cape",
"license": "CC0-1.0",
@@ -1404,6 +1451,9 @@
],
"hides": [],
"fits_family": null,
+ "fits_size": null,
+ "asymmetric": false,
+ "covers": [],
"from_base": "office",
"source": "Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / back-quiver",
"license": "first-party",
@@ -1426,6 +1476,9 @@
],
"hides": [],
"fits_family": null,
+ "fits_size": null,
+ "asymmetric": false,
+ "covers": [],
"from_base": "rogue",
"source": "KayKit Character Pack: Adventurers 1.0 / Rogue_Cape",
"license": "CC0-1.0",
@@ -1447,6 +1500,9 @@
],
"hides": [],
"fits_family": null,
+ "fits_size": null,
+ "asymmetric": false,
+ "covers": [],
"from_base": "fox",
"source": "Personal Jarvis animals (first-party) / back-saddlebag",
"license": "first-party",
@@ -1471,6 +1527,9 @@
],
"hides": [],
"fits_family": null,
+ "fits_size": null,
+ "asymmetric": true,
+ "covers": [],
"from_base": "office",
"source": "Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / back-satchel",
"license": "first-party",
@@ -1490,10 +1549,46 @@
"label": "Sash",
"styles": [
"fantasy",
- "cartoon"
+ "cartoon",
+ "modern"
],
"hides": [],
- "fits_family": null,
+ "fits_family": "jarvis-biped",
+ "fits_size": "slim",
+ "asymmetric": false,
+ "covers": [
+ "sides",
+ "front_back"
+ ],
+ "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-sash-broad",
+ "file": "parts/biped/belt-sash-broad.glb",
+ "archetype": "biped",
+ "slot": "belt",
+ "attach": "hips",
+ "label": "Sash",
+ "styles": [
+ "fantasy",
+ "cartoon",
+ "modern"
+ ],
+ "hides": [],
+ "fits_family": "jarvis-biped",
+ "fits_size": "broad",
+ "asymmetric": false,
+ "covers": [
+ "sides",
+ "front_back"
+ ],
"from_base": "office",
"source": "Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / belt-sash",
"license": "first-party",
@@ -1513,10 +1608,48 @@
"styles": [
"modern",
"scifi",
- "cartoon"
+ "cartoon",
+ "fantasy"
],
"hides": [],
- "fits_family": null,
+ "fits_family": "jarvis-biped",
+ "fits_size": "slim",
+ "asymmetric": false,
+ "covers": [
+ "sides",
+ "front_back"
+ ],
+ "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": "belt-toolbelt-broad",
+ "file": "parts/biped/belt-toolbelt-broad.glb",
+ "archetype": "biped",
+ "slot": "belt",
+ "attach": "hips",
+ "label": "Tool belt",
+ "styles": [
+ "modern",
+ "scifi",
+ "cartoon",
+ "fantasy"
+ ],
+ "hides": [],
+ "fits_family": "jarvis-biped",
+ "fits_size": "broad",
+ "asymmetric": false,
+ "covers": [
+ "sides",
+ "front_back"
+ ],
"from_base": "office",
"source": "Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / belt-toolbelt",
"license": "first-party",
@@ -1539,6 +1672,9 @@
],
"hides": [],
"fits_family": null,
+ "fits_size": null,
+ "asymmetric": false,
+ "covers": [],
"from_base": "fox",
"source": "Personal Jarvis animals (first-party) / collar-band",
"license": "first-party",
@@ -1561,6 +1697,9 @@
],
"hides": [],
"fits_family": null,
+ "fits_size": null,
+ "asymmetric": false,
+ "covers": [],
"from_base": "fox",
"source": "Personal Jarvis animals (first-party) / collar-bandana",
"license": "first-party",
@@ -1582,6 +1721,9 @@
],
"hides": [],
"fits_family": null,
+ "fits_size": null,
+ "asymmetric": false,
+ "covers": [],
"from_base": "fox",
"source": "Personal Jarvis animals (first-party) / collar-scarf",
"license": "first-party",
@@ -1607,6 +1749,9 @@
],
"hides": [],
"fits_family": "jarvis-biped",
+ "fits_size": null,
+ "asymmetric": false,
+ "covers": [],
"from_base": "office",
"source": "Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / face_extra-glasses",
"license": "first-party",
@@ -1629,6 +1774,9 @@
],
"hides": [],
"fits_family": "jarvis-biped",
+ "fits_size": null,
+ "asymmetric": false,
+ "covers": [],
"from_base": "office",
"source": "Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / face_extra-respirator",
"license": "first-party",
@@ -1655,6 +1803,9 @@
],
"hides": [],
"fits_family": "jarvis-biped",
+ "fits_size": null,
+ "asymmetric": false,
+ "covers": [],
"from_base": "office",
"source": "Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / face_extra-shades",
"license": "first-party",
@@ -1680,6 +1831,9 @@
],
"hides": [],
"fits_family": null,
+ "fits_size": null,
+ "asymmetric": false,
+ "covers": [],
"from_base": "office",
"source": "Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / hand_l-clipboard",
"license": "first-party",
@@ -1705,6 +1859,9 @@
],
"hides": [],
"fits_family": null,
+ "fits_size": null,
+ "asymmetric": false,
+ "covers": [],
"from_base": "office",
"source": "Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / hand_l-lantern",
"license": "first-party",
@@ -1727,6 +1884,9 @@
],
"hides": [],
"fits_family": null,
+ "fits_size": null,
+ "asymmetric": false,
+ "covers": [],
"from_base": "knight",
"source": "KayKit Character Pack: Adventurers 1.0 / Round_Shield",
"license": "CC0-1.0",
@@ -1749,6 +1909,9 @@
],
"hides": [],
"fits_family": null,
+ "fits_size": null,
+ "asymmetric": false,
+ "covers": [],
"from_base": "mage",
"source": "KayKit Character Pack: Adventurers 1.0 / Spellbook",
"license": "CC0-1.0",
@@ -1775,6 +1938,9 @@
],
"hides": [],
"fits_family": null,
+ "fits_size": null,
+ "asymmetric": false,
+ "covers": [],
"from_base": "office",
"source": "Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / hand_l-tablet",
"license": "first-party",
@@ -1797,6 +1963,9 @@
],
"hides": [],
"fits_family": null,
+ "fits_size": null,
+ "asymmetric": false,
+ "covers": [],
"from_base": "barbarian",
"source": "KayKit Character Pack: Adventurers 1.0 / Barbarian_Round_Shield",
"license": "CC0-1.0",
@@ -1821,6 +1990,9 @@
],
"hides": [],
"fits_family": null,
+ "fits_size": null,
+ "asymmetric": false,
+ "covers": [],
"from_base": "barbarian",
"source": "KayKit Character Pack: Adventurers 1.0 / 1H_Axe",
"license": "CC0-1.0",
@@ -1846,6 +2018,9 @@
],
"hides": [],
"fits_family": null,
+ "fits_size": null,
+ "asymmetric": false,
+ "covers": [],
"from_base": "office",
"source": "Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / hand_r-broom",
"license": "first-party",
@@ -1868,6 +2043,9 @@
],
"hides": [],
"fits_family": null,
+ "fits_size": null,
+ "asymmetric": false,
+ "covers": [],
"from_base": "rogue",
"source": "KayKit Character Pack: Adventurers 1.0 / Knife",
"license": "CC0-1.0",
@@ -1893,6 +2071,9 @@
],
"hides": [],
"fits_family": null,
+ "fits_size": null,
+ "asymmetric": false,
+ "covers": [],
"from_base": "barbarian",
"source": "KayKit Character Pack: Adventurers 1.0 / Mug",
"license": "CC0-1.0",
@@ -1917,6 +2098,9 @@
],
"hides": [],
"fits_family": null,
+ "fits_size": null,
+ "asymmetric": false,
+ "covers": [],
"from_base": "office",
"source": "Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / hand_r-scanner",
"license": "first-party",
@@ -1940,6 +2124,9 @@
],
"hides": [],
"fits_family": null,
+ "fits_size": null,
+ "asymmetric": false,
+ "covers": [],
"from_base": "mage",
"source": "KayKit Character Pack: Adventurers 1.0 / 2H_Staff",
"license": "CC0-1.0",
@@ -1963,6 +2150,9 @@
],
"hides": [],
"fits_family": null,
+ "fits_size": null,
+ "asymmetric": false,
+ "covers": [],
"from_base": "knight",
"source": "KayKit Character Pack: Adventurers 1.0 / 1H_Sword",
"license": "CC0-1.0",
@@ -1987,6 +2177,9 @@
],
"hides": [],
"fits_family": null,
+ "fits_size": null,
+ "asymmetric": false,
+ "covers": [],
"from_base": "office",
"source": "Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / hand_r-torch",
"license": "first-party",
@@ -2011,6 +2204,9 @@
],
"hides": [],
"fits_family": null,
+ "fits_size": null,
+ "asymmetric": false,
+ "covers": [],
"from_base": "office",
"source": "Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / hand_r-wrench",
"license": "first-party",
@@ -2033,6 +2229,9 @@
],
"hides": [],
"fits_family": null,
+ "fits_size": null,
+ "asymmetric": false,
+ "covers": [],
"from_base": "fox",
"source": "Personal Jarvis animals (first-party) / headgear-antlers",
"license": "first-party",
@@ -2058,6 +2257,9 @@
"hair"
],
"fits_family": "jarvis-biped",
+ "fits_size": null,
+ "asymmetric": false,
+ "covers": [],
"from_base": "office",
"source": "Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / headgear-beanie",
"license": "first-party",
@@ -2085,6 +2287,9 @@
"hair"
],
"fits_family": "jarvis-biped",
+ "fits_size": null,
+ "asymmetric": false,
+ "covers": [],
"from_base": "office",
"source": "Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / headgear-cap",
"license": "first-party",
@@ -2109,6 +2314,9 @@
],
"hides": [],
"fits_family": "jarvis-biped",
+ "fits_size": null,
+ "asymmetric": false,
+ "covers": [],
"from_base": "office",
"source": "Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / headgear-crown",
"license": "first-party",
@@ -2134,6 +2342,9 @@
"hair"
],
"fits_family": "jarvis-biped",
+ "fits_size": null,
+ "asymmetric": false,
+ "covers": [],
"from_base": "office",
"source": "Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / headgear-hardhat",
"license": "first-party",
@@ -2158,6 +2369,9 @@
],
"hides": [],
"fits_family": "jarvis-biped",
+ "fits_size": null,
+ "asymmetric": false,
+ "covers": [],
"from_base": "office",
"source": "Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / headgear-headset",
"license": "first-party",
@@ -2182,6 +2396,9 @@
"hair"
],
"fits_family": null,
+ "fits_size": null,
+ "asymmetric": false,
+ "covers": [],
"from_base": "barbarian",
"source": "KayKit Character Pack: Adventurers 1.0 / Barbarian_Hat",
"license": "CC0-1.0",
@@ -2207,6 +2424,9 @@
"hair"
],
"fits_family": null,
+ "fits_size": null,
+ "asymmetric": false,
+ "covers": [],
"from_base": "knight",
"source": "KayKit Character Pack: Adventurers 1.0 / Knight_Helmet",
"license": "CC0-1.0",
@@ -2230,6 +2450,9 @@
"hair"
],
"fits_family": null,
+ "fits_size": null,
+ "asymmetric": false,
+ "covers": [],
"from_base": "mage",
"source": "KayKit Character Pack: Adventurers 1.0 / Mage_Hat",
"license": "CC0-1.0",
@@ -2253,6 +2476,9 @@
],
"hides": [],
"fits_family": null,
+ "fits_size": null,
+ "asymmetric": false,
+ "covers": [],
"from_base": "fox",
"source": "Personal Jarvis animals (first-party) / headgear-pet-cap",
"license": "first-party",
@@ -2277,6 +2503,9 @@
"hair"
],
"fits_family": "jarvis-biped",
+ "fits_size": null,
+ "asymmetric": false,
+ "covers": [],
"from_base": "office",
"source": "Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / headgear-space-helmet",
"license": "first-party",
@@ -2303,6 +2532,9 @@
"hair"
],
"fits_family": "jarvis-biped",
+ "fits_size": null,
+ "asymmetric": false,
+ "covers": [],
"from_base": "office",
"source": "Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / headgear-top-hat",
"license": "first-party",
@@ -2325,6 +2557,9 @@
],
"hides": [],
"fits_family": null,
+ "fits_size": null,
+ "asymmetric": false,
+ "covers": [],
"from_base": "fox",
"source": "Personal Jarvis animals (first-party) / tail_extra-bow",
"license": "first-party",
@@ -2348,7 +2583,41 @@
"scifi"
],
"hides": [],
- "fits_family": null,
+ "fits_family": "jarvis-biped",
+ "fits_size": "slim",
+ "asymmetric": false,
+ "covers": [
+ "sides"
+ ],
+ "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-apron-broad",
+ "file": "parts/biped/torso_over-apron-broad.glb",
+ "archetype": "biped",
+ "slot": "torso_over",
+ "attach": "chest",
+ "label": "Apron",
+ "styles": [
+ "modern",
+ "fantasy",
+ "cartoon",
+ "scifi"
+ ],
+ "hides": [],
+ "fits_family": "jarvis-biped",
+ "fits_size": "broad",
+ "asymmetric": false,
+ "covers": [
+ "sides"
+ ],
"from_base": "office",
"source": "Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / torso_over-apron",
"license": "first-party",
@@ -2370,15 +2639,50 @@
"fantasy"
],
"hides": [],
- "fits_family": null,
+ "fits_family": "jarvis-biped",
+ "fits_size": "slim",
+ "asymmetric": false,
+ "covers": [
+ "sides",
+ "front_back"
+ ],
"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,
+ "metal": 24,
"accent": 6
},
- "triangles": 36,
+ "triangles": 60,
+ "two_sided": false
+ },
+ {
+ "id": "torso_over-plate-broad",
+ "file": "parts/biped/torso_over-plate-broad.glb",
+ "archetype": "biped",
+ "slot": "torso_over",
+ "attach": "chest",
+ "label": "Chest plate",
+ "styles": [
+ "scifi",
+ "fantasy"
+ ],
+ "hides": [],
+ "fits_family": "jarvis-biped",
+ "fits_size": "broad",
+ "asymmetric": false,
+ "covers": [
+ "sides",
+ "front_back"
+ ],
+ "from_base": "office",
+ "source": "Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / torso_over-plate",
+ "license": "first-party",
+ "palette_cells": {
+ "metal": 24,
+ "accent": 6
+ },
+ "triangles": 60,
"two_sided": false
},
{
@@ -2395,7 +2699,41 @@
"cartoon"
],
"hides": [],
- "fits_family": null,
+ "fits_family": "jarvis-biped",
+ "fits_size": "slim",
+ "asymmetric": false,
+ "covers": [
+ "sides"
+ ],
+ "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
+ },
+ {
+ "id": "torso_over-vest-broad",
+ "file": "parts/biped/torso_over-vest-broad.glb",
+ "archetype": "biped",
+ "slot": "torso_over",
+ "attach": "chest",
+ "label": "Vest",
+ "styles": [
+ "modern",
+ "fantasy",
+ "scifi",
+ "cartoon"
+ ],
+ "hides": [],
+ "fits_family": "jarvis-biped",
+ "fits_size": "broad",
+ "asymmetric": false,
+ "covers": [
+ "sides"
+ ],
"from_base": "office",
"source": "Personal Jarvis humanoids (first-party meshes on the KayKit CC0 rig) / torso_over-vest",
"license": "first-party",
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.ts
index a6cfae032d..0ab42cac18 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
@@ -14,6 +14,7 @@ import {
archetypeOfBase,
basesForStyle,
catalogBaseFor,
+ fitsBody,
keepablePartsFor,
partAssetsFor,
partsForSlot,
@@ -93,6 +94,37 @@ describe("a part is only ever offered where it fits", () => {
}
});
+ /**
+ * The Knight bug: a plate cut for one torso hung in front of a wider one as
+ * a narrow board, with the body showing past both edges. A garment that
+ * wraps the body is now cut per girth and only offered to the girth it fits.
+ */
+ it("offers exactly one cut of every wrapping garment per body", () => {
+ const wrapping = CATALOG.parts.filter((p) => p.fits_size);
+ expect(wrapping.length).toBeGreaterThan(0);
+ for (const base of CATALOG.bases) {
+ const labels = new Map<string, number>();
+ for (const part of wrapping) {
+ if (part.archetype !== base.archetype) continue;
+ if (!base.styles.some((s) => part.styles.includes(s))) continue;
+ if (!fitsBody(part, base.family ?? null, base.fitSize)) continue;
+ const key = `${part.slot}/${part.label}`;
+ labels.set(key, (labels.get(key) ?? 0) + 1);
+ }
+ for (const [key, count] of labels) {
+ expect(count, `${base.label} is offered ${count} of ${key}`).toBe(1);
+ }
+ }
+ });
+
+ it("never offers a wrapping garment to a body with no cut of its own", () => {
+ // The KayKit bodies have their own build; a garment measured against this
+ // module's torso must not reach them at all.
+ for (const part of CATALOG.parts.filter((p) => p.fits_size)) {
+ expect(part.fits_family, part.id).toBeTruthy();
+ }
+ });
+
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) {
diff --git a/jarvis/ui/web/frontend/src/components/society/figures/figureRegistry.ts b/jarvis/ui/web/frontend/src/components/society/figures/figureRegistry.ts
index bdc804a457..faf32f3a54 100644
--- a/jarvis/ui/web/frontend/src/components/society/figures/figureRegistry.ts
+++ b/jarvis/ui/web/frontend/src/components/society/figures/figureRegistry.ts
@@ -34,6 +34,12 @@ export interface CatalogBase {
* the style tag alone can no longer keep them apart.
*/
family?: string;
+ /**
+ * Which cut of a wrapping garment this body takes. The skull is one size
+ * for every body this rig makes, but the torso runs from bulk 0.88 to 1.32,
+ * so a vest, a plate, an apron and a belt come in two.
+ */
+ fitSize?: string | null;
/**
* 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
@@ -64,6 +70,10 @@ export interface CatalogPart {
* which every biped of the rig places identically.
*/
fits_family?: string | null;
+ /** Set on a garment that wraps the torso: the size class it was cut for. */
+ fits_size?: string | null;
+ /** True for a piece worn deliberately off centre — a shoulder bag. */
+ asymmetric?: boolean;
}
export interface FigureCatalog {
@@ -228,13 +238,14 @@ export function partsForSlot(
archetype: FigureArchetype = "biped",
style: string | null = null,
family: string | null = null,
+ size: string | null = null,
): CatalogPart[] {
return CATALOG.parts.filter(
(p) =>
p.archetype === archetype &&
p.slot === slot &&
(!style || p.styles.includes(style)) &&
- fitsFamily(p, family),
+ fitsBody(p, family, size),
);
}
@@ -243,6 +254,20 @@ export function fitsFamily(part: CatalogPart, family: string | null): boolean {
return !part.fits_family || !family || part.fits_family === family;
}
+/** Same idea one size down: a wrapping garment fits only the girth it was cut for. */
+export function fitsSize(part: CatalogPart, size: string | null | undefined): boolean {
+ return !part.fits_size || !size || part.fits_size === size;
+}
+
+/** Both fit tests at once — what the creator asks before it offers a piece. */
+export function fitsBody(
+ part: CatalogPart,
+ family: string | null,
+ size: string | null | undefined,
+): boolean {
+ return fitsFamily(part, family) && fitsSize(part, size);
+}
+
/**
* 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
@@ -252,12 +277,13 @@ export function slotsWithParts(
archetype: FigureArchetype = "biped",
style: string | null = null,
family: string | null = null,
+ size: 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 (!fitsBody(p, family, size)) continue;
if (!seen.includes(p.slot)) seen.push(p.slot);
}
return seen;
@@ -273,13 +299,27 @@ export function keepablePartsFor(
archetype: FigureArchetype,
style: string | null,
family: string | null = null,
+ size: 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;
+ if (!fitsBody(part, family, size)) {
+ // A vest is a vest whichever girth it was cut for: when the new body
+ // takes the other cut, swap to it rather than silently undressing.
+ const swap = CATALOG.parts.find(
+ (p) =>
+ p.slot === part.slot &&
+ p.label === part.label &&
+ p.archetype === archetype &&
+ (!style || p.styles.includes(style)) &&
+ fitsBody(p, family, size),
+ );
+ if (swap) kept[slot] = swap.id;
+ continue;
+ }
kept[slot] = id;
}
return kept;
diff --git a/scripts/figures/audit_fit.py b/scripts/figures/audit_fit.py
new file mode 100644
index 0000000000..47f4b94c29
--- /dev/null
+++ b/scripts/figures/audit_fit.py
@@ -0,0 +1,408 @@
+#!/usr/bin/env python
+"""Fit audit — does every part the creator offers actually sit on the body?
+
+ python scripts/figures/audit_fit.py [--json] [--base knight]
+
+The creator can produce ~500 base+part combinations. Nobody can look at that
+many, and the eye is the wrong instrument anyway: a hat that leaves 2 cm of
+skull showing is a bug at any zoom, and a plate cut for one torso hanging in
+front of a wider one is a bug in the numbers before it is one in a screenshot.
+
+So this reads the SHIPPED GLBs, groups every vertex by the joint that owns it,
+and compares the box a part occupies on a joint against the box the body
+occupies on the same joint. It reports, per combination:
+
+* ``floats`` — a gap between the part and the body region it hangs on
+* ``buried`` — the part is entirely inside the body; nobody will see it
+* ``exposes`` — a covering piece (headgear, torso_over, belt) is narrower or
+ shallower than the body under it, so the body pokes out
+* ``off-centre``— the part is not centred on the body region it belongs to
+* ``oversized`` — the part dwarfs the body region, which reads as a prop
+ floating around the figure rather than worn on it
+
+Rest pose only, and that is the point: a fit problem is a rest-pose problem.
+Stdlib only (`glb_tools.py`); never imports ``jarvis.*``.
+
+Exit codes: 0 = every offered combination fits, 1 = at least one does not,
+78 = nothing to audit (no catalog / no assets).
+"""
+
+from __future__ import annotations
+
+import argparse
+import importlib.util
+import json
+import pathlib
+import sys
+from collections import defaultdict
+from dataclasses import dataclass
+from pathlib import Path
+
+_REPO = Path(__file__).resolve().parents[2]
+_FIGURES = _REPO / "jarvis/ui/web/frontend/src/assets/society/figures"
+_CATALOG = _REPO / "jarvis/ui/web/frontend/src/components/society/figures/catalog.json"
+_TOOLS = Path(__file__).resolve().parent / "glb_tools.py"
+
+EXIT_SKIPPED = 78
+
+#: Styles the creator never offers, so their combinations are not audited.
+RESERVED_STYLES = {"spirit", "custom"}
+
+#: Which way a piece is expected to cover the body under it. A garment says
+#: so in the catalog (`covers`), because "covers" is not one question: an
+#: apron covers the front, a vest the sides and back, a belt all the way
+#: round, and marking any of them short for a gap it has on purpose is noise.
+#: Headgear that hides the hair is a hat and covers every way.
+COVER_AXES = {"sides": 0, "front_back": 2}
+
+#: Slots held in a hand: they hang off a slot bone in open air, so "floats"
+#: and "off-centre" mean nothing for them.
+HELD_SLOTS = {"hand_l", "hand_r"}
+
+#: Slots that hang clear of the body along one axis BY DESIGN — a cape falls
+#: behind the chest and past the hips, glasses sit in front of the face — so
+#: their depth and height are not measured against the body region.
+TRAILING_SLOTS = {"back", "face_extra", "tail_extra"}
+
+#: Metres. A part may sit this far from the body before it reads as floating.
+GAP_TOLERANCE = 0.06
+#: Metres. How far a covering piece may fall short of the body under it.
+COVER_TOLERANCE = 0.015
+#: Metres. How far a part may drift SIDEWAYS from the body region it hangs on.
+#: Sideways only: front-to-back drift is what a cape and a pair of glasses are.
+CENTRE_TOLERANCE = 0.10
+#: A part wider than this multiple of the body region reads as scenery.
+OVERSIZE_FACTOR = 3.0
+
+
+def _load_tools():
+ if "glb_tools" in sys.modules:
+ return sys.modules["glb_tools"]
+ spec = importlib.util.spec_from_file_location("glb_tools", _TOOLS)
+ mod = importlib.util.module_from_spec(spec)
+ assert spec and spec.loader
+ sys.modules["glb_tools"] = mod
+ spec.loader.exec_module(mod)
+ return mod
+
+
+@dataclass(frozen=True)
+class Box:
+ lo: tuple[float, float, float]
+ hi: tuple[float, float, float]
+
+ @property
+ def size(self) -> tuple[float, float, float]:
+ return tuple(hi - lo for hi, lo in zip(self.hi, self.lo, strict=True)) # type: ignore
+
+ @property
+ def centre(self) -> tuple[float, float, float]:
+ return tuple((hi + lo) / 2 for hi, lo in zip(self.hi, self.lo, strict=True)) # type: ignore
+
+ def gap_to(self, other: Box) -> float:
+ """0 when the boxes touch or overlap; else the shortest distance between them."""
+ out = 0.0
+ for axis in range(3):
+ d = max(self.lo[axis] - other.hi[axis], other.lo[axis] - self.hi[axis], 0.0)
+ out = max(out, d)
+ return out
+
+ def inside(self, other: Box, slack: float = 0.0) -> bool:
+ return all(
+ self.lo[a] >= other.lo[a] - slack and self.hi[a] <= other.hi[a] + slack
+ for a in range(3)
+ )
+
+
+def _accessor(gt, glb, index: int):
+ return gt.accessor_values(glb, index)
+
+
+def _apply(matrix, point) -> tuple[float, float, float]:
+ """Column-major glTF matrix times a point."""
+ x, y, z = point[0], point[1], point[2]
+ return (
+ matrix[0] * x + matrix[4] * y + matrix[8] * z + matrix[12],
+ matrix[1] * x + matrix[5] * y + matrix[9] * z + matrix[13],
+ matrix[2] * x + matrix[6] * y + matrix[10] * z + matrix[14],
+ )
+
+
+def joint_boxes(gt, path: Path) -> dict[str, Box]:
+ """A box per joint: the vertices that joint owns, in rest-pose model space.
+
+ A vertex belongs to the joint with its largest weight — every piece here is
+ rigidly weighted, so that is simply "the bone it hangs on".
+ """
+ glb = gt.read_glb(path)
+ doc = glb.doc
+ skins = doc.get("skins", [])
+ if not skins:
+ return {}
+ joints = [doc["nodes"][n].get("name", str(n)) for n in skins[0]["joints"]]
+ worlds = gt.world_matrices(doc)
+ nodes = doc.get("nodes", [])
+ out: dict[str, list[list[float]]] = defaultdict(lambda: [[1e9] * 3, [-1e9] * 3])
+ for node_index in gt.skinned_mesh_nodes(doc):
+ mesh = doc["meshes"][nodes[node_index]["mesh"]]
+ matrix = worlds[node_index]
+ for prim in mesh["primitives"]:
+ attrs = prim["attributes"]
+ if "JOINTS_0" not in attrs or "WEIGHTS_0" not in attrs:
+ continue
+ positions = _accessor(gt, glb, attrs["POSITION"])
+ joint_ids = _accessor(gt, glb, attrs["JOINTS_0"])
+ weights = _accessor(gt, glb, attrs["WEIGHTS_0"])
+ for pos, ids, ws in zip(positions, joint_ids, weights, strict=True):
+ best = max(range(len(ws)), key=lambda i: ws[i])
+ if ws[best] <= 0:
+ continue
+ name = joints[int(ids[best])]
+ world = _apply(matrix, pos)
+ box = out[name]
+ for axis in range(3):
+ box[0][axis] = min(box[0][axis], world[axis])
+ box[1][axis] = max(box[1][axis], world[axis])
+ return {k: Box(tuple(v[0]), tuple(v[1])) for k, v in out.items()}
+
+
+#: Height of one measuring slice, in metres. Fine enough to separate a hood
+#: from the chest under it, coarse enough that a 12-triangle box still lands
+#: in several.
+SLICE = 0.04
+
+
+def slice_profile(
+ gt, path: pathlib.Path
+) -> tuple[dict[str, Box], dict[str, dict[int, tuple[float, float, float, float]]]]:
+ """Per-joint boxes AND, per joint, the X/Z span of each height slice.
+
+ The slices are what makes "does this cover the body" answerable: a garment
+ is compared with the body only where the two share height.
+ """
+ glb = gt.read_glb(path)
+ doc = glb.doc
+ skins = doc.get("skins", [])
+ if not skins:
+ return {}, {}
+ joints = [doc["nodes"][n].get("name", str(n)) for n in skins[0]["joints"]]
+ worlds = gt.world_matrices(doc)
+ nodes = doc.get("nodes", [])
+ boxes: dict[str, list[list[float]]] = defaultdict(lambda: [[1e9] * 3, [-1e9] * 3])
+ slices: dict[str, dict[int, list[float]]] = defaultdict(dict)
+ for node_index in gt.skinned_mesh_nodes(doc):
+ mesh = doc["meshes"][nodes[node_index]["mesh"]]
+ matrix = worlds[node_index]
+ for prim in mesh["primitives"]:
+ attrs = prim["attributes"]
+ if "JOINTS_0" not in attrs or "WEIGHTS_0" not in attrs:
+ continue
+ positions = _accessor(gt, glb, attrs["POSITION"])
+ joint_ids = _accessor(gt, glb, attrs["JOINTS_0"])
+ weights = _accessor(gt, glb, attrs["WEIGHTS_0"])
+ for pos, ids, ws in zip(positions, joint_ids, weights, strict=True):
+ best = max(range(len(ws)), key=lambda i: ws[i])
+ if ws[best] <= 0:
+ continue
+ name = joints[int(ids[best])]
+ world = _apply(matrix, pos)
+ box = boxes[name]
+ for axis in range(3):
+ box[0][axis] = min(box[0][axis], world[axis])
+ box[1][axis] = max(box[1][axis], world[axis])
+ key = int(world[1] // SLICE)
+ cur = slices[name].get(key)
+ if cur is None:
+ slices[name][key] = [world[0], world[0], world[2], world[2]]
+ else:
+ cur[0] = min(cur[0], world[0])
+ cur[1] = max(cur[1], world[0])
+ cur[2] = min(cur[2], world[2])
+ cur[3] = max(cur[3], world[2])
+ return (
+ {k: Box(tuple(v[0]), tuple(v[1])) for k, v in boxes.items()},
+ {k: {i: tuple(v) for i, v in s.items()} for k, s in slices.items()},
+ )
+
+
+def body_under(
+ body_slices: dict[str, dict[int, tuple[float, float, float, float]]],
+ joints: list[str],
+ lo_y: float,
+ hi_y: float,
+) -> Box | None:
+ """The body's own box, clipped to the height band a garment occupies.
+
+ A hood and a pair of shoulder pads ride the `chest` bone; a vest worn
+ under them is not short for letting them show. Clipping to the garment's
+ own band asks the question that matters — is it narrower than the body it
+ actually sits on — and nothing else.
+ """
+ lo = [1e9, lo_y, 1e9]
+ hi = [-1e9, hi_y, -1e9]
+ found = False
+ for joint in joints:
+ for key, span in body_slices.get(joint, {}).items():
+ centre = (key + 0.5) * SLICE
+ if not (lo_y - SLICE <= centre <= hi_y + SLICE):
+ continue
+ found = True
+ lo[0] = min(lo[0], span[0])
+ hi[0] = max(hi[0], span[1])
+ lo[2] = min(lo[2], span[2])
+ hi[2] = max(hi[2], span[3])
+ return Box(tuple(lo), tuple(hi)) if found else None
+
+
+def merged(boxes: dict[str, Box], names: list[str]) -> Box | None:
+ lo = [1e9] * 3
+ hi = [-1e9] * 3
+ found = False
+ for name in names:
+ box = boxes.get(name)
+ if box is None:
+ continue
+ found = True
+ for axis in range(3):
+ lo[axis] = min(lo[axis], box.lo[axis])
+ hi[axis] = max(hi[axis], box.hi[axis])
+ return Box(tuple(lo), tuple(hi)) if found else None
+
+
+def audit_pair(
+ base_boxes: dict[str, Box],
+ part_boxes: dict[str, Box],
+ part: dict,
+ base_slices: dict | None = None,
+ part_slices: dict | None = None,
+) -> list[str]:
+ """Every way this part fails to sit on this body, in plain words."""
+ problems: list[str] = []
+ slot = part["slot"]
+ joints = sorted(part_boxes)
+ if not joints:
+ return ["part has no skinned geometry"]
+ part_box = merged(part_boxes, joints)
+ body_box = merged(base_boxes, joints)
+ if part_box is None:
+ return ["part has no geometry on its own joints"]
+ if body_box is None:
+ # A quadruped's `tail_2` may carry no body vertices of its own; the
+ # part still rides the bone, so there is nothing to compare against.
+ return []
+ trailing = slot in TRAILING_SLOTS
+ base_slices = base_slices or {}
+ part_slices = part_slices or {}
+
+ if slot not in HELD_SLOTS:
+ gap = part_box.gap_to(body_box)
+ if gap > GAP_TOLERANCE:
+ problems.append(f"floats {gap * 100:.1f} cm off the body")
+ # Sideways only. A cape IS behind the chest and glasses ARE in front
+ # of the face; drifting left or right is the defect.
+ drift = abs(part_box.centre[0] - body_box.centre[0])
+ if drift > CENTRE_TOLERANCE and not part.get("asymmetric"):
+ problems.append(f"sits {drift * 100:.1f} cm off to one side")
+
+ if part_box.inside(body_box, slack=-0.005):
+ problems.append("is buried inside the body")
+
+ covers = list(part.get("covers") or [])
+ if slot == "headgear" and "hair" in part.get("hides", []):
+ covers = ["sides", "front_back"]
+ if covers:
+ under = body_under(base_slices, joints, part_box.lo[1], part_box.hi[1]) or body_box
+ for name in covers:
+ axis = COVER_AXES[name]
+ short = max(under.hi[axis] - part_box.hi[axis], part_box.lo[axis] - under.lo[axis])
+ if short > COVER_TOLERANCE:
+ problems.append(f"leaves the body showing at the {name} by {short * 100:.1f} cm")
+
+ if slot == "tail_extra":
+ axes: tuple[tuple[int, str], ...] = () # a bow IS wider than the tail it ties
+ elif trailing:
+ axes = ((0, "wide"),)
+ else:
+ axes = ((0, "wide"), (1, "tall"), (2, "deep"))
+ for axis, name in axes:
+ body_size = body_box.size[axis]
+ if body_size > 0.02 and part_box.size[axis] > body_size * OVERSIZE_FACTOR:
+ problems.append(
+ f"is {part_box.size[axis] / body_size:.1f}x as {name} as the body part it hangs on"
+ )
+ return problems
+
+
+def offered(catalog: dict) -> list[tuple[dict, dict]]:
+ """Every base+part pair the creator can actually produce."""
+ pairs = []
+ for base in catalog["bases"]:
+ styles = [s for s in base["styles"] if s not in RESERVED_STYLES]
+ if not styles:
+ continue
+ seen: set[str] = set()
+ for part in catalog["parts"]:
+ if part["archetype"] != base["archetype"] or part["id"] in seen:
+ continue
+ if not set(part["styles"]) & set(styles):
+ continue
+ if part.get("fits_family") and part["fits_family"] != base.get("family"):
+ continue
+ if part.get("fits_size") and part["fits_size"] != base.get("fitSize"):
+ continue
+ seen.add(part["id"])
+ pairs.append((base, part))
+ return pairs
+
+
+def run(only_base: str | None = None) -> dict[str, list[str]]:
+ gt = _load_tools()
+ catalog = json.loads(_CATALOG.read_text(encoding="utf-8"))
+ boxes: dict[str, tuple[dict[str, Box], dict]] = {}
+
+ def cached(file: str):
+ if file not in boxes:
+ boxes[file] = slice_profile(gt, _FIGURES / file)
+ return boxes[file]
+
+ findings: dict[str, list[str]] = {}
+ for base, part in offered(catalog):
+ if only_base and base["base"] != only_base:
+ continue
+ base_boxes, base_slices = cached(base["file"])
+ part_boxes, part_slices = cached(part["file"])
+ problems = audit_pair(base_boxes, part_boxes, part, base_slices, part_slices)
+ if problems:
+ findings[f"{base['base']} + {part['id']}"] = problems
+ return findings
+
+
+def main(argv: list[str] | None = None) -> int:
+ parser = argparse.ArgumentParser(description=__doc__)
+ parser.add_argument("--json", action="store_true")
+ parser.add_argument("--base", default=None)
+ args = parser.parse_args(argv)
+ if not _CATALOG.exists() or not _FIGURES.exists():
+ print("audit_fit: nothing to audit (no catalog or no assets)")
+ return EXIT_SKIPPED
+
+ findings = run(args.base)
+ if args.json:
+ print(json.dumps(findings, indent=2))
+ else:
+ by_problem: dict[str, list[str]] = defaultdict(list)
+ for combo, problems in findings.items():
+ for problem in problems:
+ by_problem[problem.split(" by ")[0].split(" off")[0]].append(combo)
+ for kind, combos in sorted(by_problem.items(), key=lambda kv: -len(kv[1])):
+ print(f"\n{len(combos):4d} {kind}")
+ for combo in combos[:12]:
+ print(f" {combo}")
+ if len(combos) > 12:
+ print(f" … and {len(combos) - 12} more")
+ print(f"\naudit_fit: {len(findings)} combination(s) with a fit problem")
+ return 1 if findings else 0
+
+
+if __name__ == "__main__":
+ raise SystemExit(main())
diff --git a/scripts/figures/build_figures.py b/scripts/figures/build_figures.py
index 4e1d297416..7a3c393799 100644
--- a/scripts/figures/build_figures.py
+++ b/scripts/figures/build_figures.py
@@ -645,6 +645,7 @@ def build_target(target: dict, out_dir: Path, ledger: Path) -> tuple[dict, list[
"heightM": archetype["variants"][target["variant"]]["height_m"],
"palette": character["default_palette"],
"family": source.get("family", source_slug(source)),
+ "fitSize": None,
"source": f"{source['name']} / {target['character']}",
"license": source["license"],
**facts,
@@ -684,6 +685,9 @@ def build_target(target: dict, out_dir: Path, ledger: Path) -> tuple[dict, list[
"styles": spec.get("styles", []),
"hides": spec.get("hides", []),
"fits_family": spec.get("fits_family"),
+ "fits_size": spec.get("fits_size"),
+ "asymmetric": bool(spec.get("asymmetric")),
+ "covers": spec.get("covers", []),
"from_base": target["base"],
"source": f"{source['name']} / {spec['object']}",
"license": source["license"],
@@ -739,6 +743,7 @@ def build_procedural_quadruped(
"heightM": archetype["variants"][target["variant"]]["height_m"],
"palette": character["default_palette"],
"family": source.get("family", source_slug(source)),
+ "fitSize": None,
"clipsFrom": borrowed["file"],
"source": f"{source['name']} / {target['character']}",
"license": source["license"],
@@ -778,6 +783,9 @@ def build_procedural_quadruped(
"styles": spec.get("styles", []),
"hides": spec.get("hides", []),
"fits_family": spec.get("fits_family"),
+ "fits_size": spec.get("fits_size"),
+ "asymmetric": bool(spec.get("asymmetric")),
+ "covers": spec.get("covers", []),
"from_base": target["base"],
"source": f"{source['name']} / {part_id}",
"license": source["license"],
@@ -818,6 +826,7 @@ def build_procedural_gigi(
"heightM": archetype["variants"][target["variant"]]["height_m"],
"palette": character["default_palette"],
"family": source.get("family", source_slug(source)),
+ "fitSize": None,
"source": f"{source['name']} / {target['character']}",
"license": source["license"],
**facts,
@@ -927,6 +936,8 @@ def build_procedural_humanoid(
borrowed = ensure_clip_library(
source, archetype, out_dir, lambda: normalize_donor_rig(source, archetype)
)
+ profile = humanoid_builder.PROFILES[character["profile"]]
+ fit_size = humanoid_builder.fit_size(profile)
log(f"building {target['id']} procedurally on the {source['rig_character']} rig")
arm = normalize_donor_rig(source, archetype)
@@ -954,6 +965,7 @@ def build_procedural_humanoid(
"heightM": archetype["variants"][target["variant"]]["height_m"],
"palette": character["default_palette"],
"family": source.get("family", source_slug(source)),
+ "fitSize": fit_size,
"clipsFrom": borrowed["file"],
"source": f"{source['name']} / {target['character']}",
"license": source["license"],
@@ -973,37 +985,48 @@ def build_procedural_humanoid(
part_entries = []
parts_dir = out_dir / "parts" / target["archetype"]
for part_id in character.get("parts", []):
- spec = dict(humanoid_builder.PART_SPECS[part_id])
- spec["id"] = part_id
- spec["object"] = part_id
- attach = archetype["slots"][spec["slot"]]["attach"]
- part, report = humanoid_builder.build_part(
- part_id, arm, CONTRACT["sheet"], img, sheet_material
- )
- apply_materials(part, img, part_id, [])
- parts_dir.mkdir(parents=True, exist_ok=True)
- part_path = parts_dir / f"{part_id}.glb"
- export_glb(part_path, [part, arm], animations=False)
- pfacts = finish_part(part_path, spec, target, source, attach)
- bpy.data.objects.remove(part, do_unlink=True)
- part_entries.append(
- {
- "id": part_id,
- "file": f"parts/{target['archetype']}/{part_path.name}",
- "archetype": target["archetype"],
- "slot": spec["slot"],
- "attach": attach,
- "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"],
- "palette_cells": report["used"],
- **pfacts,
- }
- )
+ base_spec = humanoid_builder.PART_SPECS[part_id]
+ # A garment that wraps the torso is cut to a girth, so it is built once
+ # per size class; everything else hangs on a bone the rig places the
+ # same way for every body and is built once.
+ sizes = sorted(humanoid_builder.WRAP_SIZES) if base_spec.get("wrapping") else [None]
+ for size in sizes:
+ spec = dict(base_spec)
+ variant_id = part_id if size in (None, "slim") else f"{part_id}-{size}"
+ spec["id"] = variant_id
+ spec["object"] = variant_id
+ spec["fits_size"] = size
+ attach = archetype["slots"][spec["slot"]]["attach"]
+ part, report = humanoid_builder.build_part(
+ part_id, arm, CONTRACT["sheet"], img, sheet_material, size=size
+ )
+ apply_materials(part, img, variant_id, [])
+ parts_dir.mkdir(parents=True, exist_ok=True)
+ part_path = parts_dir / f"{variant_id}.glb"
+ export_glb(part_path, [part, arm], animations=False)
+ pfacts = finish_part(part_path, spec, target, source, attach)
+ bpy.data.objects.remove(part, do_unlink=True)
+ part_entries.append(
+ {
+ "id": variant_id,
+ "file": f"parts/{target['archetype']}/{part_path.name}",
+ "archetype": target["archetype"],
+ "slot": spec["slot"],
+ "attach": attach,
+ "label": spec["label"],
+ "styles": spec.get("styles", []),
+ "hides": spec.get("hides", []),
+ "fits_family": spec.get("fits_family"),
+ "fits_size": spec.get("fits_size"),
+ "asymmetric": bool(spec.get("asymmetric")),
+ "covers": spec.get("covers", []),
+ "from_base": target["base"],
+ "source": f"{source['name']} / {part_id}",
+ "license": source["license"],
+ "palette_cells": report["used"],
+ **pfacts,
+ }
+ )
return entry, part_entries
diff --git a/scripts/figures/gigi_builder.py b/scripts/figures/gigi_builder.py
index d95ca944e2..5d377c9a6c 100644
--- a/scripts/figures/gigi_builder.py
+++ b/scripts/figures/gigi_builder.py
@@ -348,7 +348,10 @@ def key_clips(arm: bpy.types.Object) -> None:
def build_gigi(sheet: dict, img, sheet_material) -> tuple[bpy.types.Object, bpy.types.Object, dict]:
- """Build the whole figure into the current (empty) scene. Returns (armature, body, uv_report)."""
+ """Build the whole figure into the current (empty) scene.
+
+ Returns (armature, body, uv_report).
+ """
pieces, _marks = build_parts()
body, report = assemble(pieces, sheet["cells"], sheet, img, sheet_material)
arm = build_armature()
diff --git a/scripts/figures/humanoid_builder.py b/scripts/figures/humanoid_builder.py
index d261b744de..65b7e43079 100644
--- a/scripts/figures/humanoid_builder.py
+++ b/scripts/figures/humanoid_builder.py
@@ -211,6 +211,7 @@ PROFILES: dict[str, Profile] = {
# A flight suit under a visored helmet, with shoulder rigs and boots.
"pilot": Profile(
head_h=0.74,
+ head_cell="secondary",
visor=True,
hair=False,
shoulders=True,
@@ -278,6 +279,24 @@ PROFILES: dict[str, Profile] = {
}
+#: Half-extents a wrapping garment is cut to, per size class. Each clears the
+#: widest torso in its class: slim covers up to bulk 1.05, broad up to 1.35.
+#: A body picks its class from its own bulk (`Profile.fit_size`), and the
+#: creator only ever offers the matching cut.
+WRAP_SIZES: dict[str, tuple[float, float]] = {
+ "slim": (0.335, 0.225),
+ "broad": (0.450, 0.310),
+}
+
+#: Above this bulk a body wears the broad cut.
+BROAD_FROM = 1.06
+
+
+def fit_size(profile: Profile) -> str:
+ """Which cut of a wrapping garment this body takes."""
+ return "broad" if profile.bulk >= BROAD_FROM else "slim"
+
+
# ---------------------------------------------------------------------------
# geometry
# ---------------------------------------------------------------------------
@@ -436,16 +455,29 @@ def head_pieces(p: Profile) -> list[Piece]:
)
)
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.
+ # A CHIN beard: narrower than the face and starting below the mouth.
+ # Run from under the eyes and across the full width, as it first was,
+ # and it reads as a bar taped over the face instead of a beard.
+ # 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),
+ (-w * 0.5, w * 0.5),
+ (face - 0.025, d * 0.2),
+ (chin - 0.13, eye_z - 0.20),
+ )
+ )
+ pieces.append(
+ box(
+ "Moustache",
+ "head",
+ "hair",
+ (-w * 0.30, w * 0.30),
+ (face - 0.03, -d + 0.02),
+ (eye_z - 0.22, eye_z - 0.16),
)
)
if p.pointed_ears:
@@ -522,8 +554,27 @@ def head_pieces(p: Profile) -> list[Piece]:
(top - 0.14, top + 0.03),
)
)
+ # Full width down to the ears, then a narrower nape: two steps is
+ # enough shape for the back of a head to stop being a blank rectangle.
+ pieces.append(
+ box(
+ "HairBack",
+ "head",
+ "hair",
+ (-cap, cap),
+ (d - 0.04, d + 0.03),
+ (chin + p.head_h * 0.42, top),
+ )
+ )
pieces.append(
- box("HairBack", "head", "hair", (-cap, cap), (d - 0.04, d + 0.03), (chin + 0.16, top))
+ box(
+ "HairNape",
+ "head",
+ "hair",
+ (-cap * 0.62, cap * 0.62),
+ (d - 0.03, d + 0.025),
+ (chin + p.head_h * 0.18, chin + p.head_h * 0.44),
+ )
)
if p.hair_long:
for side, lo, hi in (("L", w - 0.02, cap), ("R", -cap, -w + 0.02)):
@@ -1240,54 +1291,66 @@ PART_SPECS: dict[str, dict] = {
# ---- over the torso -----------------------------------------------------
"torso_over-vest": {
"slot": "torso_over",
+ "covers": ["sides"],
"label": "Vest",
"styles": ["modern", "fantasy", "scifi", "cartoon"],
- "pieces": lambda: [
+ "fits_family": "jarvis-biped",
+ "wrapping": True,
+ "pieces": lambda w, d: [
box(
- "VestL",
- "chest",
- "leather",
- (0.13, 0.34),
- (-0.24, 0.24),
- (WAIST_Z + 0.06, NECK_Z + 0.02),
+ "VestL", "chest", "leather", (w * 0.42, w), (-d, d), (WAIST_Z + 0.06, NECK_Z + 0.02)
),
box(
"VestR",
"chest",
"leather",
- (-0.34, -0.13),
- (-0.24, 0.24),
+ (-w, -w * 0.42),
+ (-d, d),
(WAIST_Z + 0.06, NECK_Z + 0.02),
),
box(
"VestBack",
"chest",
"leather",
- (-0.34, 0.34),
- (0.20, 0.25),
+ (-w, w),
+ (d * 0.82, d),
(WAIST_Z + 0.06, NECK_Z + 0.02),
),
],
},
"torso_over-plate": {
"slot": "torso_over",
+ "covers": ["sides", "front_back"],
"label": "Chest plate",
"styles": ["scifi", "fantasy"],
- "pieces": lambda: [
+ "fits_family": "jarvis-biped",
+ "wrapping": True,
+ "pieces": lambda w, d: [
box(
- "Plate",
+ "Plate", "chest", "metal", (-w, w), (-d, -d * 0.72), (CHEST_Z - 0.02, NECK_Z + 0.02)
+ ),
+ box(
+ "PlateBack",
"chest",
"metal",
- (-0.30, 0.30),
- (-0.28, -0.19),
+ (-w, w),
+ (d * 0.72, d),
(CHEST_Z - 0.02, NECK_Z + 0.02),
),
box(
- "PlateBack",
+ "PlateSideL",
+ "chest",
+ "metal",
+ (w * 0.88, w),
+ (-d, d),
+ (CHEST_Z - 0.02, NECK_Z + 0.02),
+ ),
+ box(
+ "PlateSideR",
"chest",
"metal",
- (-0.30, 0.30),
- (0.19, 0.28),
+ (-w, -w * 0.88),
+ (-d, d),
(CHEST_Z - 0.02, NECK_Z + 0.02),
),
box(
@@ -1295,38 +1358,41 @@ PART_SPECS: dict[str, dict] = {
"chest",
"accent",
(-0.06, 0.06),
- (-0.31, -0.27),
+ (-d - 0.03, -d + 0.01),
(CHEST_Z + 0.12, CHEST_Z + 0.24),
),
],
},
"torso_over-apron": {
"slot": "torso_over",
+ "covers": ["sides"],
"label": "Apron",
"styles": ["modern", "fantasy", "cartoon", "scifi"],
- "pieces": lambda: [
+ "fits_family": "jarvis-biped",
+ "wrapping": True,
+ "pieces": lambda w, d: [
box(
"ApronBody",
"spine",
"secondary",
- (-0.26, 0.26),
- (-0.27, -0.20),
+ (-w, w),
+ (-d, -d * 0.78),
(HIP_Z - 0.18, CHEST_Z + 0.02),
),
box(
"ApronStrapL",
"chest",
"secondary",
- (0.08, 0.18),
- (-0.24, 0.24),
+ (w * 0.24, w * 0.62),
+ (-d, d),
(NECK_Z - 0.06, NECK_Z + 0.02),
),
box(
"ApronStrapR",
"chest",
"secondary",
- (-0.18, -0.08),
- (-0.24, 0.24),
+ (-w * 0.62, -w * 0.24),
+ (-d, d),
(NECK_Z - 0.06, NECK_Z + 0.02),
),
],
@@ -1334,54 +1400,46 @@ PART_SPECS: dict[str, dict] = {
# ---- belt ---------------------------------------------------------------
"belt-toolbelt": {
"slot": "belt",
+ "covers": ["sides", "front_back"],
"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),
- ),
+ "styles": ["modern", "scifi", "cartoon", "fantasy"],
+ "fits_family": "jarvis-biped",
+ "wrapping": True,
+ "pieces": lambda w, d: [
+ box("BeltStrap", "hips", "leather", (-w, w), (-d, d), (WAIST_Z - 0.07, WAIST_Z + 0.01)),
box(
"PouchL",
"hips",
"leather",
- (0.16, 0.33),
- (-0.26, -0.14),
+ (w * 0.48, w),
+ (-d - 0.02, -d * 0.55),
(WAIST_Z - 0.20, WAIST_Z - 0.05),
),
box(
"PouchR",
"hips",
"metal",
- (-0.33, -0.16),
- (-0.26, -0.14),
+ (-w, -w * 0.48),
+ (-d - 0.02, -d * 0.55),
(WAIST_Z - 0.18, WAIST_Z - 0.05),
),
],
},
"belt-sash": {
"slot": "belt",
+ "covers": ["sides", "front_back"],
"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),
- ),
+ "styles": ["fantasy", "cartoon", "modern"],
+ "fits_family": "jarvis-biped",
+ "wrapping": True,
+ "pieces": lambda w, d: [
+ box("SashBand", "hips", "accent", (-w, w), (-d, d), (WAIST_Z - 0.09, WAIST_Z + 0.02)),
box(
"SashTail",
"hips",
"accent",
- (0.16, 0.28),
- (-0.26, -0.17),
+ (w * 0.42, w * 0.82),
+ (-d - 0.01, -d * 0.62),
(HIP_Z - 0.10, WAIST_Z - 0.06),
),
],
@@ -1390,6 +1448,7 @@ PART_SPECS: dict[str, dict] = {
"back-satchel": {
"slot": "back",
"label": "Satchel",
+ "asymmetric": True,
"styles": ["modern", "fantasy", "cartoon"],
"pieces": lambda: [
box(
@@ -1791,12 +1850,23 @@ PART_SPECS: dict[str, dict] = {
}
-def build_part(part_id: str, arm: bpy.types.Object, sheet: dict, img, sheet_material):
- """Build one accessory: boxes, UVs on the strip, weight 1 on its attach bone."""
+def build_part(
+ part_id: str, arm: bpy.types.Object, sheet: dict, img, sheet_material, size: str | None = None
+):
+ """Build one accessory: boxes, UVs on the strip, weight 1 on its attach bone.
+
+ A wrapping garment is cut to `size`; everything else hangs on a bone the
+ rig places identically for every body and takes no size at all.
+ """
spec = PART_SPECS.get(part_id)
if spec is None:
raise SystemExit(f"unknown procedural part {part_id!r}")
- pieces = spec["pieces"]()
+ if spec.get("wrapping"):
+ if size not in WRAP_SIZES:
+ raise SystemExit(f"{part_id} is a wrapping garment and needs a size, got {size!r}")
+ pieces = spec["pieces"](*WRAP_SIZES[size])
+ else:
+ pieces = spec["pieces"]()
bones = {b.name for b in arm.data.bones}
stray = sorted({p.bone for p in pieces} - bones)
if stray:
diff --git a/scripts/figures/quadruped_builder.py b/scripts/figures/quadruped_builder.py
index 336c888d7d..8ba18cc224 100644
--- a/scripts/figures/quadruped_builder.py
+++ b/scripts/figures/quadruped_builder.py
@@ -43,6 +43,13 @@ LEG_X = 0.115
KNEE_Z = 0.24
ANKLE_Z = 0.09
EAR_Z = 0.88
+#: Where tail_1 hands over to tail_2, for every shape. Fixed on purpose: a bow
+#: is one file worn by six animals, and it can only ride a segment they all
+#: have in the same place.
+TAIL_JOINT = 0.26
+#: The shortest a tail may be, so the second segment always exists — and it
+#: is only just long enough, so a bear keeps a stub and a fox keeps a plume.
+TAIL_MIN = 0.30
#: (name, parent, head, tail). Order is the export order; `root` must be first
#: and the only bone without a parent — the gate insists on exactly one top.
@@ -127,7 +134,9 @@ 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.
+ #: How far the tail reaches back from the rump, in metres. The tail is
+ #: built in two segments that meet at a FIXED point (`TAIL_JOINT`), so a
+ #: `tail_extra` piece rides every animal; only the tip's reach varies.
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.
@@ -184,10 +193,10 @@ SHAPES: dict[str, 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,
+ tail_r=0.088,
+ tail_len=0.30,
+ ear_top=1.06,
+ ear_w=0.076,
muzzle_y=-0.62,
muzzle_w=0.66,
),
@@ -196,8 +205,8 @@ SHAPES: dict[str, Shape] = {
body_w=0.175,
head_w=0.128,
leg_r=0.062,
- tail_r=0.045,
- tail_len=0.12,
+ tail_r=0.052,
+ tail_len=0.30,
ear_top=0.76,
ear_w=0.070,
muzzle_y=-0.64,
@@ -415,7 +424,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.06 + s.tail_len * 0.5),
+ (HIP_Y + 0.04, HIP_Y + TAIL_JOINT + 0.02),
(HIP_Z - 0.05, HIP_Z + 0.09),
),
box(
@@ -423,7 +432,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.04 + s.tail_len * 0.5, HIP_Y + 0.04 + s.tail_len),
+ (HIP_Y + TAIL_JOINT, HIP_Y + 0.04 + max(s.tail_len, TAIL_MIN)),
(HIP_Z - 0.12, HIP_Z + 0.04),
),
]
@@ -768,17 +777,17 @@ PART_SPECS: dict[str, dict] = {
"Blanket",
"chest",
"primary",
- (-0.155, 0.155),
- (CHEST_Y - 0.14, CHEST_Y + 0.22),
- (BACK_Z - 0.14, BACK_Z + 0.04),
+ (-0.185, 0.185),
+ (CHEST_Y - 0.18, CHEST_Y + 0.26),
+ (BACK_Z - 0.20, BACK_Z + 0.05),
),
box(
"BlanketTrim",
"chest",
"accent",
- (-0.16, 0.16),
- (CHEST_Y - 0.16, CHEST_Y - 0.12),
- (BACK_Z - 0.15, BACK_Z + 0.05),
+ (-0.19, 0.19),
+ (CHEST_Y - 0.21, CHEST_Y - 0.16),
+ (BACK_Z - 0.21, BACK_Z + 0.06),
),
],
},
@@ -791,25 +800,25 @@ PART_SPECS: dict[str, dict] = {
"BowKnot",
"tail_2",
"accent",
- (-0.035, 0.035),
- (HIP_Y + 0.40, HIP_Y + 0.47),
- (HIP_Z - 0.08, HIP_Z - 0.01),
+ (-0.075, 0.075),
+ (HIP_Y + TAIL_JOINT + 0.01, HIP_Y + TAIL_JOINT + 0.08),
+ (HIP_Z - 0.08, HIP_Z + 0.02),
),
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),
+ (0.075, 0.128),
+ (HIP_Y + TAIL_JOINT + 0.02, HIP_Y + TAIL_JOINT + 0.07),
+ (HIP_Z - 0.10, HIP_Z + 0.03),
),
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),
+ (-0.128, -0.075),
+ (HIP_Y + TAIL_JOINT + 0.02, HIP_Y + TAIL_JOINT + 0.07),
+ (HIP_Z - 0.10, HIP_Z + 0.03),
),
],
},
@@ -824,7 +833,7 @@ PART_SPECS: dict[str, dict] = {
"leather",
(0.045, 0.075),
(HEAD_Y - 0.03, HEAD_Y + 0.01),
- (HEAD_Z + 0.11, HEAD_Z + 0.34),
+ (HEAD_Z + 0.11, HEAD_Z + 0.44),
),
box(
"AntlerR",
@@ -832,7 +841,7 @@ PART_SPECS: dict[str, dict] = {
"leather",
(-0.075, -0.045),
(HEAD_Y - 0.03, HEAD_Y + 0.01),
- (HEAD_Z + 0.11, HEAD_Z + 0.34),
+ (HEAD_Z + 0.11, HEAD_Z + 0.44),
),
box(
"TineL",
@@ -840,7 +849,7 @@ PART_SPECS: dict[str, dict] = {
"leather",
(0.075, 0.155),
(HEAD_Y - 0.03, HEAD_Y + 0.01),
- (HEAD_Z + 0.26, HEAD_Z + 0.30),
+ (HEAD_Z + 0.33, HEAD_Z + 0.38),
),
box(
"TineR",
@@ -848,7 +857,7 @@ PART_SPECS: dict[str, dict] = {
"leather",
(-0.155, -0.075),
(HEAD_Y - 0.03, HEAD_Y + 0.01),
- (HEAD_Z + 0.26, HEAD_Z + 0.30),
+ (HEAD_Z + 0.33, HEAD_Z + 0.38),
),
],
},
diff --git a/scripts/figures/sources/jarvis-animals.json b/scripts/figures/sources/jarvis-animals.json
index 1057130779..f37fc63ea2 100644
--- a/scripts/figures/sources/jarvis-animals.json
+++ b/scripts/figures/sources/jarvis-animals.json
@@ -27,8 +27,8 @@
"skin_shade": "#d29488",
"hair": "#b8532a",
"eyes": "#1a1614",
- "primary": "#c25a2a",
- "primary_shade": "#9a4420",
+ "primary": "#2f7d8f",
+ "primary_shade": "#1f5a68",
"secondary": "#f4efe6",
"secondary_shade": "#d8d0c2",
"accent": "#f2c14e",
@@ -48,8 +48,8 @@
"skin_shade": "#d29488",
"hair": "#b8532a",
"eyes": "#3fae6a",
- "primary": "#c25a2a",
- "primary_shade": "#9a4420",
+ "primary": "#c2503f",
+ "primary_shade": "#96392b",
"secondary": "#f0ece4",
"secondary_shade": "#d8d0c2",
"accent": "#7fd1a8",
@@ -69,8 +69,8 @@
"skin_shade": "#d29488",
"hair": "#b8532a",
"eyes": "#2a1d14",
- "primary": "#c25a2a",
- "primary_shade": "#9a4420",
+ "primary": "#3f6d9e",
+ "primary_shade": "#2c4d70",
"secondary": "#f4efe6",
"secondary_shade": "#d8d0c2",
"accent": "#d24b3a",
@@ -90,8 +90,8 @@
"skin_shade": "#d29488",
"hair": "#b8532a",
"eyes": "#d8c24a",
- "primary": "#c25a2a",
- "primary_shade": "#9a4420",
+ "primary": "#c9922f",
+ "primary_shade": "#9a6d1f",
"secondary": "#e4e8ec",
"secondary_shade": "#d8d0c2",
"accent": "#8fb8d8",
@@ -111,8 +111,8 @@
"skin_shade": "#d29488",
"hair": "#b8532a",
"eyes": "#4a2e2a",
- "primary": "#c25a2a",
- "primary_shade": "#9a4420",
+ "primary": "#7a5ba8",
+ "primary_shade": "#5a3f82",
"secondary": "#f6f2ea",
"secondary_shade": "#d8d0c2",
"accent": "#e8a0b0",
@@ -132,8 +132,8 @@
"skin_shade": "#d29488",
"hair": "#b8532a",
"eyes": "#1a1210",
- "primary": "#c25a2a",
- "primary_shade": "#9a4420",
+ "primary": "#4f7d4a",
+ "primary_shade": "#375c33",
"secondary": "#3a2a20",
"secondary_shade": "#d8d0c2",
"accent": "#d9a441",
diff --git a/scripts/figures/sources/jarvis-humanoids.json b/scripts/figures/sources/jarvis-humanoids.json
index 97acba85a2..a35fd8fa68 100644
--- a/scripts/figures/sources/jarvis-humanoids.json
+++ b/scripts/figures/sources/jarvis-humanoids.json
@@ -240,8 +240,8 @@
"eyes": "#1b2427",
"primary": "#e8a33d",
"primary_shade": "#b57a24",
- "secondary": "#3b4550",
- "secondary_shade": "#262d35",
+ "secondary": "#dfe4e8",
+ "secondary_shade": "#a9b2b8",
"accent": "#e8a33d",
"metal": "#b6c0c6",
"leather": "#4a3a2c",
@@ -278,7 +278,7 @@
"default_palette": {
"skin": "#e9c3a3",
"skin_shade": "#c9926d",
- "hair": "#8a8f96",
+ "hair": "#5a4638",
"eyes": "#1b2427",
"primary": "#4a7fb0",
"primary_shade": "#2b3441",