model.humanoid.setPose(model.humanoid.restPose) Bug?
See original GitHub issueI don’t know if is this a bug or I misused this function, when I call model.humanoid.setPose(model.humanoid.restPose)
to reset the VRM model’s pose, the model is getting weird.
After I dig in the code, I think the reason causing this bug is in here, which the original bone position is added to the pose data passed by the argument, then the position of all bones are doubled: https://github.com/pixiv/three-vrm/blob/1b4aa0a72b7153a6fba5bc575932f7a8dcb807b8/src/vrm/humanoid/VRMHumanoid.ts#L86-L93
If this is not a bug, is there any proper way to reset the model to its initial state?
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
Human Bug - 3D model by TOY Studio (@toy_studio) [466afd9]
Your version of is too old to display models in AR. or newer is required. Update your device or try on another device....
Read more >pixiv - Bountysource
I don't know if is this a bug or I misused this function, when I call model.humanoid.setPose(model.humanoid.restPose) to reset the VRM model's pose, ......
Read more >Reset to T pose - Unity Forum
Hi, I had discovered a way: Look for your default model in assets, and expand it. There must be a default T-pose animation....
Read more >Free Interactive 3D Model for Drawing Figures, Dynamic ...
Create free 3D reference models. ... SetPose — Online Drawing Mannequin ... for every artist looking to practice drawing human figures or dynamic...
Read more >Auto-Rig — AutoRigPro Doc documentation
The character model must be in the center of the world (0,0,0) ... This part of the documentation covers the Human rig only,...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I have roughly looked for usage of
getPose
on GitHub and I could find a sample, it manually removes positions though 😩 I guess I can safely change the behavior. Let me do this. Thanks a lot for the issue, @JLChnToZ ! Let me notify once it gets updated.whoa, I didn’t expected
getPose
returns positions and rotations of each bone without taking a diff from its rest pose. It’s not working as intended. I want to fix this. Let me check whether we have a lot of user of the function or not.