Up to date

This page is up to date for Godot 4.2. If you still find outdated information, please open an issue.

アニメーション

サポートされているアニメーション:
  • 全タイプのオブジェクトの幾何学変換アニメーション

  • ポーズ ボーンの幾何学変換アニメーション

  • シェイプキーアニメーション

  • ライトのアニメーション

  • カメラのアニメーション

単一オブジェクトの複数のアクション

ほとんどのゲームでは、1つのオブジェクトで複数のアニメーションを切り替える必要があります。このアドオンは、複数のアクションを一度に単一のAnimationPlayerにエクスポートすることをサポートしており、アクションを簡単に切り替えることができます。

このワークフローは、BlenderのNLAトラックを使用します。この機能の使用方法に関する簡単なガイドを次に示します:

1. 隠しアクティブアクション

新しく作成されたアクションは、常にオブジェクトにバインドされたアクティブなアクションです。アクティブなアクションをNLAトラックに配置する方法はいくつかありますが、1つはもちろん NLAエデイター です

../../../_images/nla_editor.jpg ../../../_images/nla_pushdown.jpg

または ドープシート でアクションを隠すことができます

../../../_images/dope_sheet.jpg ../../../_images/stash_action.jpg

2. NLAトラックのミュートステータスを確認

An NLA track can be mute or unmute, the exporter will export all the mute NLA track as a separate action, while blends all the unmute NLA tracks into every action (including the action) being exported.

../../../_images/nla_strip.jpg

3. シーンのエクスポート

Export Stashed Actions オプションがオンになっていることを確認します。

../../../_images/stash_action_option.jpg

その後、すべての隠されたアクションとアクティブなアクションがAnimationPlayerにエクスポートされます。

../../../_images/in_godot.jpg

制約

複雑なアニメーションは、オブジェクト制約を使用して作成される場合があります。通常の例はインバース キネマティクスです。アドオンは、オブジェクトに何らかの制約があるかどうかを自動的にチェックします。存在する場合、すべての制約がアクションにベイクされ、オブジェクトとともにエクスポートされます。

アニメーションモード

GodotとBlender は、アニメーション データを格納する構造が異なります。Godotでは、アニメーション データは、アニメーション化された各ノードではなく、AnimationPlayer ノードに格納されます。この不整合を修正し、アニメーションを汎用的に再生するために、このアドオンには 3つのアニメーション書き出しモードがあります。

'Animation as Actions' モード

すべてのアニメーションをオブジェクトアクションとして扱うので、エクスポートされたシーンでは、すべてのオブジェクトが独自のAnimationPlayerを持ち、そのアクションを保持します。

'Scene Animation' モード

アニメーションがBlenderのタイムラインで再生するのと同じ結果を生成するようにしたい場合、この方法を使用します。このモードでは、シーン内のすべてのアニメーションは、シーンルート内の1つのAnimationPlayerに配置されます。

'Animation as Action with Squash' モード

This mode has very similar behavior of mode 'Animation as Action', but it can generate fewer AnimationPlayers; objects in parent-children relationship would share their AnimationPlayer. It is useful when you have several rigs, and each Skeleton and Mesh has actions; then one rig would have just one AnimationPlayer.