sebastianstarke / AI4Animation

Bringing Characters to Life with Computer Brains in Unity
7.39k stars 1.02k forks source link

SIGGRAPH 2017 How to use a custom character? #115

Open wkwan opened 1 year ago

wkwan commented 1 year ago

Hi,

I'm trying to setup humanoid animations for my own character based on the SIGGRAPH 2017 Unity Adam demo. I tried to use the same Components and variable values in the Inspector as the Adam character but the result is that my character gets all contorted:

contorted-character

Any pointers on how to do this? I'm guessing a problem could be that my character rig is different from the demo character's rig. If so, does my character rig need to be exactly the same as the demo character's rig in order to use the pretrained NN, or is their a way to adapt the NN to my rig? Or do I need to train my own model using data that matches my rig?

BrunoCunhaTeixeira commented 1 year ago

I worked with the original demo for a while and had the same problem (see #107 ). My guess is that the rotations calculated by the model are only usable with the original rig, since each joint already has a certain basic rotation.

I could only solve my problem to a limited extent by skinning my custom mesh onto the original rig. However, this is not the ideal solution because the rig is not suitable for all meshes.