Skip to content

smix8/GodotAnimationRetargeting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Godot Animation Retargeting

animationretargeting_banner

Animation Retargeting module for Godot Game Engine.

The module is work in progress, only use the master/main branch for testing.

See Godot 4.x and Godot 3.x branch respectively.

Due to popular demand an addon version made with GDScript is available. This version does not have the full feature set due to performance restrictions, addons are just to slow.

See Godot 4.x GDScript and Godot 3.x GDScript branch respectively.

Introduces a new Node Type that can be used to transfer Animation data authored for one Skeleton to another Skeleton inside the Godot Editor or at runtime in your game project.

Features:

  • New Godot Node type to retarget animations in both editor as well as runtime in exported games.
  • Transfer Animations and entire AnimationsPlayers between two similar Skeletons with a button press.
  • Multiple retargeting options to filter for certain animation ids.
  • Editing interface to correct bone errors for entire animations.
  • Bake options to create new skeleton animation variants from existing animations.
  • Live update to see all changes and corrections immediately inside the editor.
  • Runtime retargeting API to save performance and precious filesize in exported games.
  • Support for custom bone mappings and remappings to transfer animations to different skeletons.
  • Preset bone mappings for some well established skeleton rigs from DCC tools or vendors. (in development)
  • Custom editor dock and interface to enhance your animation workflow in Godot. (in development)
  • Ruby colors!

animationretargeting_demo_anim

Installation

C++ Module

  1. Download and compile Godot from source and assure it runs on your hardware. See official Godot documentation for instructions how to compile Godot from source.
  2. Download repository branch for your Godot version (Godot 4.x/Godot 3.x) and unpack it.
  3. Create an "animation_retargeting" folder inside your Godot source modules folder and drop the unpacked repo content into it. Your path should end up as "godotsourcefolder/modules/animation_retargeting".
  4. Compile Godot from source again with the added AnimationRetargeting module.
  5. Inside Godot Editor search for "AnimationRetargeting" Node in the "AddNode" dialog.

GDScript Addon

  1. Download repository branch for your Godot version (Godot 4.x_gdscript/Godot 3.x_gdscript) and unpack it.
  2. Drop the unpacked repo "addon" folder into your Godot project folder.
  3. Active the addon inside the projectsettings menu.
  4. Inside Godot Editor search for "AnimationRetargeting" Node in the "AddNode" dialog.

Setup | Usage

  1. Add an AnimationRetargeting Node in your project.

  2. Add NodePath to your source skeleton.

  3. Add NodePath to your source skeleton AnimationPlayer.

  4. Add NodePath to your target skeleton.

  5. Add NodePath to your target skeleton AnimationPlayer.

  6. Customize retargeting and export settings.

  7. Make manual backups of all your Animation files and AnimationPlayers.

  8. Press "Retarget Animation" button in the editor or call start_retargeting() function.

  9. To use custom bone mappings load your {"source_bone_name":"target_bone_name"} Dictionary with set_custom_bone_mapping() before you call start_retargeting(). It is better to save you custom bone mapping Dictionary in a script file (or read from JSON) so no progress is lost when the Godot Inspector bugs out.

  10. Hunt bugs!

Refer to AnimationRetargeting Node documentation inside Godot Editor for more function and property explanations.

See below more recent devlog videos for current usage.

animationretargeting_node_inspector

Devlog Video #5 Module backported to Godot 3.3

devlog5

Devlog Video #4 Correcting bones and creating new animation variants

devlog4

Devlog Video #3 Retargeting animations to multiple characters

devlog3

License

MIT

Contributers

Special thanks for fixing bugs or extensive testing:

  • stryker313
  • WiredDreamcaster

About

Animation Retargeting module for Godot Game Engine

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published