art.jimrooney.com
Wrenchhaven · Character Generation

From a few lines of text to a hero in four sets of gear

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 Scrap gear: sackcloth duster and hat
Scrap level 1
The Architect in Iron gear: dark leather duster and iron pieces
Iron level 3
The Architect in Brass gear: brown leather duster, silver hat, trousers and pauldrons
Brass level 4
The Architect in Aether gear: blue-black coat with glowing crystals
Aether level 6

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.

The pipeline at a glance

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.

One hero, start to finish: the Architect

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.

Step 01

Write the hero down

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.

Base picture: red-haired woman in a grey t-shirt and shorts
Her base picture, about five seconds on the GPU.
Step 02

One costume sheet per gear level

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.

Scraptwigs, bark, woven grass, undyed sackcloth rags and twine, like a castaway made it
Irondull hand-forged iron with hammer marks and rivets, plain brown leather, grey wool
Brasspolished silver steel, dark-brown leather, small brass trim, etched patterns
Aetherdark brass and blued steel set with glowing blue-violet crystals and runes

Words matter: "brass apron" made everything solid gold, so the prompts describe materials ("polished silver-steel-and-brown-leather") instead of naming the level.

Costume sheet: the Architect in Brass gear, with the pieces laid out
The sheets we picked for each level. Tap a level.
Step 03

Pull each piece out on its own

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.
  • Coats are drawn in an A-pose, sleeves out. Sleeves hanging straight down can't be put on arms later.
  • Pairs need only one (boots, gloves, bracers): the fitting step mirrors it.
  • Edit from the whole sheet and say "worn by the woman on the left". From a crop of just her, the model redraws the whole person.
Contact sheet of tries: hat, coat, pauldron, cuff and glove
Part of the Brass Architect's contact sheet: two to four tries per piece, three to five seconds each.
Step 04

Turn each picture into a 3D model

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.

The Brass coat as TRELLIS.2 made it (5.8 MB GLB), before any fitting.
Step 05

One body that everyone wears

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.

The plain dress-form mannequin
Blank mannequin head Face concept: red wavy hair
The rigged body with face, hair and painted underwear
The bare mannequin; the blank head and the face concept made from it; the rigged body with head, hair and painted underwear.
Step 06

Fit the kit

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)
  • Size and place from her measurements: head, shoulders, chest, waist (a woman's narrowest point, not her hips), hips, knees, feet.
  • Wrap cloth and leather onto her, or onto the layer below, a few millimetres off. Rigid metal keeps its shape and is pushed out until no skin pokes through.
  • Special cases: boots try turns about the ankle and keep the one that covers her toes; shoulder plates sit on the shoulder ball; tight trousers are rebuilt from her own leg surface with only the drawn colours kept.
  • Skin each piece to her skeleton, mirror pairs, and grade the textures back to polished gold, steel, dull iron or leather.
  • Four layers: underclothes, clothes, armour, outerwear. Each set stays under 6 MB.

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".

Brass costume sheet The fitted Brass set on the body The fitted Iron set on the body
From the sheet to the fitted set: the Brass kit and, for comparison, the Iron kit built by the same script from its own sheet.
Step 07

Review it on the body, in motion

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.

Review strip: concept, front, three-quarter, side, back and head views of the Brass Architect
The Brass Architect's last review strip (round 5). Known leftovers: boots a little short, hair still rough.
Step 08

Into the game

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.

Scrap Iron Brass Aether
The same body, four recipes.

The software

Almost everything runs locally on one Windows PC and is free. The one paid tool is optional.

WhatUsed forWhere it runsCost
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
ComfyUIThe engine that runs the image and 3D models. Our scripts talk to it over its local web API.Local, NVIDIA GPUfree
Z-Image TurboText to picture: base pictures and costume sheets. About 5 s per picture.In ComfyUIfree
Qwen-Image Edit (2.1 Turbo)Picture + instruction to picture: one piece at a time, faces. 3 to 5 s per edit.In ComfyUIfree 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 StudioOur own little web page over ComfyUI: prompt rounds, variations, edit, extract parts, to 3D. Scripts drive it too.Local web pageour code
Blender 3.6 LTSAll fitting, rigging, skinning, texture grading and export, run headless from Python.Local, no windowfree
Mixamo (Adobe)The standard skeleton and the animations (idle, walk, sprint, attacks).Webfree with an Adobe account
VizcomJim's own drawings and the mannequin body. Optional: a free CC0 base body works too.Web optional
Python · numpy · PillowGlue: job files, prompts, contact sheets, measurements.Localfree
three.js · TypeScript · ViteThe game and the equipment lab. Godot or Unity would work the same way.Browser / Quest 3free

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).

16 GBGPU memory (RTX 4080 Super). Every model runs in it, one at a time.
~5 sper picture or edit
~2 minper 3D piece at game size
~50 GBof model downloads

Setting it up

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.

  1. Install the basics

    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.

  2. Install ComfyUI

    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.

  3. Add the three models

    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.

  4. Wrap them in scripts

    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.

  5. Choose and rig a body

    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.

  6. Write a hero and her gear levels

    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.

  7. Fit, look, repeat

    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.

For your own AI

Hand this to your coding assistant

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 ...