The 15 visemes
One blend shape each, namedviseme_ 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,
aashould look too big in a still and right in motion.PP,FF,OandUare 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).
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 1turns 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
.blendin a folder of its own with an empty.gdignorefile, 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.
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 largerextra_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 brokenviseme_CH by playing. Draw every shape, with the game’s own shading, after every build, and look at the sheet:
sheet.gd
VISEMES is what you want. It draws, so it needs a window: the second command does not work with --headless.
What to look for:
PPclosed, with no gap and no crossing.aa,OandUdifferent at a glance, in the size they will have on screen.- Teeth inside the lips in
E,IandSS; 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.