Use Unity to do animation segmentation
Last updated
Last updated
Background
I believe everyone will be very familiar with the animation in some models. All the animations of this model will be made into an animation file, Take 001.
Facing this kind of animation, we need to cut and name the animation when Kivicube plays the corresponding action.
If you are not familiar with Maya or 3DMax's animation cutting tools, you can also use unity to do animation cutting. This method is very practical for users who are not familiar with gltf animation cutting and exporting process!
Drag the animated FBX into the unity Project panel, click its animation file icon, and set it as follows in the Inspector:
Then click Animation, set up and add animation in the Clips panel
Select different animations, name them, and set the number of frames from one frame to another frame!
If the settings are correct, click play to check! Pay attention to the animation of the time edge during the process, and then click Apply to complete the cutting and setting.
Create a new empty object in unity, name it the animation name, and drag the fbx model file below its child node
Add the Animaions control (Component) for the empty object, and assign the animation to it.
At this time the whole scene is like this
Select Wolf-run and open the Animation panel, you will see that the corresponding animation is yellow!
Because the node of its animation obtains the child object b_Root, and the scene structure at this time, the child object of the animations name is added to the child object of wolf-run, so it is necessary to manually add the parent node of b_Root to its animation file, animations.
Here you need to select the animation that needs to be adjusted. The animation of wolf-run is the cut out of the run animation, so Preview needs to select the option as shown below:
Then select its child object, click enter, the name will become editable, at this time enter the name animations/ of the parent object b_Root to complete the editing.
Then press Enter and you will find that the yellow Missing prompt becomes normal! Congratulations on your successful editing. You have learned how to cut and separate a single animation file through unity. Traverse all animation nodes in this way!
Click the file you want to export in Hierarchy, click gltf export, export reference tutorial:
Upload the exported model to the Kivicube platform
You will find the animation of the little wolf dog model, with the animation you cut!
We can click to test the playback of different animations, which can be experienced here.