guillaumeblanc / ozz-animation

Open source c++ skeletal animation library and toolset
http://guillaumeblanc.github.io/ozz-animation/
Other
2.46k stars 302 forks source link

how to view bvh animation? #149

Closed lucasjinreal closed 1 year ago

lucasjinreal commented 2 years ago

how to view bvh animation?

guillaumeblanc commented 2 years ago

Hi,

do you mean Biovision bvh files? I though fbx sdk was supporting it, but I can't find it in the doc anymore. Have you tried importing a bvh file with fbx2ozz?

Otherwise, if you can't convert the file to a supported format, you'll need to import them yourself. You can inspire from the how-to to build ozz data, or overload ozz importer.

Cheers, Guillaume

lucasjinreal commented 2 years ago

@guillaumeblanc thank u! I don't want code myself, I just want a viewer which can visualize my bvh (which is an animtation of human walk), and show as keypoints (or human mesh), does ozz able to do it?

guillaumeblanc commented 2 years ago

Hi,

ozz will support it if fbx sdk supports it. You can try to call fbx2ozz with your bvh file and see if it works.

Don't hesitate to provide your bvh file for a test.

Hope it helps, Guillaume

astaranowicz commented 2 years ago

@guillaumeblanc I have bvh files, and ozz seems to convert the files pretty easy. However, loading the same file in Blender vs Ozz. The scale is totally different. Is Ozz scaling up or down the animation, even on playback? What's the grid size of the scene that Ozz defaults to, i.e., 1 meter squares?

blender_vs_ozz .

guillaumeblanc commented 2 years ago

Hi,

ozz is not scaling up or down.

fbx2ozz is responsible of converting from input file coordinate system/unit to ozz, relying on fbxsdk API to query input file coordinate system. I don't know though if bhv files carry a coordinate system / unit information, so it's possible that blender just uses its own setting (1 unit = 1 inch, or 1 meter?).

The size of a cell of the grid in ozz sample is 1m indeed.

Hope it helps, Guillaume

guillaumeblanc commented 2 years ago

Hi,

did you get the answers you needed ? Is the topic closed ?

Cheers, Guillaume

ib00 commented 2 years ago

Has anybody written a direct ozz importer for BVH animations?