Journal ·
From carte de visite to character
The Union soldiers in the game wear the faces of real Vermonters, built from the small photographs they sat for during the war. How a portrait becomes a person in the game, and where it still falls short.
When this was written the game’s working title was Mosby’s Rangers. It is now Mosby: The Gray Ghost Rides.
Nearly every soldier of the Civil War who could spare the money sat for a photograph. Most of them were cartes de visite: a small print pasted on a card a little bigger than a playing card, cheap enough to have a dozen made and send them home. Others were tintypes, a picture on a thin sheet of iron, which shows its sitter the wrong way round, as a mirror does. Thousands survive, and some of them still carry the man's name.
That is where the people in Mosby’s Rangers come from.
A face for every Federal
For a while every Union soldier in the game had the same face: Brigadier General Edwin Stoughton’s, the man Mosby took from his bed at Fairfax Court House. Stoughton and Mosby were the first two people we built, to prove the method. But a picket post where every trooper wears a general’s face is not a real place, and the Federals needed faces of their own.
The men at Herndon Station were Vermonters of the 1st Vermont Cavalry, and no photograph is known of most of them. So the agents searched the Library of Congress for Vermont soldiers who did leave a likeness, with their names and regiments, and found twenty-eight: privates, sergeants, a hospital steward, a bandsman, field officers and a surgeon, from the 1st Vermont Cavalry and other Vermont regiments. All but two are in the Library’s collections with no known restrictions on their use. The other two are plates from regimental books printed in 1910 and 1919.
Two of the twenty-eight are men the game puts at a raid, Lieutenant Josiah Grout at Miskel’s farm and Lieutenant Samuel Prentiss at Fairfax Court House, and they wear their own faces. The rest stand in for the soldiers no photograph shows. The picket at Herndon now has twenty-two different faces. Where the sources name the men taken that day, the picket carries their names, but the faces are borrowed from other Vermonters, and the game’s roster says so.
Measuring a face
A portrait is a flat picture of a face lit from one side, and it can’t simply be turned into a head. Our first attempt tried. We gave a portrait to an AI model that turns a picture into a 3D shape, and fitted a game character to the bust it made. The result was related to the man and wrong in ways nothing could measure: a moustache became a lump in the lip, and a turned head came out melted. We dropped it.
What works is measuring. A face detector finds several hundred points on the face in each photograph: the corners of the eyes, the line of the brows, the edges of the lips, the outline of the jaw. A small model, trained on more than a thousand faces sculpted in the character editor, turns those points into the editor’s own handles, and the editor sculpts the character until it matches. The proportions come from the photograph, and the face stays a believable face because the editor shaped it.
Each photograph has to pass first: a face must be found, turned less than 35 degrees from the camera, and big enough to read. Where a man has several portraits they are combined, a turned one helping with depth and a frontal one with width. And because the detector makes mistakes, every photograph is read a second time, mirrored. Where both readings agree that one side of the face differs from the other, the difference is kept. Where they don’t, it is the detector’s error, and the face is evened out.
The blind lineup
How do you know a face is right? Not by asking the agent that built it.
Mosby and Stoughton each have several portraits, so some were held back and never used in the fit. A separate agent, which knew nothing about how the characters were made, was then shown a render among six period portraits: a held-back portrait of the right man and five of other men like him. It had to pick. Moustached men were tested against moustached men, so a moustache alone couldn’t give the answer away.
At first it picked wrongly nearly every time. By the last runs it put the right man first in three lineups out of four, for both of them. That means recognisable more often than not among a few look-alikes, not proven, and the critic said itself that it was partly guessing. Its complaints never changed: skin too smooth and young, jaw and cheeks too soft, eyes too pale and wide. Points on a face can carry only so much of a man.
Most of the Vermonters have one photograph, so there is nothing to hold back. For them, and in the end for everyone, the likeness rests on a person looking at it, and that person is me.
Hair, found in the photographs
The face was the easy part.
The character editor comes with a few dozen stock hairstyles, none of them anybody in particular, so we grow our own: a generator writes every strand from a style that says where the hair grows, how long it is, which way it is combed and how it waves. The first result was a bulky helmet. The hair critic, again an agent that hadn’t made it, called it the wrong hairstyle altogether. Rebuilt, it reached the right hairstyle, though not yet the right hair.
The facial hair began the same way, with moustaches drawn over the portraits by rules and then tuned. They looked drawn. One of Major William Wells’s early moustaches came out as a cartoon walrus. So I asked for the process to be turned round. Instead of drawing facial hair and checking it against the photograph, the pipeline now finds it in the photograph: the parts of the lower face darker than the man’s own skin, carried point by point onto our head so the photograph’s proportions hold, then split into moustache, beard, side whiskers and the tuft under the lip. It grows what it found, and measures how well the grown hair covers it.
Eyebrows needed something else. In a portrait lit from a studio skylight, the shadow under the brow ridge is as dark as the brow, so anything that looks for dark hair finds a brow running down to the eyelid. For a while some of our Vermonters had their brows sitting in their eyes. We looked for a published tool that could tell brow from shadow and found none we could use: every face model with a brow in it was trained on data licensed for research only. So brow, shadow, lid and skin were marked by hand on every one of the Vermonters’ portraits, and we trained a small model of our own. It stops the brow where the hair stops, not where the shadow does.
Head hair came last. Every Vermonter had been given the same haircut, nudged by a dozen numbers, and it showed. Now each man’s hair is read from his photograph too: where the hairline runs, how high the hair stands, how far it comes down the sides. The hairline gets the most attention, because it is where the eye goes first: how far the temples recede, and whether it sits higher on one side.
The colour of a black-and-white photograph
The photographs are black and white, and it is worse than that: the plates of the 1860s saw almost nothing but blue light. Hair pigment absorbs blue, so red and brown hair print about equally dark, and fair hair prints a middle grey. No measurement of a grey can give the colour back.
So the colour is weighed, not read. It starts from what was usual. Benjamin Gould measured the Union army’s soldiers during the war, and among the men enlisted in Vermont, brown hair was by far the commonest. Each man’s photograph then shifts the odds: how light his hair prints compared with the other men’s, and how pale his eyes are, because fair hair goes with light eyes. A written record would settle it. The service records that describe a man’s hair and eyes do exist, but we haven’t been able to reach them yet, so for now each colour is a weighed guess, and marked as one.
Clothes cut to the man
The clothes aren’t picked off a rack either. Each garment is a recipe, written from period photographs and from surviving pieces such as the Smithsonian’s 1858-pattern sack coat and forage cap. A tailoring program cuts the garment from the man’s own body, so one recipe fits a tall man and a short one. No record gives most of these men’s height, so each body is drawn from Gould’s tables too: a height and weight typical of a soldier of the time, seeded by the man’s name so it never changes.
The clothes have a critic of their own, which compares them with period photographs of the same garments. Its first verdict on our Federal private was “a fitted knit jumper under a stovepipe hat”. It took several rounds of recutting to reach a loose coat, a low kepi and sleeves that hang as plain tubes, the way the photographs show them.
Major Wells
Major William Wells is the Vermont officer the player meets by name at Herndon. He was at dinner in the Purdie house when the Rangers came, hid in the dark garret, and came down through the ceiling, in Mosby’s words, “covered with mortar and whitewash”. He was 25.
We have two wartime photographs of him, both cartes de visite: one as a major, the rank he held at Herndon, and one as a brigadier general two years later. The only other pictures of him were taken twenty years after the war, when he was grey and heavier, so the portrait held back for his lineup shows an older man, and his likeness rests on my eye more than most. One of the two wartime cards reached us with no record of where it came from. We can build from it, but we can’t show it here.
His clothes follow his rank: a major’s double-breasted frock coat, with gold oak leaves on the shoulder straps. His hat is something the sources don’t settle, because no photograph shows him in one. I chose a black felt slouch hat, the kind officers bought for themselves, over the issue kepi, and in the game he is bareheaded indoors, as a man at a dinner table would be. Mosby remembered the officers’ horses at the gate as finely caparisoned, so Wells’s horse carries the officer’s Grimsley saddle, built to the army’s regulations of 1857.
Not finished
None of these men is finished. In the game the hair is drawn as cards, flat strips that stand in for thousands of strands, and some of them lose the thinning at the hairline that the strands have. The skin is still too smooth and young for men who had spent a year or two in the field. Each fault goes back into the pipeline, so the next build fixes it for every man at once, and each man waits for a person to look at him.
What I like about doing it this way is that the photographs stay in charge. A moustache that is too long or a hairline that is too low is a measurement we can check against the carte de visite. It isn’t a matter of taste.
Marty