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

What CLI options did you exactly use to create the media/bin/*.ozz animations from FBX files? #151

Closed osdeverr closed 2 years ago

osdeverr commented 2 years ago

I'm trying to modify the default pab_walk animation to make the character "walk in place" instead of moving forward. However, the fbx2ozz tool seems to output a bunch of separate files instead of one big .ozz like in this repo.

Command line used: .\fbx2ozz.exe --file="<PATH>\AnimSrc\walk_fixed2.fbx" # The file is pretty identical to media/fbx/pab/walk.fbx in the repo

Resulting files: image

fbx2ozz tool output: https://gist.github.com/osdeverr/76ada6d19c99b9ba3098250450cf580c

Do I need to use some specific command-line options to make it output one .ozz, or can I just concatenate all the resulting files manually and get the same result? Thanks in advance!

guillaumeblanc commented 2 years ago

Hi,

the default configuration (which is in json, not CLI) should be ok for your use case. That's how this animation used to be imported for ozz samples.

Looking at the log, it seems that your fbx file contains many animations, whose are exported on by one, as expected from the default config:

So I assume you did a change from the original walk.fbx that led to this situation. I think that you'll notice the same thing if you open your fbx file with a fbx viewer. Don't hesitate to share your file if anyone wants to test.

Hope it helps, Guillaume

guillaumeblanc commented 2 years ago

Any update or progress ?

osdeverr commented 2 years ago

Oh, sorry for the silence. It was indeed my fault, IIRC I've exported the animations improperly. Apologies!

guillaumeblanc commented 2 years ago

No worries, good to hear it's solved.