sebastianstarke / AI4Animation

Bringing Characters to Life with Computer Brains in Unity
7.41k stars 1.03k forks source link

Porting animations to other engines #96

Closed GeroVeni closed 1 year ago

GeroVeni commented 1 year ago

This is probably not the right place to post this, but I am not sure where else to do so.

I would like to try and port the animations to a different engine than Unity (e.g. Godot) but I am not sure where to start looking. Which is the main bit of code that translates the trained neural net to the actual skeletal animations ?

paulstarke commented 1 year ago

Hello, if you are looking to implement the runtime process of this framework into another engine, I recommend to inspect all the components and classes that are used in the controller such as phase-, contact- and rootseries. The pose update of the network is operating on the Actor.cs script.

If you just want to record the generated motion of the skeleton, you can use Unity's in-build recorder (https://unitytech.github.io/unity-recorder/manual/index.html) and export/save the animation as .fbx file. You could use this animation file then for other animation systems or engines as an input.