Repository navigation
FBX のテイクを Unity のクリップどおりに NLA に並べ、アニメーションのオプションを 1 つにまとめる(#276) - #278
Merged
Merged
Conversation
animations.clipAnimations の name / takeName / firstFrame / lastFrame / loopTime を ModelClip にし、 importAnimation とあわせて ModelImporterInfo に持たせる。Unity がモデルのテイクから切り出すクリップを、 Blender でも同じ名前・範囲で NLA に並べるのに使う。範囲が逆転しているものなど、読めない行は外す。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
モーション集(32 RPG Animations)や @ 付きの FBX(Everyday Motion Pack)のモーションを使えるようにする。 - テイクの Action を .meta のクリップごとに範囲を絞ったストリップにし、クリップの名前のトラックに置く。 同じテイクのクリップは Action を共有する。0.1 秒以下のクリップ(T ポーズのテイク)は置かず、 使われないテイクの Action は消し、FBX インポーターが付けるアクティブな Action は外す。 - シーンで同じモデルを配置ごとに読み直すときは、最初の Action を使い回す。 - Models 単位で、同じ骨格(含まれる関係でもよい)のモーションだけのモデルを 1 体のアーマチュアにまとめる。 スキンの無い FBX はファイルごとにレストが違うので、B' = R'⁻¹·R·B でキーを変換する。 ルートのボーンがオブジェクトになった FBX は、動かさないオブジェクトの Transform を一定のキーで補う。 32 RPG Animations(31 体 → 1 体)と Everyday Motion Pack(244 体 → 1 体)で、元の FBX とボーンの姿勢が 1e-4 以内で一致することを確かめた。 - オプションの Import Animation(FBX に渡すだけ、既定 OFF)と Animation Clips(#209)を、 Animation(Muted(既定)/ Active / None)にまとめる。Active はオブジェクトごとに最初の 1 本だけミュートを外す。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Walk.fbx(テイクを .meta で 2 クリップに分ける。T ポーズのテイクを含む)、Run.fbx(骨格が部分集合で、レストが違う)、 Character.fbx(メッシュ付きでまとめない。シーンに 2 か所置く)で、Muted / Active / None / シーンの 4 通りを確かめる。 統合テストに、ボーンの向き・ミュートを外したトラック・アーマチュアとテイクの Action の数の確認を足した。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #276
概要
モーション集(FREE - 32 RPG Animations)や
@付きの FBX(Everyday Motion Pack)のように、モーションを FBX のテイクに持つパッケージから、モーションを取り出して使えるようにする。A. テイクを Unity のクリップどおりに NLA に並べる
clipAnimations(名前・テイク・開始/終了フレーム)ごとに、範囲を絞った NLA ストリップを、クリップの名前のトラックに置く。同じテイクのクリップは Action を共有する。B. 同じ骨格のモーションだけのアーマチュアを 1 体にまとめる(Models 単位)
C. オプションの整理
Muted(既定)/Active/None)にまとめた。Activeは、オブジェクトごとに最初の 1 本だけミュートを外す。確認
ModelClipの読み取りを追加)、統合テスト 32/32(合成パッケージ synthetic_motion の Muted / Active / None / シーンを追加)、Yumeka の期待値 46/46。未対応
loopTime)は NLA に反映しない(ストリップは範囲の終わりで止まる)。🤖 Generated with Claude Code