Skylumz / Sollumz

Blender plugin to import codewalker converter xml files from GTA V
MIT License
388 stars 149 forks source link

Extra bone to animate root motion #852

Open alexguirre opened 5 months ago

alexguirre commented 5 months ago

Root motion since 2.1 uses the object's delta location and rotation. This doesn't really work well with existing animation tools (blender or other addons) which expect to deal only with armature pose bones. And it currently has some issues with how the root motion looks in blender vs in-game.

The idea is to have a special bone that is parent of the root bone, in the same location as the root bone and ignored in export. This bone would control the root motion via its location and rotation. It could be added/removed to the armature from the animation tools panel.

The existing root bone cannot be used for this because it needs to be able to have its own bone animation that doesn't affect root motion. For example, game animations follow a smooth line for the root motion, while the root bone contains smaller details for the visual animation (e.g. slight left and right deviations). Would be nice to have a tool to extract the smoothed root motion from the root bone animation too.

bbodhix commented 2 months ago

how can i use this or add the bone?

alexguirre commented 2 months ago

It isn't implemented yet.

bbodhix commented 2 months ago

I tried the Dev/Anim-mover, gotta said that it works amazing budy, the Bone idea makes everything more easy than last Root version, no issues atm, we only need to move that Bone separete only to model position and not with model rotation/animation.