[Unity game development tutorial] Unity+Umotion Pro+VRoid+Blender makes character models and animations, and simply makes two-dimensional character animations in unity

foreword

Hello everyone! This tutorial teaches you to make two-dimensional character models and animations in unity

0. Environment preparation

1. Download VRoid Studio

1. Search for VRoid Studio and download it, or go to the official website of VRoid.
VRoid Studio is a 3D character modeling software developed by pixiv. The main feature of VRoid is to model characters in a way similar to painting, making it easier for people Create your own virtual character.
insert image description here

2. The plug-in download recommends the VRoid plug-in VRoid Chinese plug-in of a certain site Supper 97

2. Download Umotion Pro

1. Go to the Unity resource store to download, link: UMotion Pro - Animation Editor
2. You can download the free version of Umotion link: UMotion Community - Animation Editor
3. Free UMotion can create animations, but it does not support editing Fbx files of existing animations, Umotion The Pro plug-in can edit model characters and generic animations in unity, and supports exporting animation clips

3. Mixamo website

The website contains more than 2,500 high-quality character model animations, link: Mixamo
Mixmo import Unity tutorial, recommend a site IGBeginner0116 master tutorial Mixamo import Unity

4. Blender vrm and cats plug-in download

Download the VRM_Addon_for_Blender plug-in, link: blender vrm import plug-in
link: cats plug-in
(install blender plug-in, search by yourself)

5. Unity UniVRM plug-in download (github)

Let unity recognize glb and vrm files, download the UniVRM plug-in, link: UnVim

1. Positive film

1.1 Import the VRoid model into unity and let it display normally

1. Open VRoid and select the official instance

insert image description here

2. Directly export the model

insert image description here

3. Reduce materials

When it is convenient to import into unity, re-select the material, click to reduce the material, and wait for a while
insert image description here

4. Open blender to import the vrm model just now

1. Download the VRM_Addon_for_Blender plug-in, link: blender vrm import plug-in
link: cats plug-ininsert image description here

5. Export fbx file

insert image description here

6. Import the fbx model into unity, and the model becomes a white model

This is because the material system of fbx exported by blender is not compatible with the fbx material system of unity.
insert image description here
How to solve the problem of material loss? Copy the vrm model exported in VRoid, rename xxx.glb
Why not directly import the vrm file exported by VRoid into unity, although the vrm file can use the plug-in UniVRM to perfectly generate a series of files such as prefab, but when using the umotion plug-in, umotion needs to use the Avatar generated by unity, and the Avatar generated by UniVRM cannot be dragged Enter umotion.

insert image description here
7. Let unity recognize the glb file
Download the UniVRM plug-in, link: UnVim
insert image description here
imports
insert image description here
the glb file to unity at this time, the display is normal, and then the material is advanced, that is, the material in the original glb file is extracted separately
insert image description here

Assign the material extracted by glb to fbx insert image description here
. At this time, the model will display normally.insert image description here

2. Make an animation

1 Import umotion and open the editing window

If you don’t know how to use umotion, please refer to this big video
Recommend umotion tutorial, a website link: maple 2
insert image description here
interface layout
insert image description here

2. Change the animation type of imported fbx

Click Apply to complete, and unity will generate Avatar
insert image description here

3. Add the Animatior component to the node

insert image description here

2. Create a new project file in umotion

insert image description here
3. Drag the node into Pose Editor
insert image description here

4. In this way, you can make a two-dimensional animation

If you don’t know how to use umotion, please refer to this big video
Recommend umotion tutorial, link of a certain station: Maple 2

5. Animate mixamo to unity

Modify the model animation type,
insert image description here
drag the animation into the animator window,
insert image description here
and set the animation to play in a loop
insert image description here
, so that the animation can play normally

3. Summary

1. Umotion download
1.1 Go to the Unity resource store to download, Umotion Pro link: UMotion Pro - Animation Editor
1.2 can download the free version, Umotion link: UMotion Community - Animation Editor
2. Download the VRM_Addon_for_Blender plug-in, link: blender vrm import plug-in
link: cats plug-in
3. Let unity recognize the glb file, download the UniVRM plug-in, link: UnVim
4. If you have any questions, you can leave a message in the comment area

Guess you like

Origin blog.csdn.net/qq_58047420/article/details/129674085