JLPM22 / MotionMatching

Motion Matching implementation for Unity
https://jlpm22.github.io/motionmatching-docs
MIT License
386 stars 40 forks source link

animation issue with different mocap data #3

Closed rainstophan closed 10 months ago

rainstophan commented 10 months ago

Hi, I kept the same setting and test it with different mocap data. It ended up look like this. Do you know the possible reason?😅

Screenshot 2023-12-11 at 13 56 25 Screenshot 2023-12-11 at 13 57 08
JLPM22 commented 10 months ago

Hi!

When changing the mocap there are some settings in the MMData that should be changed. That is, the animation with tpose, the SkeletonToMecanim mapping, and from the images it looks like the Hips forward and up vectors should be updated as well. These vectors should be from the .bvh skeleton.

More information: https://jlpm22.github.io/motionmatching-docs/basics/animation_database/

Feel free to send me the .bvh file if you want me to take a look :)

rainstophan commented 10 months ago

Thanks for your kind response.😊 Below are the files I tested. subject1_tpose.bvh.txt walk1_subject1.bvh.txt

Hi!

When changing the mocap there are some settings in the MMData that should be changed. That is, the animation with tpose, the SkeletonToMecanim mapping, and from the images it looks like the Hips forward and up vectors should be updated as well. These vectors should be from the .bvh skeleton.

More information: https://jlpm22.github.io/motionmatching-docs/basics/animation_database/

Feel free to send me the .bvh file if you want me to take a look :)

JLPM22 commented 10 months ago

Hi!

I think with this configuration, it should work! I just tried it: image

Remember to click Generate Databases again!

I guess the problem was the definition of the local hips vectors. For the next version of the package, I'll try to make a process to automatically compute these vectors to facilitate the incorporation of new motion capture data :)

Let me know if it works or there are any further problems!

rainstophan commented 10 months ago

Thx It works! Wait for your wonderful work~