emilianavt / BVHTools

BVH Tools for Unity
Other
207 stars 27 forks source link

BVH file import #8

Open jhlee0918 opened 3 years ago

jhlee0918 commented 3 years ago

I imported the motion-captured file I shot myself, It is distorted and played as shown in the picture below. I want to know if there are any mistakes I made.

The bvh file that I have can be played directly in OpenGL without special editing. image

When played in Unity, it plays as follows. image

emilianavt commented 3 years ago

This issue can occur when the model the BVH is applied to does not have identical bone rotations in its rest pose as when the file was recorded as. I haven't found a good solution yet.

jhlee0918 commented 3 years ago

Thank you for answering. I use new avatar that fits perfectly in my bvh file, can it give good results?

emilianavt commented 3 years ago

I think it should work.

LazyLanGouDog commented 1 year ago

Hello!I have encountered the same problem. Have you resolved it?

jhlee0918 commented 1 year ago

@LazyLanGouDog It's been a few years, so I don't remember exactly, but I solved it by correcting the coordinate system. GL.

LazyLanGouDog commented 1 year ago

Thank you for your reply!

LazyLanGouDog commented 1 year ago

Sorry to bother you, I am a novice. I have another question. In addition to correcting the coordinate system, do I need to ensure that the BVH file and the character model's rest pose are consistent?

LazyLanGouDog commented 1 year ago

@LazyLanGouDog It's been a few years, so I don't remember exactly, but I solved it by correcting the coordinate system. GL.

Thank you very much. Following your prompt, I have now successfully resolved the issue!Thanks you!

jhlee0918 commented 1 year ago

@LazyLanGouDog Sorry for late reply. I'm glad you solved it. I wish you a nice day.