Animation
Mon, 20 Mar 2023 08:37:31 GMT — Properties
Properties
Key | Value |
---|---|
Identifier | animation |
Name | Animation |
Type | Topic |
Creation timestamp | Mon, 20 Mar 2023 08:37:31 GMT |
Modification timestamp | Tue, 21 Mar 2023 10:01:23 GMT |
Godot Animation Retargetting
- Mixamo
- Download X-Bot (female) or Y-Bot (male) in T-pose (without any animations)
- Tweak animations accordingly
- Character arm-space
- Overdrive
- Trim
- Download animations without skin and, when available, "in-place" (to avoid root-motion problems, later on)
- Idle
- Walking
- Running
- Jumping
- Blender
- Delete everything in the scene
- Import the X-Bot in
fbx
format - Make a new "Animations" collection
- Import animation files (in
fbx
format) into the "Animations" collection - Switch to Animation tab and select the Non-linear animation panel
- Rename existing animation strip to "t-pose" and "push it down"
- Press the "n" key to open the strip panel
- Select the new strip (which resulted from pushing the existing strip down in the previous steps)
- Select the first action (in the strip) panel. Run the animation to see which one it is (either idle, walking, running or jumping)
- Rename the strip accordingly; for example, "idle-loop" (adding the "-loop" part will automatically make the animation loop inside of Godot)
- Push the strip down (to create a new strip) and repeat the above three steps until all animations have been added to the armature
- Right-click the "Animations" collection and select "Delete Hierarchy"
- Right-click on the "t-pose" strip and select "Track Ordering - To Top"
- Export scene in
glTF
(binary) format- Remove the materials by selecting "Data - Material - Materials: Placeholder"
- Name the file "x-bot-locomotions.glb"
- Godot
- Import (i.e., drag-and-drop) the "x-bot-locomotions.glb" file (the result of the last step in the Blender-part of the process)
- Import the "Mixamo BoneMap.tres" bone map resource (obtained from the Godot4-MixamoLibraries repo in GitHub)
- Double-click the "x-bot-locomotions.glb" file to open the advanced import settings dialog
- Click on the
Skeleton3D
node and choose "Quick Load" in theRetarget - Bone Map
property editor and select the "Mixamo BoneMap.tres" resource file followed by clicking on the "Reimport" button at the bottom of the dialog - Drag-and-drop the "x-bot-locomotions.glb" file into the 3D scene and reset its transform
- Right-click the x-bot-locomotions node in the scene/nodes explorer and select the "Make Local" menu item
- Save the scene
- Selecting the
AnimationPlayer
node will allow you to select and preview the different animation actions (that is, idle, walk, run, jump and t-pose) - Click on the "Manage Animations" buttons and click on the floppy disk ("Save") icon to save the
[Global]
animation library as a resource - From this point onwards, you have a resource library that can be used with other (Mixamo skeleton-based) characters