Play digital human (Avatar) on Unity

Now digital humans are becoming more and more interesting, and many companies are doing it now, so I also want to play with Unity, how to play?

1. Digital human preparation and dancing animation

First of all, we need digital human resources. Where do digital human resources come from?

First, you can go directly to the Unity assetstore to search for free digital humans. There are 2 good resources.

The second can be made by yourself, open the URL https://vrchat.readyplayer.me/avatar

Upload a picture to pinch your face and make your own avatar. The following is what I made based on Guan Xiaotong. Does it look very different? This website is more European-style, and many materials are very European-style, so I hope that there is a Chinese face-pinching Avatar that can be tried.

After pinching the face, you can download the fbx file.

Well, the avatar is ready, next we have to prepare the animation, let's make a dancing animation. Open URL:

https://www.mixamo.com/#/ , this website provides a lot of well-made animations, all of which are free, you only need to register and log in.

The avatar is ready, the animation is ready, and then it needs to run in Unity. We import the downloaded avatar fbx file and animation fbx file into Unity.

2. Import into Unity

After importing into Unity, some properties need to be modified to display normally.

In the Materials property, modify the Location to Use External Materials (Legacy), and change the Naming to Model Name + Models Material. Click Apply.

In Rig, change the Animation Type to Humanoid, and click Apply.

 The fbx of the animation is also modified. Added to the Scene scene, as shown in the figure, it can be displayed normally.

 3. Binding animation

First, we create an Animator Controller. In the Porject directory interface, right-click ->Create->Animator Controller.

Double-click Dance Animator Controller to open the Animator editing interface. Then we open the fbx of our animation, select the animation mixamo.com, and drag it to the Animator editing interface.

 In the Animator editing interface, click mixamo_com, on the Inspetor on the right, select Loop Time, Loop Pose, the animation can be played in a loop, and click Apply.

 The last step is to bind our Animator Controller to the digital human. Drag the Dance Animator Controller onto the Controller on the digital human.

 final result

Guess you like

Origin blog.csdn.net/grace_yi/article/details/125072726