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.

The Three Little Pigs

An experiment

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, built like the rest of the shelf. What was new: the art came from an image model (OpenAI's gpt-image through OpenRouter), and the goal was 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. Too stiff, with seams at every knee.
  2. Painted body, code-drawn limbs. Much livelier, but one fixed camera still felt like a slideshow.
  3. Separately painted parts. They never lined up: arms came out beside the sleeve, hands went missing.
  4. Characters drawn entirely in code. 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, and every other version was an edit of it: without the near arm, without a face, with the legs in each walking pose. The edits change only a few percent of the pixels, so 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. Movement comes from swapping drawings the way TV cartoons do: legs walk on four drawings, and big actions, like sleeping or running, are whole drawings of their own. Code adds body bounce, blinks 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, with moving eyes, lids and brows on top. Painted mouth shapes are timed to the words of 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 that slide past each other as the camera moves. 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.

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 per character. The music, four pieces generated with Google's Lyria, crossfades between parts of the story.

What kept going wrong

Almost every fix came from watching, and many 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 or climbing a ladder means another round of edits per character. The film can only do what was drawn, and you notice the gaps.

Consistency has to be fought for, character by character. A safety filter or a second model could break a character halfway through.

It doesn't get cheaper with practice. 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 film stays here as a record of a path we wouldn't recommend as it stands. What we kept: an image model is very good at painting a world that stays still, and Joke Collection uses it for exactly that. What would change our mind: image models that 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