Blender → UE Skeletal Mesh Rig Transfer¶
Summary: How to take a mesh authored/rigged for one skeleton (e.g. a FAB/marketplace armor set on standard Mannequin) and re-rig it onto a different target skeleton (e.g.
SK_Als) so it deforms correctly via leader pose. Covers the Blender reshape + weight-transfer pass, FBX export settings, and the MCP/Python import flow into Unreal — including the non-obvious traps that will silently break the result.
Table of Contents¶
- When To Use This
- Pipeline Overview
- Stage 1 — Blender: Reshape + Weight Transfer
- Stage 2 — FBX Export
- Stage 3 — Unreal Import
- Critical Gotchas
- Scripts
- Re-rigging a UE5-Manny-Layout Character onto SK_Als
- An Artist Rig Already on SK_Als
- Seating the Skeleton's Joints in a Body
- The Shoulder's Weights
- The Fingers' Joints
- The Fingers' Weights
- An Arm That Is Not the Other's Mirror
- A Body's Hands on Its Weapons
- More Geometry from the Sculpt
- Worked Example: Knight Armor → SK_Als
- Source References
- Related Systems
- Recent Changes
When To Use This¶
| Situation | Use this? |
|---|---|
| Mesh rigged to Skeleton A, must deform on Skeleton B (different bone count / rest pose / spine subdivision) | Yes |
| Mesh already on the target skeleton, just needs re-export | No — straight export/import |
| Driving equipment that stays on its own skeleton at runtime | No — use a UE IK Retargeter instead (per-frame cost, no re-rig) |
Equipment that leader-poses off the player body must share the player's exact Skeleton asset — bone names matching is not enough; a different rest pose / bone hierarchy distorts. That is why re-rigging (not retargeting) is the chosen path for fixed body armor. See EquipmentVisualConfig.DeformingMeshes (Source/ProjectEternal/Public/EquipmentManagement/Data/EquipmentVisualConfig.h).
Pipeline Overview¶
BLENDER UNREAL
┌──────────────────────────────┐ ┌───────────────────────────────┐
│ target body mesh + target rig│ │ delete old SK (if reskinning │
│ (weight source, e.g. SKM_Male3)│ │ an existing asset in place) │
└───────────────┬──────────────┘ └───────────────┬───────────────┘
│ align (pose rig to mesh) │ fresh import (NOT reimport)
▼ ▼ force target Skeleton via
┌──────────────────────────────┐ export ┌───────────────────────────────┐
│ 1. reshape armor → rig rest │ ───FBX──▶│ FbxImportUI.skeleton = target │
│ 2. transfer body weights │ │ run on Slate post-tick (async)│
│ 3. bind to target rig │ │ reassign materials by slot │
└──────────────────────────────┘ └───────────────────────────────┘
Key principle: the armor's base mesh must sit in the target skeleton's reference pose, skinned with the body's weights. Everything below serves that.
Stage 1 — Blender: Reshape + Weight Transfer¶
The marketplace mesh is modeled in its source skeleton's rest pose. The target skeleton's rest pose differs, so the mesh must be reshaped before weights are transferred.
| Step | Action | Why |
|---|---|---|
| Prep | Apply Mirror and any generative modifiers; delete dead ones |
Weight transfer + export need final geometry |
| Align | Pose the target rig (Pose Mode, never Edit Mode) so the body overlaps the armor | Surface mapping samples current positions |
| Reshape | Surface Deform on each armor piece → target body; bind while aligned; reset rig to rest → armor follows body into the rest pose; Apply the modifier |
Bakes the armor into the target rest pose, preserving bulk |
| Weights | Data Transfer body → armor: POLYINTERP_NEAREST (Nearest Face Interpolated), by-name, use_object_transform=True |
Maps each armor vertex to nearest body surface; handles unit-scale differences |
| Bind | Point each armor Armature modifier at the target rig |
Deform via target bones |
| Verify | Pose the rig, render (OpenGL render works; screenshot tools hang in this project) | Confirm deformation before export |
Notes: - Pose Mode, not Edit Mode — Edit Mode changes the rest/bind and breaks existing weights. - Weights are per-vertex (pose-independent); only the mapping uses current surface positions, so alignment matters only at transfer time. - A bulky armor over a thin body is fine — Nearest-Face maps regardless of thickness.
Stage 2 — FBX Export¶
Recommended export_scene.fbx settings (UE-friendly):
| Setting | Value |
|---|---|
use_selection |
True (select armature + the meshes for that piece) |
object_types |
{'ARMATURE','MESH'} |
add_leaf_bones |
False |
bake_anim |
False |
primary_bone_axis / secondary_bone_axis |
Y / X |
apply_scale_options |
FBX_SCALE_NONE |
axis_forward / axis_up |
-Z / Y |
The armature OBJECT name becomes the skeleton's root bone in the FBX. Name it exactly what the target skeleton's root bone is called (UE Mannequin/ALS = root). See Critical Gotchas.
Group meshes per target SK asset (one FBX each). A combined-mesh FBX imports as one SK with multiple material slots.
Stage 3 — Unreal Import¶
Import is driven by Python (FbxImportUI), not the MCP native import or the MCP py console directly — both have blocking issues (see gotchas). The flow:
| Step | Detail |
|---|---|
| Capture | Before deleting an existing SK, record its material slot → MaterialInstance mapping |
| Delete | Delete the old SK asset (fresh import is required to set a new skeleton) |
| Import | FbxImportUI.skeleton = <target>, import_materials=False, scheduled on a Slate post-tick callback |
| Materials | Reassign MaterialInterface per slot from the captured mapping |
| Save | EditorAssetLibrary.save_loaded_asset |
References to the SK that are TSoftObjectPtr resolve by path, so delete + fresh-import to the same path relinks automatically — no reference repair needed. Hard (TObjectPtr) refs would need consolidation instead.
Critical Gotchas¶
| Symptom | Cause | Fix |
|---|---|---|
cannot merge bone tree with the existing skeleton / incompatible Skeleton |
FBX skeleton root doesn't match target. The armature object name becomes the root bone — root.036 exports a stray root_036 above the real bones |
Rename the armature object to the target root bone name (root); ensure a single top bone with pelvis/ik_foot_root/ik_hand_root as its children (not 3 separate roots) |
Imported mesh keeps the old skeleton despite setting FbxImportUI.skeleton |
Reimport-in-place ignores the skeleton param — only fresh imports honor it | Delete the asset first, then fresh-import |
Property 'Skeleton' ... is read-only |
SkeletalMesh.skeleton cannot be reassigned from Python |
Must (re)import to change skeleton |
| New skeleton asset created instead of binding to target | MCP native manage_asset import ignores the skeleton param |
Use Python FbxImportUI with skeleton set |
Editor crash: Assertion failed: ++Queue(QueueIndex).RecursionGuard == 1 |
Heavy FBX import run synchronously inside the MCP py console handler → taskgraph re-entrancy |
Defer the import to unreal.register_slate_post_tick_callback (runs on a clean game-thread tick) — see [[reference_ue_async_import_slate_tick]] |
| Armor 100× too small/large vs rig in Blender | Mesh authored in meters, rig at 0.01 (cm) scale; reassigning obj.parent via the data API drops the compensating matrix_parent_inverse |
Set obj.matrix_parent_inverse = rig.matrix_world.inverted() after reparenting |
VB ... virtual bones in the target skeleton |
Engine-side bones; not exported from Blender, not needed in the FBX | Ignore |
MCP py returns no stdout |
Console output isn't captured | unreal.log_warning('TAG ...') and read Saved/Logs/ProjectEternal.log — always read the log after a Python run |
Scripts¶
| Script | Runs in | Purpose |
|---|---|---|
Tools/Blender/skeletal_rig_transfer.py |
Blender | Reshape (Surface Deform), weight transfer, bind, per-group FBX export. Edit the CONFIG block. |
Tools/Python/ue_skeletal_import.py |
Unreal (editor Python / MCP py) |
Async FbxImportUI import forcing a target skeleton + material reassignment. Edit the CONFIG/JOBS block. |
Both are parameterized at the top (collection names, armature name, target skeleton path, FBX↔asset job list). They are skeleton-agnostic — set the target skeleton path for non-ALS rigs.
Re-rigging a UE5-Manny-Layout Character onto SK_Als¶
SK_Als is the 68-bone UE4-Mannequin layout: spine_01–03, neck_01, no metacarpals, one twist bone per
segment, neck and clavicles parented to spine_03. A character skinned on a UE5 Manny skeleton (spine_01–05,
neck_01–02, *_metacarpal_*, *_twist_02_*, sometimes interaction/center_of_mass) cannot be imported
onto it: every SK_Als bone name exists, but the parents differ, so the skeleton merge fails. Check first with
Tools/Blender/CharacterRig/inspect_fbx.py (prints bones, roots, sections, unweighted verts).
The fix keeps the artist's hand-painted weights and folds them; nothing is re-painted.
| Manny bone | Goes to (SK_Als) |
|---|---|
spine_01 |
pelvis |
spine_02 + spine_03 |
spine_01 (bone head at Manny spine_02) |
spine_04 |
spine_02 |
spine_05 |
spine_03 (neck + clavicles re-parent here) |
neck_02 |
neck_01 |
*_metacarpal_* |
hand_* |
*_twist_02_* |
50/50 into *_twist_01_* and the segment bone |
interaction, center_of_mass, *_end |
dropped (no weights) |
Bone frames matter more than bone names. UE applies an animation's local rotations as absolute values in each
bone's frame. So each new bone takes SK_Als's own rest frame (read from any exported SK_Als animation FBX),
rotated by the minimum angle that points it down this mesh's limb, so the limbs reach where the ALS mannequin's
reach. That rotation does not go away, though: it leaves the mesh's bind pose off SK_Als's rest (Main03: pinky
31°, ring 22°, upper arm 11°, clavicle 7°), and every animation bends each joint by that much on top of its motion,
through weights painted for the other pose. The re-rig is not finished until rebind_to_skeleton_rest.py has
run: it bakes that pose into the mesh and makes it the rest, so the bind pose matches SK_Als bone for bone.
Check the bind pose in UE, not only in Blender: per bone, compare the local rotation of the mesh's reference
pose with SKM_Als's (unreal.SkeletonModifier, set_skeletal_mesh then get_bone_transform(name, False)). It
should be under 0.1° everywhere.
Folded weights crease in hard poses. Folding leaves hard blend borders. On a low-poly body (Main03 has 3.7k
vertices) they fold the trapezius and crease the shoulder into the chest when a two-hander pulls the arm across.
smooth_joint_weights.py smooths the weights around the shoulders and knuckles, then re-skins the garments from the
body. Smoothing the bake (Corrective Smooth) does not help; smoothing the weights does.
Telling shape from shading in PIE. Before blaming the weights for a crease, shoot the same frame with
ShowFlag.DynamicShadows 0 and with viewmode lightingonly (no textures, no normal maps). The jagged sawtooth edges
on Main03's back and hands were partly shadow-map aliasing and partly real folds. Playing the same animation in
Blender with pose_test_anims.py shows the shape on its own.
| Step | Script (Tools/Blender/CharacterRig/) |
Notes |
|---|---|---|
| Reference skeleton + test anims | Tools/Python/ue_export_rig_test_anims.py (headless -run=pythonscript) |
Anim FBXs carry the SK_Als skeleton. Mesh FBX export crashes under -nullrhi (MeshMergeUtilities), so export anims only. |
| Fold + rebuild frames | rerig_manny_to_als.py <char.fbx> <als_anim.fbx> <out.blend> <out.fbx> <report.json> |
Fills unweighted verts from the nearest weighted vertex, normalizes, max 8 influences. |
| Animation check | pose_test_anims.py <rig.blend> <out_dir> <frames> <anim.fbx>... |
Plays our anims with UE semantics; contact sheets per anim, sections coloured. POSE_TEST_ZOOM=bone,bone renders close-ups. |
| Regression vs source | compare_rigs_stress.py <orig.fbx> <rerig.blend> <out.png> |
16 world-space stress poses, re-rig left / original right. |
| Section seams | section_seam_check.py <rig.blend> <report.json> [fixed.blend] |
Coincident verts across sections must share weights or the cut opens when the joint bends; the fix averages them. |
| Garments | fit_garment.py |
Push-out samples each face, not only verts: low-poly garments otherwise cut through curved limbs between vertices. Weights come from the body via Data Transfer (nearest face interpolated). |
| Garment made for another body | fit_underwear_by_skeleton.py |
When the garment ships on its own skeleton with the same bone names (e.g. a UE5-Mannequin garment), its skeleton is posed onto the target's joints and the pose baked in, then a smoothed tighten pass pulls floating parts onto the body (smoothing keeps a band's thickness and stops a shaped part crumpling), then push-out and weight transfer. Export the garment from UE with the full editor offscreen (-ExecutePythonScript, script ends with quit_editor()); a commandlet crashes. |
| Slot names | finalize_section_slots.py |
Body slots must carry EBodyPart tokens (Torso, Hands, Legs, Head, Eyes) or equipment can never hide them. |
| Joint weights | smooth_joint_weights.py <in.blend> <out.blend> <report.json> <repeat> <bone,...> [garment.blend:Object ...] |
Smooths every group over the vertices weighted to the listed bones (Main03: clavicles, upper arms and their twist bones, *_01 fingers, thumb_01/02; 10 passes). Seam pairs are averaged again afterwards. Garments are re-skinned from the body. A garment from another file is brought in when its armature has the same rest. |
| Rebind to SK_Als rest | rebind_to_skeleton_rest.py <in.blend> <als_anim.fbx> <out.blend> <report.json> Object=out.fbx ... |
Last Blender step, required. Poses the armature as UE shows it in the reference pose, bakes every skinned mesh (Corrective Smooth, REBIND_SMOOTH / REBIND_FACTOR), applies the pose as rest, asserts every bone is within 0.1° of SK_Als, and exports. Run body and garments in one file so they stay fitted. |
| Reimport in UE | AssetImportTask, replace_existing, same name and path, skeleton = SK_Als |
Replaces the mesh in place: Blueprints and levels keep their references, and material slots and the physics asset survive (check them after the import). Do not delete and re-create an asset that is in use. Main03's source and exports are in ArtSource/Meshes/Main03/. |
| Item icon | render_garment_icon.py |
Cycles render of the textured garment on a transparent background at the item's icon size. Placeholder until a painted icon goes through the item-art pipeline. |
Proportions are safe on SK_Als. Its 60 body bones use OrientAndScale translation retargeting (read from a T3D
export of the skeleton; Python cannot read it), so every mesh keeps its own bone lengths: a body with wider hips or
longer forearms than the ALS mannequin animates without stretching. Only root and the ik_hand_* bones take
animation translation raw (Animation), and ik_foot_* use AnimationRelative.
Proportions still show where a stance pushes them. The shared animations were authored on the ALS dummy, so a
body whose proportions differ wears every pose a little differently. Main03's shoulder joints sit 3 cm lower against
his head than the dummy's (head 19.5 cm above the shoulder joints in the bind pose against 16.0). It showed first in
the greatsword stance, which drops both bodies' shoulders another ~5.5 cm. Measure every stance before deciding where
to correct: read the joints of both meshes in the same pose, idle and blocking, swapping the player's mesh to
SKM_Als and back in PIE, and average a few samples.
Correct one body without touching the shared poses with a post-process anim blueprint on the mesh
(PostProcessAnimBlueprint). Its graph runs after all other animation on that mesh only, and garments follow it
through the leader pose. UBodyCorrectionAnimInstance is the base class. CorrectionAlpha takes the weight
OverlayWeights gives the owner's ALS overlay mode, or DefaultWeight for a mode not listed, eased at
BlendSpeed. The blueprint adds ClavicleLiftL/R to each clavicle in bone space at that weight. Main03's is
ABP_Main03_BodyCorrection: about 7.3° on each clavicle, which lifts the shoulder joints ~2.1–2.9 cm depending on
the stance.
| Main03 head over shoulders, cm (Main03 − dummy) | Off | Full lift | Weight |
|---|---|---|---|
| Unarmed / Sword / DualWield / GreatSword | +2.3 / +2.8 / +2.5 / +2.5 | +0.2 / +0.5 / +0.3 / +0.4 | 1 (default) |
| Blocking (unarmed, greatsword) / Blocking.Sword | +2.5 / +3.1 | −0.3 / +0.4 | 1 (default) |
| Hammer | +1.8 | −0.3 | 1 (default) |
| SwordAndShield / Blocking.Shield / Blocking.Hammer | −0.2 / −0.4 / +0.2 | −2.4 / −3.4 / −2.6 | 0 (these stances already raise his shoulders) |
His head also sits ~4–5 cm further forward of his shoulders than the dummy's in every stance; this correction does
not touch that.
To solve a lift, read the clavicle's component transform C and the upper arm offset u in its frame. The rotation
that moves the shoulder by d is the axis-angle (u × d_local) / |u|², because a bone-space additive rotation turns
C into C·R. Then check the shift averaged over a few on/off samples, since the idle's own sway is ~1–2 cm. The graph
(Input Pose → Local To Component → Modify Bone ×2 → Component To Local → Output) was built with the authoring
toolset's AddGraphNode, PasteGraphNodes and LinkGraphPins. Paste cannot create an Input Pose node.
Blender trap: renaming a deforming bone also renames its vertex group. Renaming the group yourself as well silently drops weights (a temp-named group ends up orphaned and gets deleted).
An Artist Rig Already on SK_Als¶
Main03's second delivery ("Magnus", 2026-11-27) came skinned straight onto the ALS dummy's own skeleton: every bone at SK_Als's rest rotation and position, so no fold and no rebind. It still needs its own pass, and the checks come before the swap.
| Step | Tool | What it found on Magnus |
|---|---|---|
| Check the delivery | check_bind_vs_skeleton.py <als_anim.fbx> <out.json> <rig.fbx>... |
Bind 0.0°, joints 0.0 cm from the dummy, head 16.0 cm over the shoulders like the dummy (Main03's first rig: 19.5). 25 leaf _end bones, which would be merged into SK_Als on import. The mesh object sat 6 cm behind its armature in the file. |
| Strip leaf bones, fold the offset | the export (add_leaf_bones=False) and a fold of each mesh object's offset into its vertices |
The offset does nothing in UE, but a garment fitted in another file does not line up with it. |
| Seams, slot names, joint weights | section_seam_check.py, finalize_section_slots.py, smooth_joint_weights.py (same bones and 10 passes as Main03), then again on calf_l,calf_r,thigh_twist_01_l,thigh_twist_01_r with 15 passes |
One neck seam pair at 0.13. The shoulder tore open at the deltoid in the hammer swing and creased on the back. The back of the knee folded into itself at deep bends (dark slits in the roll and the lunge; the dummy's knee joint sits 2 cm above the old rig's). Smoothing only the calf side left the fold; smoothing both sides of the knee removed it. |
| Garments | fit_garment.py (artist's clothes) or fit_underwear_by_skeleton.py with FIT_BY_SURFACE=1 (ours) |
Moving joints to the dummy's left the skin where it was: the body surface is within a few cm of Main03's while the pelvis and head joints sit ~3.5 cm further back and the shoulders 6 cm higher. A garment moved with the joints lands 5 cm off the skin, so refit by the surface. |
| Re-skin garments | smooth_joint_weights.py <in> <out> <rep> 0 pelvis |
fit_underwear_by_skeleton.py's own transfer leaves leg openings on the pelvis alone under Blender 5.2; 0 passes only re-skins the garments from the body. |
| Measure the fit | measure_garment_fit.py <rig.blend> <out.json> <frames> <anim.fbx>... |
Per garment section through our animations: share of vertices inside the body (> 0.3 cm, > 1 cm), the deepest, share floating > 3 cm. |
| Measure what a player sees | measure_skin_through_garment.py <rig.blend> <out.json> <frames> <anim.fbx>... (env SKIN_HIDDEN = hidden slots) |
Body skin coming out through the cloth: the clipping on screen. A low-poly garment lets skin through between its own vertices, which the garment-side measure above misses. Lists every vertex that ever showed. |
| Layer the outfit, split the body by coverage | layer_and_split_covered.py <in.blend> <out.blend> <rep.json> (env SPLIT_POKE_FILE = the report above, SPLIT_EDGE_MARGIN) |
The tank top's hem and the shorts' waistband sat in the same place and fought (pale flickering patches at the waist); the tank top now lifts over the waistband. Skin always under the clothes goes into its own sections (table in Documentation/04_Items/04_Equipment_System.md §Body Mesh Section Names), which the starter clothes hide. Covered skin still visible and showing through: 312 vertices at 1.9 % per frame before, 82 at 0.17 % after, 5 vertices in all, at the neckline edge. |
| Reimport in place + bind check in UE | Tools/Python/ue_import_character_magnus.py (stop PIE first: imports and saves fail during play) |
Every bone within 0.037° and 0.0 cm of SKM_Als; adds grip_r / grip_l to the body; keeps materials by slot name (a split slot takes its source section's material) and the physics asset; sets the starter clothes to hide Torso + Legs and their materials two-sided. |
| Look at it in the engine | python Tools/Harness/run.py body_look ... |
Four views standing and at montage times of a swing, bare or dressed. |
The artist's own refit of the starter clothes was not taken: as delivered they sat 4.8 cm forward of the body (a third
of the tank top inside it at rest), and with that offset taken out, their hand-painted weights still let the body
through 6–10 % of the garment through our animations, against 0.2 % for clothes skinned from the body. The tank top
also had no upperarm_l weight next to its upperarm_r. Our clothes, refit to the new body by the surface and
skinned from it, measured 0.16 % (tank top) and 0.23 % (pants) of vertices more than 1 cm inside through 17
animations; the underwear 0.06 %.
The per-body correction goes with the old joints. A rig on the dummy's skeleton wears the shared poses exactly as
the dummy does, so ABP_Main03_BodyCorrection was cleared from SK_Main03: its clavicle lift made up for the first
rig's low shoulders and would now raise his above the dummy's. The blueprint and UBodyCorrectionAnimInstance stay
for the next body that needs one.
Source and exports: ArtSource/Meshes/Main03/ (Main03_Magnus.blend, the three FBXs). The artist's raw files are on
the shared drive under Character Art/Player Character/Meshes/Player.
Seating the Skeleton's Joints in a Body¶
An artist can skin a body onto the dummy's skeleton with the joints left where the dummy's body is. Magnus came that way: shoulder pivots on top of his shoulder skin (his shoulders sit 6.3 cm lower than the dummy's), knee joints in front of his knees, ankle joints 5 cm up his shins, and the dummy's toe joint 1.4 cm beyond his toe tips. In the greatsword idle his shoulders swelled, the neck showed a hard collar where its band-painted weights turned as blocks, and a lifted heel tipped his whole foot down, because nothing of his foot sat in front of the toe joint.
A rig whose joints already sit in the body, with the skin painted for them, goes through with
"joints": "as_rigged": no seating runs and the joint gate only reports. Main03's first rig is one. Seated, its
wrists moved 1.7 and 2.4 cm, the right elbow 1.7 and the knees 2.4 to 3.2 off the pivots its weights were painted
for; in the greatsword stance both wrists then showed a notch between forearm and hand that the rig's own joints do
not have, and knees and feet looked the same either way (Saved/MagnusInvestigation/joints/cmp_*.png). A joint
sitting off the middle of its limb is not a fault by itself: judge it bent, beside the rig as delivered.
The pipeline (run_body_pipeline.py, one config per body; agent workflow: the body-rig skill) moves the joints into
the body and never moves the mesh:
| Region | How |
|---|---|
| Collarbones, shoulders | seat_arm_joints.py moves both to the anatomy rig's when the skeleton's shoulder fails the ray test and that rig's passes. Only right when the weights were painted for that place and the arm lies along its bone; see below. "shoulders": "as_rigged" in the config leaves them. Main03's first rig has them in place already. |
| Elbows, wrists | seat_arm_joints.py: the middle of the arm's cross-section, cut square to the forearm. Twist bones keep their place along their segment. |
| Legs, feet | seat_leg_joints.py: knee to the middle of the knee, ankle to the narrowest shin above the foot, toe joint to the toe crease, IK foot bones with the ankles. |
| Neck | regrade_neck_weights.py (weights only): spine_03 → neck_01 → head blended by height relative to the neck and head joints; the jaw keeps the head. |
| Spine, neck, head joints | untouched: the forward head is part of his build |
Rotations stay SK_Als's everywhere, and SK_Als takes arm and leg translations per mesh (OrientAndScale), so clips use his own shoulder height and limb lengths. His hands hang about 6 cm lower than the dummy's; the off-hand grip node brings the off hand to the weapon.
A limb has to lie along its bone, and a shoulder's joint and weights belong together. Magnus was delivered twice. The first rig has its joints in his body (shoulder in the middle of the shoulder) and weights painted for them, and its bind was rebaked to SK_Als's rest, so every limb lies along its bone. The second ("Magnus") keeps the sculpt's pose and drops the dummy's joints into it: the shoulder joint ends up on top of his sloping shoulder, 0.7 cm above the skin, while the elbow is the dummy's. The arm mesh then runs 10 degrees off the upper-arm bone (forearm 5). With the arms down that tilt is a banana: the shoulder cap stays out, the arm tucks in under it, and both edges of the upper arm curve the same way. The owner marked exactly that line.
Three repairs of the second delivery were tried and none removed it:
| Tried | In the stances |
|---|---|
| Joint moved into the shoulder, weights left as painted | Cap swings out into a ball 3.7 cm wider a side; arm still tilted |
| Joint left on top of the shoulder | Lean shoulder line, banana upper arm |
| Joint moved, shoulder weights taken from the first rig | Ball smaller, arm still tilted: the mesh is still off the bone |
The first rig run through the same pipeline has straight upper arms in every stance. It is the body the pipeline
builds from now (body_fbx: Delivered/Main03_FirstRig.fbx). Seating finds its shoulders already in place and moves
elbows, wrists, knees and ankles by 1.5 to 3 cm.
Before choosing between two rigs of one model, or accepting a delivery that sits on another body's joints, put each
in the game's stances (pose_from_game.py, POSE_OWN_JOINTS=1) and look at the upper arm from behind. Measure the
angle between each limb and its bone at rest; a few degrees is a seat, ten is a rebake of the bind
(rebind_to_skeleton_rest.py), which turns limbs about their joints and changes no proportion.
check_pose_kept.py gates what a run does to the delivered rig in the stances: both rigs, each on its own joints,
are put in stance poses read from the game and the delivered shoulder vertices are measured to the result's surface,
at the 90th percentile (weight smoothing that opens a crease moves a line of vertices far and is wanted; a moved
pivot shifts a whole region). On the second delivery moved shoulders read 1.8 to 2.7 cm; the limit is 1.5
(gate_pose_cm). The poses are small files next to the body (ArtSource/Meshes/Main03/Poses, config poses), read
with the harness scenario stance_pose. It cannot say a delivery is right, only that a run kept it.
The mesh is the design; do not move it to fit the skeleton. Moving his shoulders and arms up onto the dummy's
joints was built first and approved from posed PIE pictures. It was reversed the same
day: in the rest pose it had squared his shoulders and shortened his neck, the build he was drawn with. Moving his
legs onto the dummy's was also tried: it turned the shins 15° and kinked them in a crouch. check_shape_kept.py now
gates every run: no vertex may sit more than 0.5 cm off the delivered surface (Magnus: 0.0). Show the owner the
delivered outline over the result in the rest pose with any body change; a posed picture hides a change of build.
A stance that reads wrong on his build is fixed in the stance clip. The clips were posed on the dummy, whose
shoulders are square, high and padded. The two-handed sword stance drops both shoulders 6 to 7 cm against the chest
and rolls the lead one 8 cm forward: a guard on the dummy, a slump on sloping shoulders.
Tools/MotionForge/sets/stance_shoulders.py builds a copy of a stance clip in which each shoulder keeps a share of
that move per direction and the upper arms keep the clip's direction; sets/ue/stance_overlay.py points the overlay
at the copy. AB_Als_Greatsword shows AS_2HSword_Stance (shares: up 0.3, lead shoulder forward 0.6), built from
AS_2HSword_Heavy_Idle, which stays as the source.
Gates (check_body_rig.py, check_shape_kept.py, check_pose_kept.py, measure_skin_through_garment.py; limits
in the skill). The second delivery as it came failed the joint, neck and fold gates (folds 54 in the hardest frame,
neck step 0.71, shoulders and knees outside the skin). The first rig after the pipeline: every joint within 3 cm of
its limb's middle, neck step 0.14, folds 43 of 81 on the dense body (the repaired second delivery: 79), rest shape
0.66 cm, skin through clothes 0.05 %.
The Shoulder's Weights¶
A shoulder is judged with the arm moving. At rest any weights look the same.
What was wrong on Main03. Within 16 cm of the shoulder joint the first rig's skin was carried 72 parts by the upper arm, 24 by the chest and 9 by the collarbone. Two faults follow from that split, and no pose edit cures them:
- The whole cap belongs to the arm, so when the arm comes down from the A-pose the cap swings out sideways around the joint as one block. The top of the shoulder goes flat, with a corner at its end, and the arm hangs thin under it.
- The collarbone carries next to nothing, so a clip that turns it (a guard, a shrug, the drop of the shoulder when the arm hangs) moves the arm's root while the skin over it stays on the chest.
What regrade_shoulder_weights.py does (config key regrade_shoulders, run after the body has its final
vertices). On the arm's upper and outer side the weight passes from trunk to arm over a band that starts 3 cm before
the joint and ends 9 cm down the deltoid. The trunk's part near the joint goes to the collarbone (up to 0.7 of it,
fading out between 8 and 18 cm from the joint and along the collarbone toward the breastbone). Arm bones keep their
proportions among themselves. The armpit side keeps the artist's weights. An upper arm with no weight on its twist
bone takes the other arm's split, mirrored (Main03's left arm had none; the right had up to 0.37). The mesh is not
moved.
Three things that went wrong on the way, each caught by the sweep before anything was imported:
| Tried | What it did |
|---|---|
| Arm weight as a function of position along the arm | The ribs under an A-pose arm lie as far along the arm's direction as the arm does: the back tore in every pose. Arm skin is told from trunk skin by the artist's weights, never by position |
| A gradual band in the armpit as well | The arm's root was pinched thin from below with the arm down: its cross-section 4 cm below the joint fell to 62 percent (88 with the artist's weights there). The armpit is left alone |
| Collarbone share by position along the collarbone only | The collarbone turns about the breastbone, at the front of the chest, so skin at the back of the neck base swung sideways on a turn forward and folded beside the spine. The share fades with distance from the shoulder joint |
The sweep (sweep_shoulder.py <rig.blend> <out_dir> <label>) holds both arms at the angles the game uses most
(hanging at 20, 10 and 0 degrees out, a hang with the collarbone dropped, forward, a guard, a reach with the
collarbone turned forward) and at the far ends (out to the side, overhead, back), and writes clay pictures and, for
the skin within 20 cm of the left shoulder joint, how far edges stretch and squeeze, how much the angle between
neighbouring faces changes, and the arm's cross-section 4 cm below the joint. The numbers rank two sets of weights on
one body and catch a torn or folded patch. They do not say a shoulder looks right: that is read from the pictures,
beside the rest pose, and then from the game's stances (pose_from_game.py, harness stance_closeup).
The trade. A larger collarbone share gives a rounder, sloped shoulder with the arm down and a ball on top of the shoulder with the arm overhead, where the cap no longer follows the arm. A shorter band does not help: the handover gets sharper and folds more in every raised pose (worst fold overhead 143 and 154 degrees with 4 and 2.5 cm bands). Main03's settings keep the slope with the arm in or down and stay close to the artist's weights overhead: with a share of 0.9 the worst fold overhead was 113 degrees and the shoulder lumped; with 0.7 and a 9 cm band it is 83; the artist's weights give 63. Measured on Main03 (before, after): arm cross-section arm-down 87.5 to 93.8 percent, in the guard 80.6 to 89.4; worst fold arm-down 66.9 and 66.9 degrees.
What it changed in the game. Almost nothing in the stances: the shoulder outline in unarmed, sword, and sword
and shield moves by at most 14 pixels of 1280. The stances hold the arms near the bind angle and move the shoulder
joints 0 to 5 cm against the ribs, so there is little there for shoulder weights to change. The regrade matters
where the arm comes further in or down and where the collarbone turns (walks, swings, a later arm fit). A stance
that looks broken across the upper back should be measured first: sword and shield leans the chest 31 degrees and
turns the neck bone 35 degrees against it at its base, and that, not the shoulder, is its fault. The pipeline gate shoulder_sweep
fails when an arm-down or guard pose gains more than 15 degrees of worst fold or loses more than 10 points of
cross-section.
The Fingers' Joints¶
A finger bends about its joint, and the knuckle is the skin rolling over the end of the bone before it. That needs the joint inside the finger, under the back skin, and at the knuckle. Nothing in a smooth low-poly finger shows where its joints are, so a rig can have them anywhere and look right at rest. Main03's first rig, measured:
| Fault | Measured | What it does in a fist |
|---|---|---|
| Joint on the back skin | ring finger's base joint 0.03 cm under the skin, its end joint outside the finger; middle finger's joints 0.2 to 0.5 cm deep in fingers 1.5 to 1.8 cm thick | The finger hinges on its own skin: no knuckle stands up, the finger's root drops under the back of the hand as a step, the pad swings through twice its arc into the palm |
| Joint off-centre | 0.2 to 0.45 cm to one flank | The finger leans sideways as it closes |
| Base knuckles at the webs | all four 0.4 to 0.8 cm before the webs between the fingers; a hand's knuckles lie well before them | The fist folds along the webs: the back of the hand ends in a lip, the webs stand out as lobes, no row of knuckles |
| Joint beside its knuckle | middle and ring fingers' middle joints 1.1 to 1.3 cm nearer the tip than the wrinkles painted over them | The finger bends beside its own knuckle wrinkles |
No weights cure any of these. Measure a delivery before touching its weights: seat_finger_joints.py reports per
joint how deep it lies and how far it would move (moved_cm); a few millimetres is a good rig.
seat_finger_joints.py (pipeline key "finger_joints", stage 07_fingerjoints, before the finger weights) moves
the joints. The mesh, the weights and every bone rotation stay, so the bind is unchanged.
| Direction | Where the joint goes | Read from |
|---|---|---|
| Depth | FINGER_DEPTH (0.42) of the finger's thickness under its back skin; a base knuckle FINGER_DEPTH_BASE (0.38) of the hand's |
A ray through the finger from above its back |
| Sideways | The middle between the flanks. A base knuckle's flanks are the next fingers, so its first bone's line is drawn through the middle of the free finger and run back to the knuckle | Rays to both flanks |
| Along the finger | The knuckle, when the config names a landmarks file; otherwise it stays | The artist's normal map, by a person |
Reading the knuckles. finger_relief.py <rig.blend> <normal_map.png> <out.png> [side] lays the back of each
finger out flat as the normal map paints it, fingertip at the top, with a scale in half centimetres and the rig's
joints as coloured bars. The wrinkle patches over the middle joints, the fold behind each nail and the webs are read
off it and written to a landmarks file as centimetres from the fingertip (Main03: finger_landmarks.json). One file
serves both hands. The project's maps are read the way Unreal does (green down); read the other way every knuckle is
a hollow, and the nails are the check: they must come out as bumps. Base knuckles are soft in a map and were placed
from the webs and the finger's proportions on Main03: the artist should confirm them on the sculpt. The thumb is
measured and left.
What follows from it. Finger weights and hand holds belong to where the joints are. Both are made again after this stage on every run.
The Fingers' Weights¶
A finger painted by hand, or skinned from a bone-heat solve, tends to hand its skin over long before each joint and across most of the finger. Bent, it is then an average of its bones along its whole length: it bends like a hose and goes flat. Painted hard instead (each ring of skin on one bone) it bends in the right places and the skin tears at every knuckle. Check a delivery by bending only the middle joints 80 degrees: a finger that folds near the hand has the first fault, one that steps at the joint the second.
regrade_finger_weights.py (pipeline key "regrade_fingers": true, stage 07_fingers) sets a finger vertex's
weights from where it sits:
| Where | Handover |
|---|---|
| Over the back of a joint | to the next bone from the joint to twice the joint's depth past it (FINGER_BACK) |
| On a joint's flanks | across FINGER_FLANK (0.35 cm) either side of the joint |
| Under a middle or end joint | across FINGER_BLEND (0.7 cm) either side of the plane that halves the joint |
| Under a base knuckle | from the hand's bones to the finger across FINGER_KNUCKLE (1.5 cm) |
| Back of the hand behind the knuckles | the hand's bones alone, however far back: finger weight left there by a rig is pulled in by a fist as a dent |
| Knuckle row and webs | shared by the fingers either side, each by how near its bone line is (FINGER_WEB), up to where the two fingers part, read off the mesh's own edges |
| Thumb's first bone | along the bone (THUMB_BASE), fading sideways into the palm (THUMB_REACH) |
| Away from any finger | the weights that were there come back over FINGER_REACH |
The handover differs round a joint because the skin is asked different things. Blended skinning puts a vertex on the straight line between where its two bones carry it, so skin over the back of a joint that is shared half and half ends up on the chord of the bend: at a right angle the knuckle sinks to 0.7 of its height. The skin over a real knuckle stays on the bone before the joint and the next bone takes over past it. Handing over from the joint to twice its depth past it keeps the back skin within a few percent of a true arc at every angle. The depth is read from the skin, so the joints must sit inside the fingers first (The Fingers' Joints).
Which finger a vertex belongs to is read from the weights it has, not from distance: a bone that runs off-centre in its finger lies nearer the next finger's far side than its own. Each hand is done from its own joints and skin, so two hands that are not mirror images both come out right. The mesh does not move and nothing changes at rest.
Judging it. pose_hands.py <rig.blend> <ref.pose.json> <out_dir> <label> [stance.json ...] renders both hands
from four sides in a middle-joint bend, a full curl and each stance, and writes how far the hand's edges stretch.
Look at a plain fist from the back and from the thumb's side as well: the knuckle row and the back of the hand show
there and nowhere else. A wider FINGER_BLEND softens the fold under a joint and thins the pad at the bend; a
narrower one keeps the thickness and sharpens the crease. FINGER_BACK under 1 pulls the knuckle in toward the chord
again; over 1 the back of the finger swells past the joint.
What follows from it. Finger holds fitted on the old weights were fitted to skin that moved differently. The pipeline fits them again on every run (see A Body's Hands on Its Weapons).
An Arm That Is Not the Other's Mirror¶
SK_Als's joints are exact mirror images, left and right. A sculpted body's arms need not be: Main03's right arm is
his left arm posed a little differently (turned 8 degrees at the upper arm and 5 at the forearm, the hand 1.9 cm from
its mirrored place). A rig made by mirroring one side's joints and weights then has one arm right and the other
wrong. On Main03 the right elbow, wrist and every right finger joint sat 1.6 to 2.0 cm from their place in the skin,
with weights that were not the left arm's either. Nothing shows at rest. Bent, the right fingers folded short of
their knuckles and the right fist never showed knuckles; the delivered rig had it from the start.
The sign. Measure how far each fingertip lies past its finger's last joint, on both hands. Main03's left hand read 2.0 to 4.5 cm, his right 4.0 to 6.2, each finger about 2 cm more. Hands that differ by more than a few millimetres have one side's joints in the wrong place, and the side with the longer fingertips is the wrong one.
carry_arm_side.py (pipeline key "arm_side_from": "l", stage 07_armside) carries the good arm's rig to the other:
| Step | How |
|---|---|
| Find the other arm in the skin | The good arm's skin, mirrored, is laid on the other arm's skin part by part (upper arm, forearm, palm, each finger) with a rigid fit. Every part is fitted from several starts and the tightest kept: a fit can settle one row of vertices off. Main03's parts fit to 0.01 to 0.06 cm. |
| Move the joints | Elbow, forearm twist, wrist and finger joints go where the fits carry the good arm's joints. A joint between two parts takes the mean of their two fits. Rotations are kept, so the bind is unchanged. |
| Carry the weights | Each vertex takes the weights of the nearest point on the good arm's skin, moved by its parts' fits, with left and right bone names swapped. The change fades in up the upper arm. |
The mesh does not move. The shoulder joint is reported and left where it is (Main03: 1.1 cm from the carried place):
its weights are regraded for its own place by the next stage. The run gates on the result (hands_alike): after the
carry the two hands' fingertips lie the same distance past their last joints, within 0.3 cm (Main03: within 0.04).
What it cannot do: the arm's roll about its bones (Main03: 5 to 8 degrees) stays, since taking it out would change the bind. A new rig should have its joints placed in each arm, not mirrored.
A Body's Hands on Its Weapons¶
Weapon sockets and every clip's finger curl were made on the ALS dummy's hand. What a body needs of its own, and how
the game uses it, is in Combat Animation. The pipeline makes
it: with "hands": "<hand-fit config>" the finished body's hands are fitted to the hilts they hold and
<out_dir>/export/hands.json is written beside the FBXs (fit_hands.py, which runs fit_hand_hold.py once per
hold). Copy it to the body's source folder with them. Tools/Python/set_hand_sockets.py puts it on the mesh.
The config (ArtSource/Meshes/Main03/hands_fit.json) lists the holds. Each names a hand, the socket its hilt hangs
on, the stance pose it is fitted in, and the grip it is fitted to:
| Setting | What to give it |
|---|---|
grip_cm |
The real grip, measured on the weapon: a radius, or half the width in the blade's plane and half the thickness. Main03's two-hander hold is fitted to a 2.0 by 1.25 cm oval, his one-hand hold to a 1.6 cm round grip. A hold fitted to a thinner rod sinks the fingers into the grip; one fitted to a thicker rod leaves air under them. |
along_palm |
fit for one hold per body: the hilt is slid along the palm to where the four fingers close on it best. like <hold> for the others: the hilt lies as deep in the crook of the fingers as that hold's does, measured as how far the knuckle row lies ahead of the hilt along the palm. |
body_socket, mirror_socket |
The sockets the body's mesh gets for this hilt. The other hand's socket is the exact mirror, which is right only for hands that are mirrors (see the section above). |
How a hold is fitted:
- The hilt's place. A socket made for another hand lies some way along this palm that suits the other: Main03's one-hand hilt lay under his finger bases, 0.1 cm from the knuckle joints, where the two-hander's lies 2.2 cm from them. The hilt is set on the palm's skin and slid along the palm. Only the clearest grip is searched freely (Main03: the two-hander's main hand, whose cost has one clear low). Left to search, a thin grip slides to the heel of the hand, where every finger reaches it in a hook; the other holds take the first one's depth instead. The depth is how far the knuckle joints lie ahead of the hilt's axis along the palm. The distance from the knuckles to the hilt's surface was used first and is wrong: it is the same for a hilt in the crook and for one as far out under the fingers, and when Main03's knuckle joints moved the one-hand hilt was placed outside the fist.
- The four fingers. Each finger's three joint angles are searched together for the curl that lays the pads of all
three segments on the hilt, with no skin deeper in the hilt than a pad gives (0.2 cm) and none in the palm. The
end joint follows the middle joint (two thirds of it), a finger's base joint stays within 25 degrees of the finger
before it, and a finger that cannot close under those rules presses deeper into the hilt at its base, which the
report shows (
pressed_in_cm). - The thumb. Its base is turned to bring its end onto the index or middle finger, lying across the hilt, at one of three curls of its end joints; then the end joints close as far as brings it nearer.
Rules that were tried and dropped: closing each finger from straight until its skin first touches (a finger whose base lies on the hilt with the hand open is stopped before it starts); a round rod for an oval grip; aiming the thumb at the hilt (a thumb laid along the hilt reaches it sooner than one wrapped round).
Judging it. Each hold's pictures are in the config's work_dir, six views with the hilt drawn. Put them beside
the same views of what the game showed before (fit_hand_hold.py with HOLD_FINGERS=0 HOLD_PLACE=keep on the old
body draws the game's own fingers on the hilt). Then look in the game: a hold fitted to one sword is carried by every
weapon of its kind, and a thicker or thinner grip shows there.
More Geometry from the Sculpt¶
Main03 was delivered at 7,228 triangles, 1,158 of them for torso and arms together (the eyes alone have 1,920). At that
count a shoulder is a handful of faces: it facets in silhouette and folds at the armpit however the weights are
smoothed. With high_poly in the pipeline config, densify_body.py subdivides the body once and puts the new points
on the artist's sculpt. UVs, skin weights and material slots carry over, so textures and the rig are untouched. Main03
comes out at 23,368 triangles.
| What | How |
|---|---|
| The sculpt file | Not in the repository (500 MB). import_high_poly.py <out.blend> <sculpt.fbx> <low_poly.fbx> makes the .blend the config names, from files copied off the shared drive (Character Art/Player Character/Meshes). It prints every mesh so the sculpt object can be named in the config (Main03: Main Human 10.001, the one of two near-identical sculpts its low-poly lies closest to). |
| The sculpt is not in the rig's pose | The rigged body is the artist's low-poly with the whole mesh moved 6.06 cm in depth and the arms lowered about 3 cm at the hands. The body is rebuilt in the sculpt's pose (each vertex takes the place of the low-poly vertex with the same UV), subdivided and projected there. The rig's body gets the same subdivision and each point's offset, turned into its own local surface frame. The sculpt is never deformed. |
| Torso, arms, legs | On the sculpt: new points move 0.33 cm on average from their smoothed place, 1.3 cm at most. |
| Head, hands | Not on the sculpt. They are subdivided so the surface still passes through every delivered vertex. Eyes, brows and lashes are separate meshes fitted to the low-poly head; on the sculpt's deeper sockets the eyes stared and a brow sank into the skin. Fingers lie closer together than the projection reaches. |
| Eyes, brows and lashes | Left as delivered. |
| Seams between sections | Vertices that shared a place share it and one normal afterwards; where a section on the sculpt meets one that is not, the delivered place wins. |
It runs after the weights are final (the new vertices take theirs from the ones around them) and before the garments
are fitted: a garment fitted to the low-poly cage lets the denser body through (1.1 % of covered skin showing). The
garment fit also got a second push-out, driven by body points (push_over_body_points in
fit_underwear_by_skeleton.py): the face-sampled push-out misses a bump that rises between its samples, which left
two points of his seat 3 mm outside the shorts.
Two gates read differently on a dense body. The fold gate counts faces, so its limit scales with the triangle count
(81 for Main03; measured 71, the same folded patches as 19 before). The shape gate measures from the delivered
vertices to the result's surface, and needs what the low-poly vertices themselves sit off the sculpt: gate_shape_cm
1.0 for Main03 (measured 0.67).
The normal maps go with the surface they were made on. A tangent-space map says how the normal leans away from
the low-poly's own normal. On the denser body that start has changed, so forms the geometry now carries (collarbones,
chest) get shaded twice. A fresh bake from the sculpt would lose what the artist painted into the maps afterwards.
rebase_normal_map.py (pipeline config normal_maps) carries each map over texel for texel instead: both bodies are
drawn into UV space with their MikkTSpace frames, the old map and old frame give the normal the artist meant, and
that normal is written as a lean from the new frame. Main03's four maps turn by 3.5 to 5.1 degrees on average and
keep their fine detail (high-pass energy 6.34 before, 6.24 after). Three things it depends on:
- UVs are subdivided, never smoothed (
uv_smoothNONE indensify_body.py), so a texel means the same point of the body on both. - The body is exported as triangles (
export_body_set.py, fixed diagonals) and the maps are made on that same triangulated copy (export/13_final.blend). Left as quads, the engine picks its own diagonals. - The artist's maps are green-down, as the engine reads them.
The re-based maps are written to <out_dir>/normal_maps, kept in ArtSource/Meshes/Main03/Textures and imported by
ue_import_character_magnus.py over the texture assets of the same name. A first version through Cycles' bake came
out as object-space colours with the detail gone; the direct version has no renderer in it.
Looking at a mesh, not a material. render_clay_wire.py <rig.blend> <out_dir> <label> renders a body at rest in
clay and with its wireframe from fixed cameras under one light, so two bodies can be set side by side.
pose_from_game.py <rig.blend> <ref.pose.json> <game_pose.json> <out_dir> <label> puts a body in the pose the game
shows (harness scenario stance_pose: the layered, adjusted pose no single clip holds) and renders the upper body and
each arm in clay. With POSE_OWN_JOINTS=1 it takes only the turns from the game and keeps the joints where the
body's own skeleton has them, as the engine does, so candidate rigs with different joints can be compared in one
stance in a minute without importing any of them. This is where a moved joint is judged.
A garment source is never a file the run writes. The config's garments pointed at the same FBXs the results were
copied over, so each run refitted the last run's result. The tank top had once been fitted to the body with its
shoulders lifted and kept those straps: on his own shoulders they stood off like wings, at rest and in every stance.
The garment sources now sit in ArtSource/Meshes/Main03/Delivered and are only read.
A ragged dark edge in an armpit can be the shadow, not the skin. In the greatsword stance the armpit behind the
raised arm showed a torn-looking light sliver and blocky dark patches ran down the back. In clay, in the game's pose,
the armpit was a clean hollow. In PIE with ShowFlag.DynamicShadows 0 the sliver and the patches were gone. Nothing
in the rig was changed for it.
Worked Example: Knight Armor → SK_Als¶
| Item | Value |
|---|---|
| Target skeleton | /ALS/ALS/Character/SK_Als (the player body SKM_Male3_Rigged uses it) |
| Source skeleton (wrong) | SK_Mannequin — different spine subdivision → distortion |
| SK assets (reimported in place) | SK_Knight_Helm, _Hands, _Feet, _BodyArmor, _Cloak |
| Material slots | M_Knight19_N → MI_Knight_N (1–4); Cloak only slot 4 |
| Consumers | EquipmentVisualConfig (Knight_BodyArmor/Feet/Hands/Helm), via soft refs — auto-relinked |
| Cloak note | Exclude the low-poly cloth proxy; export the real cloak mesh only |
Full session detail (incl. the crash + broken-asset recovery) is in agent memory project_knight_armor_als_rerig.
Source References¶
Scripts¶
| Component | Location |
|---|---|
| Blender reshape + transfer + export | Tools/Blender/skeletal_rig_transfer.py |
| Shoulder weight regrade, arm sweep | Tools/Blender/CharacterRig/regrade_shoulder_weights.py, sweep_shoulder.py |
| Finger joints into the fingers and to the knuckles; the normal map's knuckles drawn | Tools/Blender/CharacterRig/seat_finger_joints.py, finger_relief.py; landmarks ArtSource/Meshes/Main03/finger_landmarks.json |
| Finger weight regrade, hand poses | Tools/Blender/CharacterRig/regrade_finger_weights.py, pose_hands.py |
| One arm's joints and weights from the other | Tools/Blender/CharacterRig/carry_arm_side.py |
| Hand fit: hilt places and finger holds | Tools/Blender/CharacterRig/fit_hands.py, fit_hand_hold.py, hand_hold_lib.py; config ArtSource/Meshes/Main03/hands_fit.json |
| Hand sockets and holds onto the body mesh | Tools/Python/set_hand_sockets.py |
| Unreal async force-skeleton import | Tools/Python/ue_skeletal_import.py |
Unreal¶
| Component | Location |
|---|---|
| Equipment mesh refs (leader pose) | Source/ProjectEternal/Public/EquipmentManagement/Data/EquipmentVisualConfig.h |
| Per-body post-process correction | Source/ProjectEternal/Public/Character/Animation/BodyCorrectionAnimInstance.h; Main03's blueprint /Game/Art/Characters/Humanoid/Main03/Animation/ABP_Main03_BodyCorrection |
Related Systems¶
- Blender Room Workflow — the other Blender↔UE pipeline (level rooms / USD)
- Asset Naming & Organization — SK_ / SKM_ / MI_ conventions
- Equipment System — how equipped meshes attach (leader pose)
Recent Changes¶
| Date | Change | Impact |
|---|---|---|
| 2026-12-04 | Pipeline config "finger_joints" (seat_finger_joints.py, stage 07_fingerjoints; finger_relief.py draws the normal map's knuckles), on for Main03 with finger_landmarks.json. regrade_finger_weights.py hands over late over the back of a joint, short on its flanks, and clears finger weight off the back of the hand. fit_hand_hold.py matches holds by how far the knuckle row lies ahead of the hilt |
Main03's finger joints lay on the back skin, off-centre, at the webs and beside the painted knuckles; they moved 0.2 to 1.4 cm. A fist now has a row of rounded knuckles where it had a lip folded along the webs |
| 2026-12-04 | Pipeline config "arm_side_from" (carry_arm_side.py, stage 07_armside, gate hands_alike) and "hands" (fit_hands.py: the body's hilt places and finger holds, refitted on every run), both on for Main03. fit_hand_hold.py searches each finger's three joints together on the real grip shape and places the thumb on the fingers |
Main03's right elbow, wrist and finger joints sat 1.6 to 2.0 cm off their place in the skin (the rig's joints are mirrors, his arms are not); they and the right arm's weights now come from the left arm. His right fist shows knuckles. Holds no longer go stale when the hands change |
| 2026-12-03 | Pipeline config "regrade_fingers": true (regrade_finger_weights.py, stage 07_fingers), on for Main03; pose_hands.py renders both hands in a bend, a curl and the stances |
Main03's fingers bend at their joints and keep their thickness; before, a finger's skin was handed over across most of its length and a curled finger was a flat hose |
| 2026-12-01 | Pipeline config "joints": "as_rigged" (no seating, joint gate reports only), on for Main03. Garments: a garment's tighten_bones tightens it only over those bones' skin (the tank top's straps over the collarbones). fit_hand_hold.py, hand_hold_lib.py: a body's own hold on a hilt (doc 03_Combat/06_Combat_Animation.md §A Body's Own Hands) |
Main03's wrists bend without the notch the seated joints gave them. The tank top's straps stood 1 to 1.5 cm off the shoulders at their top, so their dark inner side showed beside the neck as points; they are fitted down onto the shoulders |
| 2026-11-30 | section_seam_check.py puts each pair of vertices on a cut between body sections in exactly one place (it only matched their weights before) and reports how far apart they are; new pipeline gate cuts_closed on the finished body. Main03 also gets three smoothing passes over the thighs |
Main03's waist cut was open: 4 of its 32 vertices came 0.25 mm from their twins, the step that adds geometry looks for twins within 0.01 mm, and 20 of 64 ended up to 1.5 mm apart, a dark line round the hips. Now 0. The smoothing removes a fold at the back of the hip that came with the delivered weights (worst 172 degrees to 26 in sword and shield). A band of other shade along a cut in posed Blender renders is Blender's handling of custom normals; judge a cut on a welded copy or on the exported FBX |
| 2026-11-30 | Shoulder weights regraded on Main03 (regrade_shoulder_weights.py, config regrade_shoulders): the collarbone carries the top of the shoulder, the arm takes over down the deltoid, the left upper arm gets the twist split it lacked. New sweep_shoulder.py and pipeline gate shoulder_sweep |
In clay the shoulder slopes from the neck with the arm 10 degrees in or straight down, where it was square. In the game's stances the outline moves by under a centimetre: they hold the arm near the bind angle and move the shoulder joints 0 to 5 cm against the ribs. With the arm overhead the shoulder balls slightly. Folds in the hardest test frame: 47 of 81 (43 before). See §The Shoulder's Weights |
| 2026-11-30 | Main03 is built from the artist's first rig again (Delivered/Main03_FirstRig.fbx), not the second delivery; shoulder smoothing entry dropped from its config (that rig carries it) |
The second delivery's arms ran 10 degrees off their bones and hung as a banana from the shoulder in every stance, whichever way its shoulder joint was placed. Upper arms now hang straight; folds 43 of 81 against 79 |
| 2026-11-30 | Shoulder and collarbone joints go back to where the artist rigged them ("shoulders": "as_rigged"); new gate check_pose_kept.py with stance poses in ArtSource/Meshes/Main03/Poses; pose_from_game.py can keep a rig's own joints (POSE_OWN_JOINTS), shared code in game_pose.py; garment sources moved to Delivered/ |
Moving the shoulder joints 6.3 cm into the shoulders had left the rest pose identical and made each shoulder a ball 3.7 cm wider with the arms down. The tank top's straps no longer stand off the shoulders |
| 2026-11-30 | Normal maps carried over to the denser body (rebase_normal_map.py, pipeline config normal_maps); body exported as triangles; UVs no longer smoothed by the densify step; render_clay_wire.py and pose_from_game.py for looking at a mesh at rest and in the game's pose |
Collarbones and chest are no longer shaded twice; the artist's painted detail is kept. The ragged armpit edge in the greatsword stance was traced to shadows, not the rig |
| 2026-11-30 | New section "More Geometry from the Sculpt": densify_body.py and import_high_poly.py; garments are fitted after the body is finished and pushed out over body points; shape gate measured from the delivered vertices, fold gate scaled by triangle count |
Main03 goes from 7,228 to 23,368 triangles with torso, arms and legs on the artist's sculpt and the face unchanged; skin through clothes 0.05 % |
| 2026-11-30 | Section "Seating the Skeleton's Joints in a Body" replaces "Conforming a Body to the Skeleton": seat_arm_joints.py moves the collarbone, shoulder, elbow and wrist joints into the body; check_shape_kept.py gates the rest shape. The step that moved the mesh onto the joints is gone. Stance clips are fitted to the build with Tools/MotionForge/sets/stance_shoulders.py |
Main03 keeps the artist's sloping shoulders and long neck (the mesh had been lifted 6.3 cm onto the dummy's shoulder joints); the two-handed sword stance drops his shoulders about 2 cm against the chest, not 6 to 7 |
| 2026-05-29 | Initial doc — knight armor re-rig to SK_Als | Establishes repeatable Blender→UE skeletal re-rig flow |
| 2026-11-20 | Manny-layout → SK_Als re-rig, animation pose-test harness, seam check, garment fitting (Tools/Blender/CharacterRig/) |
Main03 player body + starter clothes; repeatable for future characters |
| 2026-11-20 | Rebind to SK_Als rest (rebind_to_skeleton_rest.py) and joint weight smoothing (smooth_joint_weights.py); SK_Main03, SK_Main03_Underwear and SK_StarterClothes reimported in place |
Main03's bind pose was up to 31° off SK_Als; now within 0.04°. The trapezius folds and the shoulder-to-chest crease in the two-hander stance are gone |
| 2026-11-20 | UBodyCorrectionAnimInstance + ABP_Main03_BodyCorrection on SK_Main03: clavicle lift, weighted per stance from measurements (full by default, off in the shield and hammer-block stances) |
Main03's head-over-shoulder height is within ±0.5 cm of the dummy's in every stance; other bodies and the shared poses unchanged |
| 2026-11-30 | Main03 replaced by the artist's "Magnus" rig, already on SK_Als (check_bind_vs_skeleton.py, measure_garment_fit.py, FIT_BY_SURFACE, ue_import_character_magnus.py) |
Joints are the dummy's; the clavicle correction is cleared from SK_Main03. Starter clothes and underwear refit to the new body; grip bones added |
| 2026-11-30 | Polish pass: knee weights, outfit layering, body split by coverage (measure_skin_through_garment.py, layer_and_split_covered.py, body_look scenario) |
No knee fold, no waistband flicker, no skin through the starter clothes in our animations |