How it works¶
GoDNA has two halves: a plugin for the Unreal Editor that exports a character, and a Godot addon that imports it and runs it. The importer is editor-only native code. Everything a character needs in a game is GDScript and shaders, so exported games need no native libraries on any platform.
Export (Unreal)¶
The exporter exports each part of the MetaHuman as FBX with the same settings: body, head (face), each clothing piece
and each groom's hair cards. It exports the textures the materials use as PNG, records the material parameters, and
writes the .gdna manifest. See Unreal exporter.
ARKit face shapes¶
A MetaHuman face is driven by Unreal's RigLogic, which turns expressions into the motion of about 800 face joints. Godot has no RigLogic, so GoDNA bakes the 52 ARKit expressions into blend shapes:
- The exporter plays Unreal's ARKit mapping poses on the face, lets RigLogic evaluate them, and saves the resulting joint motion.
- The importer poses the face with each expression and stores the difference from the neutral face as a blend shape. The neutral face is also the character's rest face, so it matches what RigLogic shows.
- The eyes are left out of the shapes: they turn with real eye bones at runtime.
Import (Godot)¶
Godot imports a .gdna like any model. The importer:
- Merges the skeletons of the body, face and clothes into one.
- Folds away bones. 103 bones are kept (see Bones). The face joints and helper bones (over 1,000 on a MetaHuman) hand their skin weights to their nearest kept parent; the face moves through the blend shapes instead.
- Renames the kept bones to Godot's humanoid names (
Hips,LeftUpperArm, ...), so animations retarget onto it. - Binds the hair cards to the face. Unreal exports grooms as static cards. Near the skin, the cards follow the skin under them; further out, they follow their roots. Hair, eyebrows, beards and mustaches move with expressions this way.
- Builds materials from the Unreal material parameters, with GoDNA's skin, eye, teeth, hair and cloth shaders, then applies the changes baked in the material studios.
- Returns the scene with a GoDNAHuman root. Godot's own import pipeline then runs as for any model.
Retargeting¶
GoDNA uses Godot's own retargeting. It fills in the bone map and rest-pose options for characters and animation files, so Mixamo, UE5 Mannequin and MetaHuman clips play on the character without manual setup. See Retargeting animations.
Runtime¶
GoDNAHuman holds the face weights and applies them to every face mesh, and runs the twist, head and eye drivers. FaceCaptureReceiver feeds it from face-tracking apps.