← Gravity Monarch dev log

The image model never draws the letters

#ai-agents#design#writing-with-ai

Two stacked layers seen at an angle: a dim art layer below, and a clear layer above holding one glowing amber speech balloon whose tail drops to a small circle on the art

My first comic pilot, a short test run of a comic adaptation of my novels, came back with speech balloons floating in the wrong corner of the panel, pointing at nobody. In some panels the reply sat above the question. The art was fine. The letters were the problem, and the image model hadn't drawn any of them.

Text is composited, never generated

This week I built a production engine for vertical-scroll comics alongside Gravity Monarch, my fantasy novel series. One rule shapes it: the image model draws pictures and nothing else. Balloons and lettering are laid over the art afterwards by a deterministic compositor, as editable SVG layers. Across 32 generated images, none came back with stray text baked in.

That rule moved every lettering bug into code I could read. The pilot ran 18 panels. Fourteen passed on the first attempt, and the whole run took 22 generations.

Three reviewers, two root causes

I ran three review passes over the finished strip, each an AI reviewer with fresh context and a different focus. They filed 34 findings, a script checked each one against the files, and all 34 held up. The three reviews converged on two root causes in the compositor.

First, balloons snapped to one of six fixed corners. A corner knows nothing about who is talking, so balloons drifted away from their speakers and sometimes reversed the reading order. Second, the strip was cut into fixed 1,280-pixel slices, and some cuts ran straight through live text.

BEFORE one of six fixed corners AFTER anchored to the speaker balloon speaker balloon tail target speaker BEFORE a seam every 1,280 px AFTER seams avoid the type seam seam
The two root causes the reviews converged on. Both fixes live in the compositor.

Fix the layout engine once

Now each balloon anchors to its speaker with a tail target, and slice seams move to avoid type. Both fixes live in the compositor. When text sits in a deterministic layer, a lettering bug is a layout bug, and one fix repairs every page that comes after it.

This is the build log for Gravity Monarch (gravitymonarch.com) · All entries · Weekly essays