Skip to main content
A voice needs a mouth. This page is what to model, how to name it so that Lokutor Lip Sync finds it, and a pipeline where a character is code: one command builds it, checks it, and another draws a sheet with every shape. The examples are Blender and Godot; the naming is the same for Unity. If you already have a rig (Ready Player Me, VRoid, VRChat, or a face with the 52 ARKit shapes), you may have nothing to model: see which are recognised.

The 15 visemes

One blend shape each, named viseme_ and the name below, on every mesh that moves with the mouth (face, teeth, tongue). Upper and lower case do not matter.
  • Model each at full strength. Lip sync mixes neighbours, and short sounds never reach their full weight.
  • Push them. On a cartoon, aa should look too big in a still and right in motion. PP, FF, O and U are the ones people read: make them unmistakable.
  • Let the jaw in. Move the chin and cheeks with the open shapes, not only the lips.
  • At least 8 of them are needed to be recognised as visemes. With fewer, or other names, write a mapping (Godot, Unity).
The visemes page has the sounds of each in full.

Expressions

Anything else on the mesh is yours. A set that covers most characters: Keep mouth, eyes and brows in separate shapes, so that a mood can keep its brows while the mouth speaks (layers).

A face in numbers

Sculpting forty shapes by hand, for every character, and again when the head changes, is most of the work of a talking cast. The alternative for a cartoon: draw the face as a few flat layers (mouth, teeth, tongue, lips, eyes, lids, brows), each a function of a few numbers. A viseme is then a line of numbers, its blend shape is exact, every character of the cast has the same forty shapes, and a layer cannot poke through another because the order is built in. This is the idea at its smallest: a mouth with the 15 visemes, checked and exported. A real face adds layers to it. (Blender 5 or newer.)
  • The same points in the same order for every shape: a blend shape is a displacement, so build them all with the same function.
  • The build fails when a shape has broken points, moves too far, moves nothing, or crosses the lips. --python-exit-code 1 turns a failed check into a failed command.
  • Export as GLB with morph targets (export_morph) and skins. Morph normals are not needed for flat shading, and make the file bigger.
  • Name materials by what they are (face_mouth, face_white, skin, gold): the game decides how each looks, so shading stays out of Blender.
  • Save the .blend in a folder of its own with an empty .gdignore file, or Godot tries to import it.

Body and clips

The same approach works for animation. Write poses as keys with an easing for each (in, out, overshoot, snap, hold) and let the code add what every clip needs:
  • Overlap: the head a few hundredths of a second after the chest, the hands after the arms.
  • Arcs: hands travel around the shoulder, with two-bone IK, never in straight lines.
  • Breathing in a whole number of cycles, so loops have no seam.
  • 30 frames per second, and no baked secondary motion: springs in the game do belly, hat and cloth, so they also survive blending.
Clips never move the face: faces belong to moods and lip sync. Write a small report next to the GLB (vertices, shapes, clips and whether each one loops). The game reads the loops from it, and a diff of it shows what a change did.

Into the engine

In Godot, select the GLB, Import tab: Ensure Tangents off (flat materials have no UVs to make them from), Generate LODs and Create Shadow Meshes off for a face that is always close when it speaks, animation FPS 30. Give the mesh a larger extra_cull_margin when blend shapes or springs take it far from its box. In Unity, FBX imports with Import BlendShapes on. GLB needs an importer package.

Cel shading

Flat colours hide that there are no textures, and make mouth shapes readable from far away. One shader, one look per material name. The inside of the mouth, the teeth and the eyes are better not lit at all.

Contact sheets

Nobody finds a broken viseme_CH by playing. Draw every shape, with the game’s own shading, after every build, and look at the sheet:
sheet.gd
It also prints what lip sync makes of the face: VISEMES is what you want. It draws, so it needs a window: the second command does not work with --headless. What to look for:
  • PP closed, with no gap and no crossing.
  • aa, O and U different at a glance, in the size they will have on screen.
  • Teeth inside the lips in E, I and SS; no tongue through them.
  • Nothing moving that should not: ears, hat, collar.
  • The same sheet for expressions, then one of your usual moods at 30% of their mouth with each viseme on top: that is what players will see.
Then the last check, with sound: say a line full of p, b and m (“Poppy baked my mum a big brown pie”) and watch the lips touch on each.