How we make the characters for Wrenchhaven, our steampunk survival game: we write a hero down, local AI models draw her and her gear, turn each piece into a 3D model, and Blender scripts fit every piece to one rigged body so it moves with her in the game. Below: one hero all the way through, the software, and how to build your own.




The Architect, in the game's equipment lab, wearing the four gear levels she has today. Every piece here came out of the pipeline below; nobody modelled anything by hand.
Eight steps. The first four are AI models running on one gaming PC; the last four are scripts (written by AI coding assistants) that do the tailoring. A person picks the best picture at each stage and judges the result in the game.
The Architect is one of seven heroes in Wrenchhaven's women's lineup. Here is exactly how she went from a line in a script to the four sets above.
A hero is a short record: who she is, what she does, what she wears in each of seven slots, and what she carries. The words are plain on purpose: "chest guard", not "cuirass", so the gear level decides what it's made of.
architect: "Architect", "Town planner and builder"
person: a woman with bright red hair in a high messy bun
idea: a surveyor and builder
slots: wide-brimmed hat, long duster coat, cuffed sleeves,
drafting gloves, measuring-tape belt, trousers,
field boots
weapon: surveyor's staff
extras: plans tube slung on her back, theodolite
First comes her base picture: the same prompt for every hero, with her description dropped in. She wears a snug grey t-shirt and shorts, barefoot, empty hands, standing straight on a grey background. We make four and pick one. That picture fixes her face and build for everything after.
Each gear level is a sentence about materials. Combined with her slots, it becomes the prompt for a costume sheet: her base picture on the left, blank parchment on the right, redrawn in one pass so she's wearing the set on the left and the same pieces are laid out on the right.
Making both halves in one picture is the trick. Drawn separately, the worn set and the laid-out pieces drift apart: a breastplate on one, an apron on the other.
Words matter: "brass apron" made everything solid gold, so the prompts describe materials ("polished silver-steel-and-brown-leather") instead of naming the level.

A picture-editing model takes the whole sheet plus an instruction and returns one clean picture of one piece. A small job file lists the pieces; a script fills in a prompt template for each kind of piece and asks for a few tries of each. We pick the best try from a contact sheet.
Show only the long brown leather duster coat, open at the front, worn by the woman on the left, as if worn by an invisible mannequin standing in an A-pose: both sleeves hollow and raised out from the body at 45 degrees ... Plain uniform light grey background ... no person, no mannequin, no text. A clean 3D render from Blender, not a painting.
TRELLIS.2, an image-to-3D model from Microsoft, reads the picture and builds a textured mesh, guessing the back and inside. We run it at "game" size: 30,000 triangles and a 1K texture, about two minutes per piece. A ten-piece set is roughly half an hour of GPU time.
The model on the right is the raw coat, straight out of TRELLIS. Drag to turn it. Its sleeves are held away from the body because the picture was drawn in an A-pose.
TRELLIS has habits we correct later: it bakes the picture's lighting into the texture, turns shiny gold into khaki, makes metal plates 1 to 1.5 cm thick, faces most hats backwards, and reads drawn cloth folds as real lumps.
Every woman in the game shares one body, a "dress form": a clean mannequin Jim made and approved before anything was built on it. (We tried one body morphed into every build first; it looked wrong, so it's one body per body type.)
A Blender script fits Mixamo's standard skeleton to her: it finds the joints from cross-sections of the mesh and keeps the original bone directions, so every Mixamo animation plays on her unchanged.
Her face is a mix: a render of the blank head plus a portrait go through the editing model together, the picked result goes through TRELLIS.2, and the new head and hair are grafted on. Hair is its own mesh, so a hat can hide the crown. Underwear is painted into her skin texture.
This is where most of the work went. Each set is a recipe: one line per piece saying which slot it fits, which layer it's on, whether it's rigid metal, and any corrections. One command fits the whole set in Blender, with no one at the keyboard.
P('coat', 2, fit='coat', layer=4, length=112, metal=True,
drop=['hand'], grade={'leather': [110, 60, 40]}),
P('pauldrons', 3, fit='shoulder', layer=4, size=0.85),
P('boots', 8, fit='boot', layer=3, metal=True),
P('hat', 1, layer=2, metal=True, ease=1.08, band=6.0)
The fitting script alone is about 1,800 lines of Python. All of it was written by AI coding assistants over many rounds of "that doesn't look right".
The game has a dev-only equipment lab page: pick a body, put pieces on, play idle, walk and sprint, turn the camera. A script takes a strip of shots of every set: the concept, then front, three-quarter, side, back and four head views.
Before we look, a "fitting team" of AI reviewers (a tailor, an armourer and a hat expert) studies each strip against the concept and writes up what's wrong: a boot turned so the toes poke out, a hat facing backwards, a coat sliding off one shoulder. The recipe is fixed and the set rebuilt. Two to four rounds per level is normal; then Jim judges it in VR.
Each piece becomes an item with a slot and a layer. In the game the pieces are bound to her live skeleton, so they move with every animation, and her skin is hidden under whatever covers it. The game is a browser game (TypeScript, three.js) that also runs in VR on a Quest 3.
Seven heroes at four levels so far: twenty-eight sets, all from the same scripts. A new hero at a new level is now an afternoon: an hour of pictures and picking, half an hour of GPU, a build, and a couple of review rounds.
Almost everything runs locally on one Windows PC and is free. The one paid tool is optional.
| What | Used for | Where it runs | Cost |
|---|---|---|---|
| Claude Code (also OpenAI Codex) | AI coding assistants. They wrote every script here, run the builds, and act as the review team. | Terminal on the PC | subscription |
| ComfyUI | The engine that runs the image and 3D models. Our scripts talk to it over its local web API. | Local, NVIDIA GPU | free |
| Z-Image Turbo | Text to picture: base pictures and costume sheets. About 5 s per picture. | In ComfyUI | free |
| Qwen-Image Edit (2.1 Turbo) | Picture + instruction to picture: one piece at a time, faces. 3 to 5 s per edit. | In ComfyUI | free non-commercial licence |
| TRELLIS.2 (Microsoft) | Picture to textured 3D model. About 2 minutes at game size. | In ComfyUI (int8, fits 16 GB) | free |
| Art Studio | Our own little web page over ComfyUI: prompt rounds, variations, edit, extract parts, to 3D. Scripts drive it too. | Local web page | our code |
| Blender 3.6 LTS | All fitting, rigging, skinning, texture grading and export, run headless from Python. | Local, no window | free |
| Mixamo (Adobe) | The standard skeleton and the animations (idle, walk, sprint, attacks). | Web | free with an Adobe account |
| Vizcom | Jim's own drawings and the mannequin body. Optional: a free CC0 base body works too. | Web | paid optional |
| Python · numpy · Pillow | Glue: job files, prompts, contact sheets, measurements. | Local | free |
| three.js · TypeScript · Vite | The game and the equipment lab. Godot or Unity would work the same way. | Browser / Quest 3 | free |
Tried and set aside: one MakeHuman body morphed into every build; Quaternius's CC0 mannequin and outfits (good, but replaced by Jim's own body); GarmentCode sewing patterns with cloth simulation (works, but slower than wrapping); Hunyuan3D-2 (the older image-to-3D model).
What you need: Windows 11, an NVIDIA card with 16 GB or more, 32 to 64 GB of RAM, and about 100 GB on a fast drive. Expect an evening for steps 1 to 4 and a few days of back-and-forth with your AI for steps 5 to 7. The prompt file below walks your AI through all of it, with checks at each stage.
NVIDIA's current driver, Git, uv (Python manager), Node.js LTS, and Blender LTS. Note where blender.exe lives; scripts call it by full path.
Clone the official ComfyUI repo, make a Python 3.12 venv with uv, install the CUDA build of PyTorch and ComfyUI's requirements, and start it at http://127.0.0.1:8188. Its Browse Templates menu lists each model's files with download links.
Open the templates for Z-Image Turbo (text to picture), Qwen-Image Edit (picture editing) and Pixal3D & TRELLIS.2: Image to Model (picture to 3D), and download the int8 or fp8 files each lists. Try each once in the ComfyUI page: a picture, an edit, a 3D model.
Three command-line tools that send graphs to ComfyUI's API: make_image, edit_image, to_3d. Chain them: a prompt in, a GLB out. A small studio web page on top is nice to have.
A clean A-pose mannequin, one per body type. Rig it to Mixamo's skeleton (their auto-rigger is easiest) and download the animations you need. Load it in a test page and play every clip.
A hero record and a material sentence per level. Make the base picture, then a costume sheet per level, then one picture per piece, then a 3D model per piece.
Blender scripts fit each set to the body from a recipe. A lab page shows it worn and moving. Fix the recipe, rebuild, look again. This is where your AI earns its keep.
Keep raw Mixamo files out of public repos (they're fine inside a game, but shouldn't be shared as files), and check each model's licence before selling anything: the Qwen editing model used here is non-commercial.
A plain-text brief for an AI that can run commands on your PC (Claude Code, Codex, Aider and the like). It describes this whole pipeline with the prompt templates, settings and every gotcha we hit, and asks it to build your version one checked stage at a time, ending with one of your heroes at two gear levels.
Save it into an empty folder, start your assistant there and say: "Read setup-prompt.txt and do what it says."
SET UP A LOCAL "TEXT TO GAME HERO" CHARACTER PIPELINE ===================================================== Give this whole file to a coding agent that can run commands on your PC ... YOUR JOB (to the AI reading this) You are setting up a local, mostly free pipeline on my Windows PC (NVIDIA GPU, 16 GB VRAM or more) that turns a short text description of a game hero into: 1. concept pictures of that hero, wearing a full set of gear at several gear levels, 2. one clean picture per gear piece, 3. a textured 3D model (GLB) of every piece, 4. a rigged base body that plays standard animations, 5. every piece fitted onto that body ...