sebastianstarke / AI4Animation

Bringing Characters to Life with Computer Brains in Unity
7.86k stars 1.06k forks source link

How do I add my custom animations for training? #63

Closed Elie-1996 closed 1 year ago

Elie-1996 commented 3 years ago

Is there any guide on importing? I know it is under AI4Animation->FBX Importer. (for example) but how should the files look like? What do I put in those boxes? When I import, where will all the scene and animation files be?

Thanks

sebastianstarke commented 3 years ago

Hi there, the FBX importer works a bit different than the BVH importer.

For the BVH importer, one would just need to specify the path where the source data is saved (i.e. the raw .bvh files), and specify the local asset path inside Unity where the imported files should be saved.

For the FBX importer, it is necessary to first drag&drop the source FBX files into Unity, and then specify the path to this local folder in the FBX importer and where the re-processed files shall be saved. The FBX files can be deleted again afterwards.

Note that all imported assets in the AI4Animation framework will be in form of MotionAsset types deriving from ScriptableObject, which enables them to be loaded by the MotionEditor for further processing or labeling.

Let me know if that helps or if any other questions! (PS: This is for the source code of the 2020 project)

Elie-1996 commented 3 years ago

Thank you for the quick response, I will attempt this soon and update!

Elie-1996 commented 3 years ago

Hi Again, I animated a dummy object in Maya and exported as FBX. I'm trying to import this into Unity but nothing is happening.

image

Did I miss a step?

Also, one more question - can this animation somehow become training data by importing it into Unity or will I have to provide the animation manually?