question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

model.humanoid.setPose(model.humanoid.restPose) Bug?

See original GitHub issue

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, the model is getting weird. image

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:closed
  • Created 3 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
0b5vrcommented, Oct 19, 2020

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.

1reaction
0b5vrcommented, Oct 19, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found