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

nodeにmatrixを使用したVRM0.xのロードを実施すると "Exception: matrix with translation" が発生する問題を解消する #2210

Merged

Conversation

tsgcpp
Copy link
Contributor

@tsgcpp tsgcpp commented Jan 5, 2024

環境情報

  • UniVRM version: v0.116.0
  • Unity version: Unity-2021.3.27f1
  • OS: Windows 10

概要

nodeにmatrixを使用したVRM0.xのロードを実施すると "Exception: matrix with translation" が発生する問題がありましたため、対策案を提出させていただきます

  • Migration後にnodeがmatrixとTRS両方保持することになって こちらException: matrix with translation が発生していました
  • Migration時にTRS側が作成されているので、matrix側を除外するようにしています

問題の再現方法

  • VRM10Viewerで こちらのVRM0.x (nodeにmatrixを使用したVRM0.x) をロードすると再現します

@vrm-github-bot
Copy link
Collaborator

Can one of the admins verify this patch?

@ousttrue
Copy link
Contributor

ousttrue commented Jan 9, 2024

jenkins

@ousttrue
Copy link
Contributor

ousttrue commented Jan 9, 2024

Jenkins

Copy link
Contributor

@ousttrue ousttrue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ありがとうございます。

できれば matrix をやめて TRS に一本化したいのですが、
glTF の仕様では matrix が省略された場合のデフォルト値は identity 行列だったりします。

@ousttrue ousttrue merged commit a28215e into vrm-c:master Jan 9, 2024
1 check passed
@tsgcpp tsgcpp deleted the feature/remove_matrix_properties_in_migration branch January 11, 2024 14:04
@tsgcpp
Copy link
Contributor Author

tsgcpp commented Jan 11, 2024

ご確認ありがとうございました!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants