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

Fix uv rotation coords of vrm-1.0 #1826

Merged
merged 2 commits into from
Sep 26, 2022
Merged

Conversation

Santarh
Copy link
Contributor

@Santarh Santarh commented Sep 22, 2022

Under description is wrong. go to #1841

In vrm 1.0 specification, The uv rotation speed unit is radian per second.
UniVRM implementation uses rotation per second.
It must be converted.

In vrm 1.0 specification, the uv rotation direction is counter-clockwise in uv coords.
And the texture coordinates is different between glTF and Unity.
Therefore, the speed parameter must be inverted.

\ glTF Unity
rotation speed positive positive
uv in uv coords CCW (Bottom-left origin) CCW (Bottom-left origin)
uv in texture coords CW (Top-left origin) CCW (Bottom-left origin)
image on mesh CCW CW (inverted 😭)

https://github.com/vrm-c/vrm-specification/tree/master/specification/VRMC_materials_mtoon-1.0
https://registry.khronos.org/glTF/specs/2.0/glTF-2.0.html#images

@Santarh Santarh requested a review from ousttrue September 22, 2022 12:19
@Santarh Santarh changed the title Fix uv animation speed unit of vrm-1.0 Fix uv rotation coords of vrm-1.0 Sep 26, 2022
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.

MToon-1.0 の UV rotation

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