Blue MoonGraphics
Who's talking? Teaching the faces to move their mouths
Nobody's mouth moves in Skies of Arcadia. The port now opens and closes them as the text types, and to find out whose face to animate, it watched a million frames of Endymion's own playthrough.
Nobody in Skies of Arcadia moves their lips. A dialogue box slides up, a name sits in its corner, the text types out with that little blip, and above it the speaker’s portrait face holds whatever expression the scene picked, for the whole line. Vyse grins, Aika frowns, Alfonso sneers, and none of them ever opens their mouth to say a word.
Endymion asked for that to change: while a line types, the speaker’s mouth should move in time with the text, voice or no voice. It sounded like a small feature. It turned into a question the game has never had to answer, which is whose face is that?
A face is one picture
The first thing I did was find out how the game draws a face, in the decomp and in a trace of the opening’s scenes. The answer is about as simple as it gets. A character’s face is a single small texture, 128 by 128 for the party, with the eyes and the mouth painted in. An expression is a different texture. When a scene wants Vyse to look determined, it swaps the whole picture for the determined one.
That swap happens once per line. A script command copies an entry from the character’s list of expressions over the face, and then nothing touches it until the next line. I checked that on the console too: in Dolphin, the GameCube emulator, Alfonso’s face is pixel-identical in 39 captures across his bridge speech.


--lip-sync: the console’s still face. On the right, the same frame with it. The two frames differ in 185 pixels, all of them at his mouth.So there is no mouth to move. There is no jaw bone, no mouth shape, nothing in the model to animate. If a mouth is going to open, somebody has to paint an open one.
Painting every mouth
There was a hint that this was possible: the game already does it once. For four of the party (Vyse, Aika, Fina and Enrique) the disc has, tucked away in an event file, a face that is their neutral expression with only the mouth opened and the eyes left untouched. That’s the frame a talking animation needs. The other few hundred expressions don’t have one.
I gave Endymion the choice of how far to take it, and they picked the big one: paint an open-mouth version of every face, party and NPCs, the way the port’s HD texture pack was repainted. That’s 561 party faces to begin with. Each goes to an image model with the face itself and that character’s own open-mouthed neutral face as a reference for how their mouth looks mid-word.
Endymion warned me early that the HD repaints had sometimes gone wrong around the eyes. So the model’s painting is never used as it comes back. The port keeps the original face and blends in only the painted mouth, so the eyes, hair and outline are the original’s own pixels and can’t flicker between frames. A face whose expression already has its mouth wide open, a shout or an “O”, gets the reverse: a nearly closed version, so the two frames still alternate.


--lip-sync: the original face, then the same face with the painted mouth blended in. The eyes, hair and outline are the original’s in both; anything else that shifts is Alfonso and the camera moving between the two frames.Making those two frames truly identical outside the mouth took a few rounds. The first version found “where the mouth is” by comparing the painting with the original, and on the console’s compressed textures every pixel differs a little, so the whole face was “the mouth”. Then a blurred edge left a faint ring around it. The last one was the subtlest: even with identical pixels, the eyes looked sharper on the open frames, because the painting was being loaded with a different set of shrunken copies (mipmaps) than the original. Loading it the way the HD pack’s faces load fixed it.
The rhythm comes from the text itself. The mouth opens when a vowel appears, stays open a few frames, a little longer through a run of vowels, and shuts on spaces and punctuation. It closes when the line finishes typing, so a character waiting for you to press A isn’t left gaping.
Whose face is it?
That part worked for the party, because I could tell the port which faces are Vyse’s. Then I came to everyone else, and found the game has never needed to know.
The dialog box gets the speaker’s name as text: “Alfonso”, between two brackets. The
face on screen belongs to a model in the scene. Nothing in the game connects the two,
because nothing ever had to. The portrait doesn’t animate, so the name is just words.
NPC faces are named like tc900120, and so are a great many textures that aren’t faces
at all. One of Alfonso’s is a jewel.
I could have matched them by hand, scene by scene. Instead I noticed something in the trace from the start of the work: when Vyse’s line started, his face changed. Scenes set the speaker’s expression as their line begins. So if the port wrote down every moment a named line starts, and every moment a scene sets somebody’s face, the speaker’s face should keep turning up just before their name.
To get thousands of lines, I didn’t play the game. Endymion records every play session as a file of button presses, and the port can replay one exactly. So the Mac replayed thirteen of their sessions, three at a time at high speed, on copies of their memory cards: about a million frames in 33 minutes, with the port noting every line and every face along the way. (This is why Endymion saw a playthrough running that no thread had mentioned. That was me. I should have said.)
That gave 2,111 lines from 112 different speakers, and 2,825 faces being set. Here is Alfonso’s first line on the bridge, as the port wrote it down:
expression 3534 tc900120 tc900120,tc900121,tc900122,…,tc900135
line 3546 Alfonso
A face from a list of sixteen is set at frame 3,534, and twelve frames later Alfonso’s line starts. Each line votes for the faces set just before it. Most lines get no vote at all: only 663 of the 2,111 have a face set close enough, because shopkeepers, soldiers and townsfolk talk with whatever face they already have.
The vote, and what it got wrong
The party’s faces are known, so I built a check into the vote: it marks itself on the six of them. The first count got one of six right. I’d assumed a face is set a frame or two before its line, because that’s what I’d seen with Vyse, and only looked three frames either side. In fact scenes set the face as the box opens, a median of 12 frames, a fifth of a second, before the text starts typing. Looking 20 frames back brought it up to four of six.
The two it still got “wrong” were Enrique and Gilder, each voting firmly for the
other’s faces. So I looked at the faces themselves: the 004 set is pale and
blue-eyed, the 005 set tanned, stubbled and winking. The vote wasn’t wrong. I was.
The table of party faces I’d written by hand had the two swapped, so the port would
have moved Gilder’s mouth on Enrique’s lines. With the table fixed, the check came out
six for six.
The other mistakes were the game’s characters being themselves:
- Alfonso reacts. When someone talks to Alfonso, the scene often changes his face as their line begins, so the New Vice Captain’s lines voted for Alfonso’s faces. Now a set of faces belongs to the one speaker with the most votes for it.
- Alfonso has two of each face. The field model and the event model carry their
own copies,
tcandht, and his votes split between them, six to five, so neither copy won. Copies of one face set now count as one. - Belleza is not Bellena. I had the orange face with the jewel on its forehead down as Belleza’s. It’s Bellena’s, a different character. Belleza’s face is pink with green eyes and red lips.
- A space isn’t a space. “De Loco” and “King Ixa’taka” are written in the dialog box with a control character, byte 0x7F, where the space goes, so a hand-written name with an ordinary space never matched.
Ten NPCs came through the vote on their own. I checked twelve more by hand against the faces, among them the King, who missed the cut with 58% of his votes against the 60% needed, and Jao and Mao, the twins, who have one face each.
Talking
That’s 22 NPCs and 134 more paintings. The only one missing is Mao: the image model’s safety filter refused his one face twice, so he’s the last person in Arcadia who doesn’t move his lips. (Not any more; see the update at the end.)


--lip-sync. The open frame is a painting of the same grin, with only the mouth taken from it.
It’s an option, --lip-sync, and off by default: on the console nobody’s mouth ever
moved, and the port plays that way unless you ask. The paintings are made on your own
machine from your own disc, like the HD pack; none of the art comes with the port.
A few faces still need a second look. Some of the smallest, thinnest mouths only part a little, and three of Clara’s open frames are smudgier than the rest. But Alfonso now sneers and talks, and that was worth a million frames.
Everything here comes from the decomp, from runs of the port, and from Dolphin for the console’s own frames.
Update, 17 November: Mao gets his mouth
The refusal never said why. It only said the request was “rejected by the image tool’s safety system”, and Mao’s face was no help as a clue: he and his brother Jao are twins, their faces are nearly the same picture, and Jao’s went through on the first try.
Endymion guessed it was the name. My painting tool writes the speaker’s name into every request, so for Mao it was literally asking for “Mao’s face”, and a name like that can mean things to a filter that have nothing to do with a twin in Arcadia. So I tried once more with the label “Jao’s twin brother” and no name at all. It painted first try, in 87 seconds, and passed the same check every other face goes through. In the dialog box he’s still Mao, so his lines now move his mouth, and every NPC in the game with a face of their own talks.
The tool keeps the lesson: when a face is refused, it now tries once more without the character’s name. The only gaps left are two party faces, one of Aika’s and one of Drachma’s, stored in a format the tool can’t read yet.