Game character download—Pmx model converted to Fbx and used in Unity

Install Blender

Blender official website

Click on the LTS version Insert image description here
and select the official download address Insert image description here
. Select the 2.83LTS version. Versions after 3.0 will have texture errors. After
Insert image description here
downloading, install it all the way. Open it after installation.Language selection Chinese

Download and install the Cats plug-in

Cats plug-in Git address
Downloaded compressed package
Insert image description here
Open Blender, click Edit-Preferences
Insert image description here
Click: Plug-in-Installation
Insert image description here
Select the downloaded Zip file,
Insert image description here
open the Preferences-Plugin again after the installation is complete, and check ==3D View: Cats Blender Plugin = =
Insert image description here
After enabling it, you can open the plug-in panel on the right side of the main interface.
Insert image description here
Insert image description here

Download model resources

MMD model download website - Model House
This website can download many announced games and CG models (Not for commercial use)
Insert image description here
The downloaded model Zip file is decompressed into a .pmx file.Insert image description here

Model format conversion

Open Blender, open the Cats panel, clickImport Model
Insert image description here
Select the unzipped pmx file and click Import
to import it. It will look like this. There are only bones and no materials.
Insert image description here
ClickMiscellaneous-ShadelessYou can see the material.
Insert image description here
The bone model is not available at this time.
Insert image description here
ClickCATS–Fix ModelWait for the plug-in operation to complete.
Insert image description here
After the plug-in is processed, the bone names will be modified and redundant bones will be removed.
Insert image description here
ClickExport ModelExport OBJ file
Insert image description here

Import into Unity

Open the new folder in Unity and import the exported Obj file into Unity.
The texture files in Tex are also copied to Unity.
Insert image description here
Create a new Material folder and create a corresponding material ball according to the number of materials in the model.
Shader selects Unlit/Texture by default. Select the corresponding Tex image for the texture of the material ball (if it is wrong, try another image).
Insert image description here
Click Model-Materials, drag the corresponding material ball in, and then Apply.
If the texture is wrong, change the texture yourself.
Insert image description here

Model skeleton operation

  1. Click on the model file
  2. OpenRig
  3. Model type changed to Humanoid
  4. Bone dependency selectionCreate From ThisModel
  5. Apply Apply changes
    Insert image description here
    and the human skeleton is created.
    Insert image description here
    Model action download website Mixamo

Copy the downloaded action file with the skeleton model into Unity
and open the model file
. Modify all the bone types of the model file toHumanoid
Insert image description here
Create a new animation machine Animator and set the action file into it.
Insert image description here
Drag the character model into the scene, add the Animator component, and drag the created animation machine into the component.
Insert image description here
Cancel Apply Root Motion to cancel the model displacement effect that comes with the animation.
You can see it after running. result
Insert image description here

Guess you like

Origin blog.csdn.net/the_vnas/article/details/131941539