A 3D model pipeline, pushed by GPT-6.2-Astra
user
+24:42[the lead] Follow-up from the owner, to match what the sortie run is doing. Their words: "yeah, sure. even if it needs to modify the body, too. I'd appreciate a model out of the result like in sortie, so we can put that thing in a camera renderer later. I hope it knows we have flattice and stuff."
So: take this one character to finished quality with your own design work, not the old kit as-is.
- Fix the faults you listed in your first pass and give the character a costume and armour of your own design. You may modify the body too if that's what it takes.
- Export the finished character as a 3D model file (GLB via the repo's export_glb, or VRM if that's the better fit), rigged if you can, so it can be dropped into a perspective camera renderer later. Say what's in it (mesh, materials, skeleton, clips) and what isn't.
- Know what's already there: Flattice is the camera-facing lattice lens trick for perspective faces (research in ~/context/lowmarch.md, "Research: the flat lattice"; parked until scenes have a camera, handbook line 194), and docs/map.md line 47 points to patch_lens_flattice.py under ~/.local/share/lowmarch/trials (a perspective lens for the painted page; copy it into your worktree, don't edit it in place). Read docs/map.md for the rest of the inventory before building anything new. If time allows, add one perspective shot of the exported model with that lens to show it's ready for a camera renderer.
- Show the result in your first pass's visual again, beside it as the before, as a second section on your page (keep the first). Time each step so we can see where the hours go. Same rules as before (your worktree and branch only, headless, no pushes, nothing written to ~/.local/share/lowmarch, Yin/Yang rigs and FE8 refs stay out). End your turn with the page path and a short summary.
[the owner, 6 minutes later] just providing more steering information here. you're here as an adversarial agent intending to prove that you can do much, much better than the prior model who was working on this project. pull all the stops out and do whatever's necessary to break free of what plagues the current project, show me your best work. not just using the tools and following that project's footsteps, the point is a radical improvement that only you could do, compared to where this project has already tread.
[the owner, 13 minutes later] mind telling me how you're deviating now? just so I can tell early if you're just going by the usual route
[the owner, 15 minutes later] not that I'm goading you one way or the other, but honestly, if you're using the same hair the project already has, I'm not sure I'm seeing just how adversarial this pass is.
[the owner, 17 minutes later] and the body structure too, if you need to use blender go for it, I need your absolute best
agent
+24:54I’m keeping the crossing and the camera so you can judge the difference directly. I’m replacing the sample hair, the pointed caster silhouette, and the robe itself. My design is a tide surveyor who works waist-deep in salt water: short swept hair with a bound braid, a split storm coat that clears her stride, and overlapping shoulder armour on the side she leans into the wind. I’ll fit the body to that stance and check the exported model from the back and side as well as in the original frame.
exec_commandcat docs/map.md && ls -la ~/out && git status --short --branch && git log -2 --oneline (+3 more)
command
cat docs/map.md && ls -la ~/out && git status --short --branch && git log -2 --oneline cat review/high-water/figure.py && cat review/high-water/shot.js && cat review/high-water/shoot.cjs rg -n 'Flattice|flattice' ~/context/lowmarch.md | head -60 rg --files ~/.local/share/lowmarch/trials | rg '/patch_lens_flattice.py$' cat ~/context/brief-lowmarch-full.md date -u ls -la review/out/high-water && rg -n '^def ' tools/{hair,plates,clips,export_glb}.py && cat ~/out/index.html | tail -60result, 550 lines
Script completed Wall time 0.1 seconds Output: # Map of the repo What's current, what's stale, where the big files are. Checked 2026-11-08 at `c4f1015`. Nothing was moved or deleted. "Live" means the armory build or the first-session kit reaches it. Reach was read from imports, including the `__import__` calls in `outfit.py`, not from running every path. ## Docs | File | Status | |---|---| | `handbook.md` | **Start here** | | `map.md`, `todos-2026-11-08.md` | Current; suggestions only | | `portrait-guide.md` | Detail log, 40 lessons. True when written, some since contradicted; marks are in the handbook | | `vroid.md` | Current. Says 54 expression shapes at the top; the files carry 57 (2.14) and 56 (older). Licence: see #1443 | | `anthro.md` | Current for bodies | | `proportions.md` | Bodies current; face ratios are reported, not held, since lesson 30 | | `makehuman.md` | Current: references for the cage | | `study.md` | Current; one clause is guessed (handbook, Things that don't bend) | | `quaternius.md` | Stale: a spike that lost (lesson 21) | ## Tools **First-session kit (new):** `tools/session/` (`frame.py`, `rows.py`, `smoke.sh`, `smoke_spec.json`), `review/frame/index.html`. **Render scripts (copied in 11-08 from `~/Projects/lowmarch-bench/kit`, which still has the originals):** `tools/shots/`: `arm_shoot.py` (ran 11-08), `variant_build.py`, `all14.sh`, `all14_sheet.py`, `expr_build_tiles.py`, `expr_page.html`. Only `all14.sh` changed, to find its own folder. | Status | Files | |---|---| | Live: the armory | `cage`, `heads`, `fit`, `proportions`, `anthro`, `makehuman`, `collide`, `vroid_portrait`, `vrm`, `export_glb`, `poses`, `rig`, `fitting`; `review/vroid-02/build.py`, `sheets.py`, `index.html`; `art/cast/cast.py`, `expressions.txt` | | Live checks | `lash_check`, `lash_shots`, `checks`, `regress`, `review/vroid-02/snapshot.py` (keeps the baseline `regress` reads), `review/vroid-02/duel_check.py` (build imports `chars_for` from it), `hair_check` (standalone, nothing imports it) | | Kept for later: costumes and motion on old bases, reached from the build | `outfit`, `plates`, `gear`, `mobs`, `hair`, `clips`, `duel`, `terrain`, `saber_study` (benchmark, not for the game). Not unused: the armory's inspection shorts come from `mobs.underwear` and the hair texture from `hair` | | Spike that lost, still imported by the build | `mass`, `quaternius` | | Pixel era, abandoned; still imported | `head3d`, `pix`, `vecpix`, `study` | | Blocked | `tools/winvroid` (V.dll, #1105) | | Looks dead: nothing imports it | `features.py`, `compare.py` (study side-by-sides) | | Looks dead: old one-off tests, nothing imports them | `review/vroid-02/`: `battle_test`, `closeup_test`, `costume_test`, `fit_test`, `pose_test`, `mouths` | | Stale pages | `review/rowan-01/`, `art/portraits/rowan*`, `art/templates/`, `review/vroid-02/base_spike_notes.html`, `mh_workshop_notes.html` | `vroid_portrait.py` is named for the abandoned pixel renderer, but the build still uses its `Portrait` class. Don't edit it lightly: it's in cage's cache key, and so are the other cache-key files listed in the handbook. **Scripts that live outside the repo:** - `~/Projects/lowmarch-bench/kit/`: the benchmark's kit, including `front_sheet.py`, `build_expr.sh`, `blind_sheet.py`, `terra_review.sh`. - `~/.local/share/lowmarch/trials/*/scripts` and loose scripts there, such as `patch_lens_flattice.py` (a perspective lens for the painted page). Copy one in if it's needed again. ## Big files The repo's tracked files are small: `.git` is 5 MB. Everything below is outside git. | Where | Size | What | |---|---|---| | `~/.local/share/lowmarch/vroid/lowmarch_bodies` | 14 GB | Built bodies and heads; holds cage's cache (`fits.json`). The bulk of everything | | `~/.local/share/lowmarch/vroid/samples_2_14` | 466 MB | The 26 VRoid samples | | `~/.local/share/lowmarch/makehuman` | 1.7 GB | MakeHuman data | | `~/.local/share/lowmarch/trials` | 1.9 GB | Sheets and shots; `combined-2026-10-31` is 1.8 GB | | `~/.local/share/lowmarch/tools` | 1.5 GB | Portable Blender 4.5, tar included. Unused since the spike | | `~/.local/share/lowmarch/winvroid` | 803 MB | VRoid driver data | | `~/.local/share/lowmarch/refs3d`, `study`, `quaternius`, `blender-base-meshes`, `refs`, `anthro` | 1.2 GB together | Study and spike data. References stay out of the repo | | `~/.local/share/lowmarch/sessions` | new | First-session folders from `rows.py` | | `~/Projects/lowmarch-bench/work` | 4.9 GB | Benchmark builds; `e` is 3 GB. Transcripts and judging keep the benchmark's record | | `review/out/` (git-ignored) | 1.1 GB | `versions` 410 MB, `vroid-02` 249, `base-spike` 206, `armory` 115, `mh-workshop` 89, `frozen` 14 | | `~/.local/opt/blender-5.2.3-linux-x64` | | Blender 5.2.3, unused by the pipeline | If space is ever needed, the safest candidates to discuss are the Blender 4.5 tar, `review/out/versions` and `review/out/base-spike`. Nothing has been removed. Ask first, and check `~/Projects/lowmarch-bench/README.md`: the benchmark's raw material is being kept for a blog post (#1141). total 452 drwx------ 2 runner runner 4096 Nov 17 23:07 . drwx------ 7 runner runner 4096 Nov 17 22:48 .. -rw------- 1 runner runner 444314 Nov 17 23:05 high-water.jpg -rw------- 1 runner runner 6239 Nov 17 23:08 index.html ## astra62 3fbd359 Stage a tide reader at a flooded crossing with the painted armory renderer a97f25f Merge prep/kit-check-1109: VRoid licence read by hand (#1443), cold kit times """Pose a cached armory body in the existing caster kit for the high-water study.""" import json import sys from pathlib import Path import numpy as np HERE = Path(__file__).resolve().parent ROOT = HERE.parents[1] CACHE = ROOT / "review/out/high-water" sys.path[:0] = [str(ROOT / "tools"), str(ROOT / "art/cast")] import cage from cast import CAST import export_glb import gear import mobs import outfit import poses import rig import vroid_portrait as vp from fitting import merge_surfaces, vertex_normals from plates import Canvas, flat_piece from vrm import VRM def hem_pattern(): """A woven border of alternating crests, each with a brass drop in its hollow.""" cloth = Canvas(1024, 384) for k in range(14): x = k / 14 crest = [(0, .078), (.21, .13), (.44, .21), (.63, .22), (.76, .186), (.62, .187), (.51, .162), (.52, .142), (.62, .131), (.78, .142), (1, .177), (1, .148), (.78, .112), (.56, .103), (.39, .117), (.29, .107), (0, .055)] cloth.poly([(x + u / 14, v) for u, v in crest], "paint") cloth.dot((x + .79 / 14, .184), 2.3, 2.3, "gold") for v in (.035, .046, .245): cloth.line([(0, v), (1, v)], 1.6, "gold") return cloth.array() def chart_bag(fit, skirt, belt): hips = fit.bone["J_Bip_C_Hips"] waist = hips[1] + .06 side = skirt["pos"] side = side[(side[:,1] < waist) & (side[:,1] > waist-.22)] centre = np.array([side[:,0].max()+.010, waist-.110, hips[2]+.013]) # A little waxed chart bag hung from two loops on the existing belt. ex = np.array([-.12,.20,-.972]) ey = np.array([-.055,.976,.207]) normal = np.cross(ex,ey) corners = [(-.103,.066),(.091,.072),(.100,.044),(.094,-.064), (.076,-.084),(-.074,-.087),(-.104,-.067)] flap = [(-.104,.071),(.094,.075),(.100,.043),(.074,.001), (.018,-.023),(-.067,-.012),(-.099,.014)] parts = [flat_piece("map_bag","leather",corners,centre,ex,ey,thickness=.040), flat_piece("map_flap","gaiter",flap,centre+.027*normal,ex,ey,thickness=.012)] for sx in (-.068,.068): start = centre + sx*ex + ey*.053 + normal*.009 points = belt["pos"] above = points[(points[:,0]>0) & (points[:,1]>np.median(points[:,1]))] buckle = above[np.argmin((above[:,0]-start[0])**2 + 2*(above[:,2]-start[2])**2)] path = np.array([start, start+[.002,.025,0], buckle+[.006,.008,0], buckle+[-.007,.002,0]]) strap = np.stack([path-ex*.009,path+ex*.009],axis=1) pos, tri = outfit.grid_mesh(strap) parts.append(outfit.piece("bag_loop","leather",pos,tri)) parts.append(outfit.ball("bag_stud","gold",start+[.003,0,0],.0045)) seam = [centre + x*.94*ex + y*.92*ey + normal*.0335 for x,y in flap] parts.append(outfit.pipe("bag_seam","leather",seam,r=.0018,closed=True)) seal = centre + .01*ex + normal*.036 + .003*ey parts.append(outfit.ball("map_button","gold",seal,.010)) return [fit.bind(part,rigid="J_Bip_C_Hips") for part in parts] def costume(fit): pieces = mobs.witch(fit) # Recut the stock cone. A higher front gives the forward boot room and the # slack runs behind the wearer. Use the angle before moving the hem for UVs. skirt = next(p for p in pieces if p["material"] == "OUTFIT_robe_skirt") pos = skirt["pos"] angle = np.mod(np.arctan2(pos[:, 0], -(pos[:, 2] - fit.bone["J_Bip_C_Hips"][2])), 2 * np.pi) t = skirt["plate"][:, 3] fall = (1 - t) ** 1.6 front = (1 + np.cos(angle)) / 2 fold = (.010 * np.cos(9 * angle + t) + .008 * np.sin(5 * angle - t)) * fall pos[:, 0] += np.sin(angle) * fold - .025 * fall pos[:, 2] += (.175 - .09 * front) * fall - np.cos(angle) * fold pos[:, 1] += (.12 + .16 * front + .024 * np.cos(5 * angle)) * fall skirt["uv"] = np.column_stack([angle / (2 * np.pi), t]) skirt["decal"] = hem_pattern() skirt["nrm"] = vertex_normals(pos, skirt["tri"]) skirt["role"] = "tidecoat" belt = next(p for p in pieces if p["material"] == "OUTFIT_sash") pieces.extend(chart_bag(fit, skirt, belt)) for p in pieces: if p["material"].startswith("OUTFIT_hat"): if p["material"] == "OUTFIT_hat": pos = p["pos"] tip = np.clip((pos[:, 1] - pos[:, 1].min()) / .32, 0, 1) pos[:, 2] += .20 * tip ** 2 pos[:, 1] -= .115 * tip ** 2 p["nrm"] = vertex_normals(pos, p["tri"]) if p["role"] == "signature": p["role"] = "tidecoat" body = next(p for p in pieces if p["material"] == "OUTFIT_robe") over = merge_surfaces((fit.pos, fit.tri), (body["pos"], body["tri"])) mantle, grid, hood = outfit.mantle(fit, "wrap", "scarf", over) pieces.extend([mantle, hood]) pieces += gear.cuffs(fit, length=.45, flare=.009, lift=.009) boots = next(p for p in pieces if p["material"] == "OUTFIT_boots") for side in "LR": knee, ankle = [fit.bone[f"J_Bip_{side}_{joint}"] for joint in ("LowerLeg","Foot")] straps, rims = outfit.limb_lames(fit, f"gaiter_{side}", "gaiter", outfit.side_of(boots,side), knee, ankle, ((.29,.38,.007,.009),(.67,.74,.006,.006),(.86,.93,.006,.006))) for strap, (edge, _) in zip(straps,rims): pieces.append(fit.bind(strap, rigid=f"J_Bip_{side}_LowerLeg")) pieces.append(fit.bind(outfit.pipe("stitch","gold",edge,r=.0017,closed=True), rigid=f"J_Bip_{side}_LowerLeg")) shoe = outfit.sabaton(fit, f"shoe_{side}", side, role="boot", pad=.017, ridges=0)[0] pieces.append(shoe) clasp = outfit.ball("mantle_pin", "gold", grid[0, 5] + [0, 0, -.007], .016, squash=(1, 1.15, .45)) pieces.append(fit.bind(clasp, rigid="J_Bip_C_UpperChest")) # A long and a short end of the same scarf lift together in the crosswind. anchor = grid[len(grid)//2, 0].copy() for j, length in enumerate((.66, .43)): t = np.linspace(0, 1, 55) c = anchor + np.column_stack([.10*t + .045*np.sin(2*np.pi*t + j)*t, -.12*t + .09*np.sin(2*np.pi*t+.6*j)*t - .065*j*t, length*t]) breadth = .052*(1 - .36*t) * (1 - .75*t**9) axis = np.column_stack([.55*np.cos(3*np.pi*t), np.ones_like(t), .12*np.sin(4*t)]) sheet = np.stack([c + u*breadth[:,None]*axis for u in (-1, -.5, 0, .5, 1)], axis=1) sheet[:,2,0] += .009*np.sin(np.pi*t) pos, tri = outfit.grid_mesh(sheet) flag = outfit.piece(f"scarf_end_{j}", "scarf", pos, tri) pieces.append(fit.bind(flag, rigid="J_Bip_C_UpperChest")) edge = fit.bind(outfit.pipe(f"woven_edge_{j}", "gold", sheet[:,0], r=.0023), rigid="J_Bip_C_UpperChest") pieces.append(edge) # Marks on the part of the sounding staff that goes into the water. grip, axis, lateral, flat, _ = gear._hand_frame(fit) # Keep the kit shaft and set a little open brass dial into its head. shaft = next(p for p in pieces if p["material"] == "OUTFIT_staff_shaft") height = (shaft["pos"] - grip) @ axis shaft["pos"] -= np.outer(np.maximum(height,0)*(.21/.90),axis) pieces = [p for p in pieces if not p["material"].startswith(("OUTFIT_staff_orb","OUTFIT_staff_prong"))] centre = grip + axis*.75 angle = np.linspace(0,2*np.pi,72,endpoint=False) for k,across in enumerate([.64*lateral+.77*flat, -.55*lateral+.83*flat]): hoop = centre + .061*np.outer(np.cos(angle),axis) + (.055-.012*k)*np.outer(np.sin(angle),across) pieces.append(fit.bind(outfit.pipe(f"dial_{k}","gold",hoop,r=.0047,closed=True),rigid="J_Bip_R_Hand")) for radius, offset in [(.019,0),(.008,.065),(.011,-.064)]: pieces.append(fit.bind(outfit.ball("bead","gold",centre+axis*offset,radius),rigid="J_Bip_R_Hand")) pieces.append(fit.bind(outfit.tube("spindle","gold",centre-axis*.064,axis,.128,.0028),rigid="J_Bip_R_Hand")) # Lengthen the lower end so it reaches past the forward foot. extension = outfit.tube("staff_lower", "wood", grip - axis*1.19, axis, .45, .012, .014) pieces.append(fit.bind(extension, rigid="J_Bip_R_Hand")) for i in range(12): length = .030 if i % 3 == 0 else .014 mark = outfit.tube(f"staff_mark_{i}", "heraldry", grip + axis * (-1.17 + .078*i), axis, length, .0162, .0162) pieces.append(fit.bind(mark, rigid="J_Bip_R_Hand")) # Ease the side of the coat around the forward thigh as it steps. The # trousers stay close to the hip underneath the fitted waist. trousers = next(p for p in pieces if p["material"] == "OUTFIT_trousers") hips = fit.bone["J_Bip_C_Hips"] ease = np.clip((trousers["pos"][:,1] - hips[1]+.28)/.20, 0, 1) trousers["pos"][:,0] *= 1-.16*ease trousers["pos"][:,2] = hips[2] + (trousers["pos"][:,2]-hips[2])*(1-.22*ease) return pieces def make_pose(model, shape): ref = vp.BUST_POSE skeleton = rig.Rig(model, shape, ortho=True) pose = poses.merge(poses.BATTLE_IDLE, { "J_Bip_C_Hips": poses.move(dy=-.043), "J_Bip_C_Spine": poses.rot((1, 0, 0), -12), "J_Bip_C_Head": poses.rot((0, 1, 0), -32) @ poses.rot((1, 0, 0), 5), "J_Bip_L_UpperArm": poses.rot((0, 1, 0), 25), "J_Bip_L_LowerArm": poses.rot((0, 1, 0), -16), }) for side, dz in (("L", -.17), ("R", .135)): foot = skeleton.pos(ref, f"J_Bip_{side}_Foot") pose = skeleton.leg_ik(pose, side, foot + [0, .015 if side == "R" else 0, dz]) # Catch the brim with the far hand. The elbow opens to the side so the # glove and the bent sleeve separate from her face in three-quarter view. head = skeleton.pos(pose, "J_Bip_C_Head") pose = skeleton.arm_ik(pose, "L", head + [-.203, .027, -.080], [-.95, -.35, .15]) pose = skeleton.aim(pose, "J_Bip_L_Hand", [-1, 0, 0], [.54, .66, -.13]) hand = rig.grip_points(model, shape, ref)["R"]["point"] shoulder = skeleton.pos(pose, "J_Bip_R_UpperArm") for side in "LR": pose[f"J_Adj_{side}_FaceEye"] = poses.rot((0,1,0), 2) @ poses.rot((1,0,0), -3) # Extend the wrist far enough to give the brim and the sounding staff separate silhouettes. return skeleton.grip(pose, "R", ref, hand, shoulder + [-.080, -.245, -.54], [-.16, 1, .035], [.95, -.65, .4]) def main(): CACHE.mkdir(parents=True, exist_ok=True) name = "arm_f_strong" cast = CAST[name] path = cage.path_for(name, cast["cage"]) model = VRM(path) shape = dict(vp.NEUTRAL, **cast["shape"]) pose = make_pose(model, shape) actor = vp.Portrait(path, shape=shape, pose=pose, costume=costume, morphs={"Fcl_EYE_Angry": .15, "Fcl_MTH_Fun": .12}) actor.paint = dict(signature="#ad5239", tidecoat="#34575b", scarf="#a23e2f", doublet="#393c49", hair="#ead4aa", skin="#e4b48e", boot="#514343", gaiter="#826548", glove="#553e39", wood=dict(kind="leather", base="#65503d"), gold="#c3985c", heraldry="#e2bd85", motif="#ccbf95") palette = dict(vp.PALETTE, **cast["colors"]) export_glb.export_skinned(actor, palette, CACHE / "figure.glb") info = export_glb.scene_info(actor, palette) (CACHE / "camera.json").write_text(json.dumps({"characters": [{"name": "figure", "info": info}]})) if __name__ == "__main__": main() // Runs as the final lines of the review viewer's module in headless Chromium. state.view = "battle"; state.cloth = false; const actor = await loadCharacter("figure"); stage.add(actor.turn); actor.turn.rotation.y = THREE.MathUtils.degToRad(62); const height = 2.36, width = 2.65, middle = .99; R.setPixelRatio(1); R.setSize(1590, 1416, false); camera.left = -.43 * width; camera.right = .57 * width; camera.top = height / 2; camera.bottom = -height / 2; camera.position.set(0, middle + .40, 5.5); camera.lookAt(0, middle, 0); camera.updateProjectionMatrix(); for (const mesh of actor.meshes) { mesh.userData.mats.painted.uniforms.uKey.value.set(.43, .56, .70).normalize(); } render(); window.studyPNG = R.domElement.toDataURL("image/png"); // Read the project viewer directly so its colour, depth and outline passes stay together. // Playwright serves all inputs from disk. Chromium never needs a network connection. const fs = require("node:fs/promises"); const path = require("node:path"); const os = require("node:os"); const root = path.resolve(__dirname, "../.."); const cache = path.join(root, "review/out/high-water"); const packages = process.env.LOWMARCH_NODE_MODULES || path.join(os.homedir(), "context/sortie-node_modules"); const three = path.join(packages, "three"); const { chromium } = require(path.join(packages, "playwright-core")); async function main() { const profile = path.join(cache, "browser"); await fs.mkdir(profile, { recursive: true }); process.env.TMPDIR = profile; const viewer = await fs.readFile(path.join(root, "review/vroid-02/index.html"), "utf8"); const ending = viewer.indexOf("if (!LINEUP.order.length)"); if (ending === -1) throw new Error("Cannot find the viewer entry point"); const shot = await fs.readFile(path.join(__dirname, "shot.js"), "utf8"); const html = viewer.slice(0, ending).replace(/<link [^>]+>/g, "").replaceAll("https://cdn.jsdelivr.net/npm/three@0.160.0/", "/three/") + shot + "\n</script>"; const binary = await fs.readFile(path.join(cache, "figure.glb")); const browser = await chromium.launch({ headless: true, args: ["--use-angle=swiftshader", "--enable-unsafe-swiftshader"] }); try { const page = await browser.newPage(); const errors = []; page.on("pageerror", e => errors.push(String(e))); page.on("console", msg => { if (msg.type() === "error") errors.push(msg.text() + " " + JSON.stringify(msg.location())); }); await page.route("**/*", async route => { const url = new URL(route.request().url()); if (url.origin !== "http://lowmarch.local") return route.abort(); const p = url.pathname; if (p === "/") return route.fulfill({ body: html, contentType: "text/html" }); if (p === "/figure.glb.json") return route.fulfill({ json: {glb: binary.toString("base64")} }); if (p === "/camera.json") return route.fulfill({ path: path.join(cache, "camera.json") }); if (p.startsWith("/three/") && p.endsWith(".js")) { return route.fulfill({ path: path.join(three, p.slice(7)), contentType: "text/javascript" }); } return route.abort(); }); await page.goto("http://lowmarch.local/?sheet=figure"); if (errors.length) throw new Error(errors.join("\n")); await page.waitForFunction(() => !!window.studyPNG, null, { timeout: 45000 }).catch(e => { throw new Error(errors.join("\n") || e.message); }); const png = await page.evaluate(() => window.studyPNG); if (!png || errors.length) throw new Error(errors.join("\n") || "No painted frame"); await fs.writeFile(path.join(cache, "figure.png"), Buffer.from(png.split(",")[1], "base64")); } finally { await browser.close(); } } main().catch(err => { console.error(err); process.exitCode = 1; }); 86:- **It exists, twice:** "Flattice" (flat + lattice) is the name of two unrelated add-ons. Both build a lattice aimed 94:### The two Flattices 96:| | Flattice: Stylized Flattener | Flattice | 104:| Packaging | legacy add-on zip (`goo_flattice_generator.zip`), Install from Disk, N panel "Goo Rigging Tools" [2] | extension, 19.6 KB, one 790-line `__init__.py`; read, not run (zip sha256 eafab40c...ed1458) | 114:- **The switch:** a "Flattice" property on a bone, 0 to 1. It can be animated and library-overridden [1][2]. 120:- **Create Flattice** fits a 2x2xN lattice to the selected objects' bounds and adds a Damped Track to the camera. 125:- **Possibly headless:** besides `bpy.ops.flattice.create`, the build path uses only the data API and context 143: - also has a "Forced Perspective" per-object focal length, which is the same idea as Flattice [11]. 160: look Flattice is chasing. The owner's "too sharp at some angles" came from our fitter, not from perspective 173:**Purchases:** the owner bought Flattice and DillonGoo's "Yin and Yang twin anime rigs". The files are in Windows 175:- `Flattice-Goo-fixed.zip`; 178:**Where things are:** scripts and results are in `~/.local/share/lowmarch/trials/flattice-2026-10-30/`. Nothing was 187:- **The falloff:** a `MOD-Flattice` vertex group, weight 1 above the 3D cursor's Z, fading to 0 over `falloff` 189:- **The switch:** a "Flattice" property, 0 to 1, on the parent or properties bone. It drives the Flatten key. 196:**Headless works.** Set `scene.Flattice_Props` (target rig, parent bone, falloff), select the meshes, put the cursor 197:at the chin, then call `bpy.ops.setup.addflattice()`. On a VRoid armory body (`arm_f_sexy`): 209:**Results (Yin rig, its own Flattice; clean masks of only the flattened meshes):** 242:**Result:** Flattice does what it says, scripts headless, and costs nothing to keep. Lowmarch gets nothing from it while 335:**Flattice in the armory renderer** (`flattice-slender-before-after.png`, same folder): `patch_lens_flattice.py` 336:gives a scratch copy of the built page a perspective lens per tile, perspective-aware outline depth, and Flattice as 344:- **Pivot moved to the chin's front (`flattice-pivot.png`):** the head keeps its size at 0 and 35 degrees, but at 60 349:**Flattice parked (owner, 2026-10-30): no real value until game scenes are composed with a camera.** 351: still in strong 24 mm perspective. Flattening the whole figure (`flattice-whole.png`) reads consistent, but it then 355:- The scratch page patch (`patch_lens_flattice.py`) already does lens, whole-figure, head-only and pivot options. 491:1. https://superhivemarket.com/products/flattice 492:2. https://superhivemarket.com/products/flattice/docs 493:3. https://dillongoo.gumroad.com/l/flattice (price and rating from the page data)150 more lines not shown.