The Three Little Pigs: the wolf blows at the straw house while the first little pig peeks out of the window.
← Back to the bookshelf
We don't recommend this method. Asking an image model to draw the characters as well as the world meant new drawings for every action and a constant fight for consistency. Our picture books now paint only what stays still and move the characters in code: see Joke Collection.
An experiment

The Three Little Pigs

The other books on this shelf start from a textbook and draw every picture in code. This one started from nothing but the story. An image model painted the characters and places, and code made them move, speak and dance. It works, and it's fun to watch. But the method turned out not good enough to become part of the Papermorph Skill. Here is how it was made, and why.

▶ Watch the film 4½ minutes · narrated · music
Mother Pig waves goodbye with her handkerchief. The first pig carries straw to her half-built house. The wolf licks his lips. The straw house flies apart. Three pigs in the windows of the brick house. Happily ever after.

What we set out to do

Take a story with no book and no pictures, and make it an animated film you can pause, scrub and read along with. The pages are the same kind as the rest of the shelf: static web pages, one SVG stage, narration clips driving every move. What was new: the art came from an image model (OpenAI's gpt-image through OpenRouter), and the goal was for it to feel like a TV cartoon, not a slideshow.

The same scene in three styles: gouache, cut paper, TV cartoon.
Style tests, one scene in three looks. We chose the TV cartoon (right).

Four tries at a character

  1. Rotating painted parts. We cut the wolf into image pieces and rotated them at the joints. Too stiff: it read as a paper puppet, with seams at every knee.
  2. Painted body, code-drawn limbs. Arms and legs became bendable SVG curves with feet planted by inverse kinematics. Much livelier, but the first scene, shot from one fixed camera, still felt like a slideshow.
  3. Separately painted parts. Heads, bodies, sleeves and hands from separate generations never lined up: arms came out beside the sleeve, collars doubled, hands went missing.
  4. Characters drawn entirely in code. They lined up perfectly, but looked far too crude next to the painted world.
The wolf assembled from rigid painted parts.
Try 1: rigid parts.
The wolf with bendable code-drawn limbs.
Try 2: bendable limbs.
Mother Pig's arm emerging beside her sleeve.
Try 3: parts that don't fit.
Mother Pig drawn in code, crude.
Try 4: drawn in code.

What finally worked

One picture, edited, never redrawn

Each character got one large picture. Every other version was an edit of that same picture: without the near arm, without eyes and mouth, with the legs in each walking pose, with each mouth shape. Because the edits change only a few percent of the pixels, they line up exactly, and a script can cut parts out wherever two pictures differ.

Mother Pig three times: complete, without her arm, without her face.
Mother Pig as drawn, without her arm (the dress behind it painted in), and without her face.

Vectorized, then swapped like a TV cartoon

The cut parts were traced into vector shapes, so close-ups stay sharp. Then they were baked back to images, because live tracing was too slow. Movement comes from swapping drawings the way TV cartoons do. Legs walk on four drawings, each held for a few frames. Arms swap between drawn gestures. Big actions, like sleeping or running, are whole drawings of their own. Code adds the rest: body bounce, blinks, eye movement and the camera.

Mother Pig painted, vectorized, and zoomed in three times.
Painted, vectorized, and the vector zoomed in three times.
Four walking drawings of the wolf.
The wolf's walk: four drawings, all edits of the same picture.
The first pig carrying, tossing, napping, laughing and running.
Whole-body drawings for actions that limbs alone can't do.
The wolf sniffing, grinning, inhaling, blowing, tiptoeing, collapsing and howling.
Every wolf action in the film is one of these.

Faces that talk

Each face has a featureless "faceplate" laid over it. On top go moving eyes, lids that slide down to blink, and brows. Mouth shapes are painted by the model, and each one is timed to a word from the voice track.

The wolf's mouth: closed, and four open shapes.
The wolf's mouths. Each is a block of the muzzle with a soft edge, so the jaw can really open.
Mother Pig's mouth: closed and four shapes.

Places, houses and the camera

Backgrounds were painted, then separated into layers: sky, hills, ground, buildings, and flowers close to the camera. Layers slide past each other as the camera moves, and the background softens in close-ups. The houses come in three aligned stages, so building them is a series of thumps, not a wipe. The camera cuts on words: a close-up for whoever speaks, a follow shot when someone runs. Silences were spliced into the narration to give the building and the huffing room to happen.

The cottage scene as five separate layers.
Mother Pig's cottage in five layers.
Each house in three construction stages.
Three houses, three stages each.

The voices are free text-to-speech, one voice per character; when all three pigs answer the wolf, three voices are stretched to the same length and mixed into a chorus. The music, four instrumental pieces, was generated with Google's Lyria and crossfades between parts of the story, dipping under the voices.

What kept going wrong

Almost every fix came from a problem spotted while watching, and many of them were specific to one character.

A hollow arm, a missing hand, and ghost legs.
A see-through arm (fur the same colour as the body behind it fooled the cutting), a missing hand, ghost legs from blending two drawings.
Medium and high quality side by side, zoomed in.
Medium (left) and high (right), vectorized and zoomed in three times.

The numbers

~4½ min11 scenes
~220generated pictures
$10.7pictures and music
1 dayof making and fixing

Why we don't recommend it

Every new action needs new drawings. In a book drawn in code, a new movement is a few lines. Here, picking up a pot, climbing a ladder or running away each means another round of edits per character, plus cutting, checking and fixing. The film can only do what was drawn, and you notice the gaps.

Consistency has to be fought for, character by character. Hips, collars, sleeves, fur and mouths each needed their own handling. A safety filter or a second model could break a character halfway through.

It doesn't get cheaper with practice. The first scenes were polished. The later ones, made faster, came out rough. A Skill should make the hundredth chapter as good as the first. This method makes each one cost about the same, in money and attention.

So the story is finished and stays here, as a record of a path we walked and wouldn't recommend as it stands. What we kept from it: an image model is very good at painting a world that stays still. Joke Collection uses it for exactly that, sets and props only, while paper puppets drawn in code do all the acting. What would change our mind: image models that can hand back a character as a real, bendable rig, or video models that keep a character consistent and can be steered word by word.

▶ Watch the film