The AI kept lifting the wrong leg, so I traced poses from baseball footage

I am making a 2D baseball game on my own, Ninth Inning: Two Outs. It has four players, and each has a pitch and a swing drawn from two sides, front and back: 16 motions in all. They looked awkward, so over two days I had all of them drawn again.

An image model drew them. This post is a record of what I asked for, what came out wrong, and how each thing was fixed. I worked with Claude Code. Claude stepped through the footage, marked the joints, wrote the prompts and built the tools. I looked at the results, said what looked wrong, and approved the credits.

The short version:

What was awkward

The old art was made of frames picked out of generated video. The swing went from the stance to contact in a single drawing and ended with the bat held over her head. Most of the pitch’s frames were the set position. Seen from behind, the batter spread her legs wide to the left and right as she stepped.

The old pitch, seen from behind
Beforepitch, 13 frames
The new pitch, seen from behind
Nowpitch, 15 frames
The old swing, seen from behind
Beforeswing
The new swing, seen from behind
Nowswing

The game has two screens. The batting screen sees the batter from behind and the pitcher from the front. The mound screen is the reverse: the pitcher from behind, the batter from the front. So every player needs four views.

The batting screen
The mound screen

Words alone

The generator was GPT Image 2.6 on Higgsfield. It draws one motion as one transparent GIF (16 frames, 576×576) for 1 credit. As a reference it got two drawings from the old art side by side, her stance and her contact, and the prompt said what to draw in each frame.

Frames 1-2 her stance; 3-4 the load, weight back, front foot lifting;
5-6 the stride, front foot planted, hands still back; 7 the launch, hips open,
knob leading; 8 CONTACT; 9-11 extension and follow-through to the bat wrapped
behind her front shoulder; 12-16 she holds the finish.

Each character and her number held, and the frame script was followed closely. The four pitches seen from the batter’s side are still the drawings from that day.

A pitch asked for in words only, seen from the front
KeptA pitch asked for in words only. From the front there was nothing to fix.

Two things were wrong.

The first was the height of contact. Left alone, she meets the ball at chest height, above the game’s strike zone. Asking for “a belt-high pitch” brought it down.

The second was the legs of the pitch seen from behind the mound, and that is where it stuck.

  1. At first she stepped with the foot on her throwing-arm side. Mira, a left-hander, threw right-handed.
  2. Drawn again, the stride foot was right, but in the kick she lifted the leg nearer the camera: the leg on her throwing side.
  3. With the prompt rewritten, the third round lifted the far leg. Even so, I did not use these drawings and kept the old art.

That was 13 GIFs thrown away. What worked in the third round was a sentence that describes the picture, not one that names the leg.

the near leg does not move, straight, drawn whole from hip to shoe IN FRONT of
the other leg, its side stripe visible all the way down; the far leg's thigh
comes out from BEHIND her hip ... we see the INNER side of the lifted leg,
plain white, no side stripe

For a figure seen from the side, “her left leg” or “her glove-side leg” did nothing. What the generator follows is the picture: which leg is drawn in front, which is hidden behind it, where the stripe down her pants shows.

Finding footage from the same camera

Instead of explaining in words, I decided to show it the real motion. There was one condition: the same camera as the game.

The mound screen is the centre-field camera of a baseball broadcast: over the pitcher’s back, the batter face on. The batting screen is the umpire’s eye behind the catcher, an angle broadcasts hardly use. Compilations of umpire-camera footage were wide-angle with the batter cut off, and mostly showed other moments. In the end the swing came from slow-motion batting practice filmed straight behind home plate at waist height.

Three videos were watched.

The videos were only watched in the browser, paused and stepped a frame at a time. Nothing was downloaded, and no still of them is in the repository or in this post. Only the positions of the joints were taken.

Taking only the pose

Eight moments were picked for each motion. For a swing: the stance, the knee lift, the foot coming down, the launch, the bat coming down, contact, the follow-through, the finish. On each, the head, shoulders, elbows, hands, hips, knees and feet were marked. Apple’s Vision framework found the bodies, but the marks actually used were placed one by one over a pixel grid. Joined up, they became a numbered sheet of eight panels.

A pose sheet of a pitch in eight panels, drawn as stick figures
The first sheet was a stick figure. Red is her throwing side, blue her glove side.

The generator got two references: the character, and this sheet. The prompt said which of the eight poses each of the 16 frames is.

A stick figure does not say what is in front

The first result followed the sheet’s outline and timing. And it lifted the leg nearer the camera again. Colour can tell left from right on a stick figure, but not which one is in front.

So the sheet was drawn again. The limbs nearer the camera are dark and thick, drawn on top. The far ones are pale blue, behind them. The standing leg has a white line down it: the side stripe of her uniform pants.

The pose sheet redrawn with dark limbs in front and pale limbs behind
The sheet, redrawn. Dark is the camera side, pale the far side.
The kick as drawn over each of the two sheets
Same prompt, different sheet. The numbers are frames out of 16.

This time it was right in one go. She stands on the leg with the stripe, the far leg comes up from behind her hip, and at release her number faces the camera. Seen from behind, a pitcher strides away from the camera, so in the picture the foot swings out and comes back in to land near the standing foot. The old art, and the drawings made from words, stepped far out to the side.

The eight poses of the sheet and the frames drawn from them
The sheet's eight poses, and the frames drawn from them.

There was one flaw. In frame 8 an extra hand holding the ball was drawn in front of her face. That frame was left out, and 15 went into the game.

It copies the pose of the reference, too

The swing seen from the mound took four tries.

In the first, once her foot came down she stood with her legs spread left and right and her chest square to the camera, although the sheet has her feet on one line toward the camera. The cause was the character reference. The old contact drawing I had given it stood that way, and the generator took the pose from a picture that was only meant to show who she is.

For the second I gave it her stance alone and wrote that the picture shows who she is, not how she stands. The stance closed. But now her feet were side by side. It had obeyed “never wider apart than one shoe” to the letter. A batter strides toward the camera, so the stride should look short in the picture, but here it did not show at all.

The legs in the first and second takes of the swing
Top row, legs spread to the sides. Bottom row, feet together.

For the third the sheet was changed. The front foot now lands one shoe-length lower in the picture, so the stride shows, and the bat is drawn at its full length at contact. The limit in the prompt was rewritten as what it should look like in the picture.

The third pose sheet for the swing seen from the mound
The third sheet. In poses 2 and 3 the front foot comes toward the camera.

The legs were right. Now a second bat stayed up at her shoulder while she swung. “One bat, never a second bat” was already in the prompt. The fourth prompt said what her hands do instead: her two hands never part, and both go out with the one bat. The second bat was gone, and only a stub was left behind her helmet. The stub was erased from the drawings.

Frames with a second bat, and frames with only a stub left
Three frames around contact.
The swing in the game, seen from the front
KeptTen of the fourth take's frames went into the game.

The skeleton of the prompt

Abridged, the fourth prompt looks like this.

Reference image 1 shows WHO she is and how she is drawn: her face, hair, helmet,
uniform, shoes, bat, drawing style and size. Do not copy its pose ...

Reference image 2 is a POSE GUIDE, not a character: eight numbered mannequin
poses of this swing ... How to read the guide: the DARK limbs are her FRONT side
..., the side NEARER the camera, and are drawn IN FRONT; the PALE BLUE limbs are
her BACK side ..., FARTHER from the camera, and pass BEHIND her body and behind
the dark limbs. The white line down the dark leg is her pants' side stripe. ...
Draw only her, never the mannequin, its colours, the panel borders or the numbers.

Her hands and her bat: there is ONE bat. ... Her two hands never part: when the
bat swings out over the plate BOTH hands go with it, no hand stays up at her
shoulder ...

Timing: frames 1-3 pose 1, held ...; frame 4 between poses 1 and 2; frame 5
pose 2 ...; frame 6 pose 3 ...; frame 7 pose 4 (the launch ...); frame 8 pose 5,
CONTACT ...; frame 9 pose 6 ...; frame 10 pose 7 ...; frame 11 between poses 7
and 8; frames 12-16 pose 8, held ...
  1. Pin down that the first reference only says who she is.
  2. Say that the second reference is a pose, not a character, and how to read it. “Never draw the mannequin” was needed as well.
  3. Where it keeps going wrong (the hands and the bat), say what they do.
  4. Say which pose each of the 16 frames is.

The swing from behind: a sheet can be edited

The swing on the batting screen was redrawn the same way. From behind, a batter strides away from the camera. Her legs overlap, one behind the other, and as she swings her back comes round to the camera. In the old art her feet ended up 0.7 of her height apart across the picture.

The batter in the footage was reaching for a low pitch, his bat 50 degrees below level. The game’s zone is belt-high. So on the sheet the hands stayed where they were and the bat was laid at 15 degrees. The footage was never something to copy as it is. Once it is reduced to joints, it is an intermediate drawing that can be changed as much as needed.

The pose sheet for the swing seen from behind
The sheet for the swing from behind. Here her back leg and back arm are the camera side.

This one came out in a single generation. Its one flaw was two bats in frame 9, and the very next frame was a clean contact. That frame was left out and ten were picked.

Frame 9, drawn with two bats
Frame 9 is left out and frame 10 is the contact.

Four players, and left-handers

The other players were drawn over the same sheets without going back to the footage. For a player of the other hand, the sheet was mirrored panel by panel. The swing from behind has to show her number and the back of her hair, so a crop of her back, helmet to belt, from the old art went in as one more reference. As long as the prompt said what that picture was for, it did not pull the pose toward it.

The swings mostly came out first time. Only Mira needed a second. In her first, one frame had two empty fists and no bat, and at the finish the bat faded into her curls.

Mira's first and second takes of the swing
The second prompt added that her fists hold the bat in every frame, and had her finish with the bat up, clear of her hair.

It stuck again at the left-handed pitchers. Sena, a right-hander, was right first time with Rio’s sheet. Mira and Noel, left-handers, got the mirrored sheet, and both lifted the leg nearer the camera. For Mira I also tried mirroring her reference, having her drawn right-handed, and flipping the result. Same leg.

What worked was dropping the mannequin. Eight of Sena’s finished drawings, mirrored, became the pose reference.

Eight of Sena's pitch drawings, mirrored, used as a pose reference
The pose reference made by mirroring Sena's new drawings.
Mira's kick in two takes
Mira's kick. In the bottom row the leg with the stripe is the one she stands on.

The legs were right. But Sena’s things came along. Mira’s arms are bare, and Sena’s long navy sleeve was drawn on them in six frames. Noel, drawn the same way, came out with Sena’s 11 on her back in eleven of sixteen frames, although the prompt said not to draw the number 11.

The navy sleeve on Mira's arm, and the repainted frames
The bottom row is the art in the game, shown in away colours.
The 11 on Noel's back, and the corrected frames
Noel's number is 7.

Neither was generated again. Both were fixed in the drawings.

From a GIF to game art

A generated GIF does not go straight into the game. Three Python tools sit in between.

A frame as generated, and the same frame in the game in away colours
Left, as generated. Right, the same frame in the game in away colours. One generation; the colours come from masks.

The waistline took the most hand work. Seen side-on, the belt read as one piece with the stripe down her pants. In one frame a ponytail hanging down her back was read as the belt, and in others a navy sleeve across her body was. Where the tool cannot find the belt, a few points marked on it tell the tool where it is.

Colours that match were the other problem. Mira’s skin is close to the wood of the bat, so in her contact frame the bat’s line ran on through her fists and up her arm. That frame has the middle of her fists marked by hand. For silver-haired Sena, the shading in folds of cloth was read as hair. In places like these it is the tools that go wrong, not the generator.

One thing that caught me in Godot: after replacing the image files, without godot --headless --import the game plays the old texture with the new frame count.

What the generator gets wrong is fixed in the drawing

What was wrong How it was fixed
Two bats or three hands in one frame That frame is left out, and the frames around it share its time.
A stub of bat left behind the helmet (3 frames) A point is marked on the stub, and the wood joined to it and its outline are erased.
Another player’s long sleeve (6 frames) The navy joined to a point on the sleeve is repainted in the skin colour of the arm beside it.
Another player’s number (10 frames) Her own 7 is cut from a frame that has it and laid over, tilted to match her back.
After the throw, her arm hangs from the wrong side The last frame is left out, or the misplaced arm is erased.
The ball in her hand touches her shoulder and takes the uniform’s colour Where the ball is, and its radius, are marked.

The repaint needed a radius. Without one, the belt that the sleeve lay against turned skin-coloured as well.

Each fix was kept as a test. Once what you saw is a number, you do not have to look for the same thing in the next drawing.

What it cost

How Generations Motions in the game now
Words alone 30 4
Over a pose sheet 20 12
Total 50 16

One generation is 1 credit, so 50 credits. I have left out the money, since it depends on the plan.

Of the 30 generations asked for in words, the four pitches seen from the batter’s side are what is left. The 13 pitches from behind the mound were all thrown away, and the eight swings were drawn again over pose sheets. With pose sheets, 20 generations replaced twelve motions. Eight of those could not be used.

What I learned

What is left

Mira's swing
Mira
Sena's swing
Sena
Noel's pitch
Noel
Mira's pitch
Mira