Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

特定の条件で Play Mode に入ると衣装の PB が揺らす対象のスケールが変わる #845

Closed
nekobako opened this issue May 6, 2024 · 8 comments · Fixed by bdunderscore/ndmf#231

Comments

@nekobako
Copy link
Contributor

nekobako commented May 6, 2024

下記の条件を満たすとき、Play Mode に入ると衣装の PB が揺らす対象のスケールが変わるようです。

  • アバターの中にスケールが (1, 1, 1) ではない衣装がある
  • 衣装の中に PB の揺らす対象となっているボーンがある
  • 衣装に MA Merge Armature が設定されている
  • Enter Play Mode の Reload Domain/Scene が両方オフになっている
  • Scene View の Gizmo 表示がオンになっている
  • Scene を開いてからアバターのルートオブジェクトを一度でも選択した

unitypackage と再現動画を載せておきます。

Test.zip

2024-05-06.195043.mp4

Avatar_Costume_1.prefab に入っている衣装はスケールが (1, 1, 1) なので問題ありませんが、
Avatar_Costume_2.prefab に入っている衣装はスケールが (2, 2, 2)(0.5, 0.5, 0.5) なのでキューブのスケールが変わってしまっています。

Unity 2022.3.6f1、NDMF 1.4.0、MA 1.9.12 で確認しました。

@nekobako
Copy link
Contributor Author

nekobako commented May 6, 2024

AAO など色々設定していて Play Mode に入るのに時間がかかるアバターでは Gizmo 表示がオフでも再現しました。
もしかすると別件かもしれませんが、それ以外の条件は必須だったので関係ある可能性は高そうです。

ただ、添付した unitypackage のサンプルアバターでは何度も試しましたが Gizmo 表示がオフだと再現しませんでした。

@bdunderscore
Copy link
Owner

なにこの発生条件・・・(困惑

@bdunderscore
Copy link
Owner

NDMF側で対策します。

@nekobako
Copy link
Contributor Author

nekobako commented May 7, 2024

本当に…?と思いながら書いたので再現してよかったです。
対応ありがとうございます…!

@bdunderscore
Copy link
Owner

詳しく再現条件をまとめてくださってありがとうございます!

@anatawa12
Copy link
Contributor

細かい発生機序の詳細調査はまだ行ってませんが、類似事象がPhysBone Colliderでも確認できます。

(相当前に謎にローカル座標が保持されていた問題の原因がこれの可能性がありそうであることが確認できました)

@bdunderscore
Copy link
Owner

@anatawa12 再現ケースがあるなら、このPRの最新版で直るか確認していただけますか? bdunderscore/ndmf#231

@anatawa12
Copy link
Contributor

当時のシーンファイルを削除してしまったようで再現ケースが見つかりませんでした。すみません。見つけたら試して報告します。

bdunderscore added a commit to bdunderscore/ndmf that referenced this issue May 12, 2024
…#231)

* fix: workaround VRCSDK bug where stale data is left in physbone state

Closes: bdunderscore/modular-avatar#845

* fix: additional cases where reinit is needed for PB components
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants