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

implement MigrationVrmLookAtAndFirstPerson. fix MigrateVector3 #853

Merged
merged 2 commits into from
Apr 8, 2021

Conversation

ousttrue
Copy link
Contributor

@ousttrue ousttrue commented Apr 8, 2021

  • lookAt の migration を実装
  • firstPerson の migration を実装
  • SpringBone と LookAt の座標変換は、 (x, y, -z) じゃなくて (-x, y, z)

@ousttrue ousttrue requested a review from Santarh April 8, 2021 10:15
Copy link
Contributor

@Santarh Santarh left a comment

Choose a reason for hiding this comment

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

yosasou

/// VRM0は本来 (x, y, -z) と座標変換するべきところをしていない。
/// 一方 VRM1 は (-x, y, z) と座標変換するように仕様を変更した。
///
/// VRM0 => VRM1 の変換では、 (-x, y, z) する。
Copy link
Contributor

Choose a reason for hiding this comment

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

レガシー仕様についての記述、ヨシ!

LookAtVerticalDown = MigrateLookAtRangeMap(vrm0["lookAtVerticalDown"]),
LookAtVerticalUp = MigrateLookAtRangeMap(vrm0["lookAtVerticalUp"]),
LookAtType = MigrateLookAtType(vrm0["lookAtTypeName"]),
OffsetFromHeadBone = MigrateVector3.Migrate(vrm0["firstPersonBoneOffset"]),
Copy link
Contributor

Choose a reason for hiding this comment

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

カーブは破棄する、とコメントで残したほうがいいかもしれないですね

@ousttrue ousttrue requested a review from Santarh April 8, 2021 11:58
@Santarh Santarh merged commit 2103487 into vrm-c:master Apr 8, 2021
@ousttrue ousttrue deleted the fix10/migration_lookat_firstperson branch May 17, 2021 05:21
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 this pull request may close these issues.

2 participants