-
Notifications
You must be signed in to change notification settings - Fork 2
Unity‐chan Costume Tutorial
In this tutorial, we will fit the Unity-Chan! Sunny Side Up model for use on female characters.
By the end of this tutorial, this what we will have in-game as a Cobalt mod.
You will need to have these programs installed.
- Blender, for the 3D modeling portion.
- Robust Weight Transfer, a Blender plugin, for the 3D modeling portion.
- Unity, for the building portion.
- An Engage female base body.
- The Unity Chan costume files.
Open the Engage female base body file by double-clicking on it.
This is what it should look like right after it opens in Blender.
You can move the camera by doing (this).
In the upper right corner, you should see a (box). Click on it to quickly change directions.
Drag-and-drop the unity chan FBX you downloaded into Blender.
You should see a dialog box that looks like this. Click Import FBX.
You will notice that it drops right on top of the base body, but none of the clothing fits very well. We will fit the pieces one at a time.
We will start by hiding all the clothing other than the shirt. To hide an object, click the Eye icon next to the object in the viewer.
Your viewport should look like this now, with only the body and the shirt showing.
The shirt isn't a great fit right now. It's a floating over the base body, and is a bit big.
First, make sure the hoodie is selected by left clicking on it. Now, click the -Y in the upper right corner until you're looking at her straight on.
In Blender, we can move objects by pressing the G key, and then moving the mouse. To remember this, we can think of G as standing for Grab.
Now, press the G key and move it down a bit so it's on the body. Click to confirm the movement. You will notice that it's tricky to move things in a straight line.
Use the Esc key to cancel this movement. If you already clicked the left mouse button, use Control/Command Z to undo this placement. Let's try a better way to move the shirt.
This time, press the G key, followed by the Z key. You will see something like this. If you move the mouse now, the movement will be constrained to the Z axis (up and down). The same feature is available with Y and Z for the corresponding axes.
The scene should look something like this now.
Move the costume down and left click to confirm the placement.
Let's check how well the costume is fitting now. Use the (mouse option) and the (upper right box option) to observe the fit.
While it's in a better position, it seems a bit big right now still.
In Blender, we can scale objects by pressing the S key, and then moving the mouse. To remember this, we can think of S as standing for Scale.
With the shirt still selected, press the S key and move your mouse. You will notice that it is getting smaller, but is also moving in a strange way. That is because the origin point for this object is somewhere down near the ground. Undo your scaling if you applied it.
In the menu, choose (the option for this)(Origin to Geometry). This will move the origin to a more sensible place.
Now try using the S key again, and scale the shirt to fit better. You can also move it with G if you need to.
The shirt should look something like this now. Don't worry that the shirt isn't perfectly covering her torso, because the hoodie covers the rest of the upper body.
Use the eye icon and hide the shirt and show the body.
The hoodie isn't a great fit right now. It's a floating over the base body, and is a bit big in certain parts.
We see that parts of the body are clipping out of the hoodie, and there are parts that are pretty loose over the body.
Use the G key to move the costume into a better place.
You should end up with something like this.
Notice that the base body is clipping out a bit in the rear. However, if we try to move the hoodie to fix this, other parts will now clip.
We will need to edit the shape of the hoodie to better match the base body.
In the upper left corner, there is a button that looks like (this). Object mode is used to manipulate objects as a whole, and edit mode is used to edit the vertices that make up the object.
Make sure that the hoodie is selected, and click on Object Mode, then select Edit mode.
The view will look like this now. If it doesn't, double check that you weren't selecting the base body when switching to object mode.
The same G key we used to move the hoodie can be used to move the hoodie vertices as well.
Select a vertex like this and then use G to move it. Notice that now the shape of the hoodie has changed. Click to confirm the movement.
This is a step in the right direction, but there are many vertices and it would take a lot of time to move each one of the individually.
Undo this change for now.
In the upper (bar), there is a tool called (proportional something). Click on it. Now, select the same vertex by clicking on it, and move it again with G. Scroll your mouse wheel, and you will see a circle changing sizes. This is the sphere of influence for the proportional something. You can try moving it around to get a feel for it.
Once you find a good place, click to confirm it.
Your costume should look something like this now. Use the camera controls to take a look at our work.
You will notice that while we fixed one side of the hoodie, the other side is still sticking out. While we could use the same method we did just above, there is a better way.
Undo this change for now.
The Unity-chan costume was created in a way that is mirrored, meaning the left and right sides are symmetrical with the same vertices, just flipped.
Use (this button) to turn on symmetry.
Now, we can try to fix the clipping again. Click on one on the vertices with proportional editing on, and use the G key.
You will notice that the opposite side moves together now.
Place it in a position like this and confirm it.
The sides here are a little loose.
While we could move a few vertices to get this to fit better,
First, draw a box around a few of vertices on the side. If this doesn't work for you, check that you have the (tool) selected on the left hand side.
With a few vertices selected, use the G key to move the vertices into place like this.
It should look like this now.
Now, turn on the shirt again. You may notice that it clips out of the hoodie in some places. To edit the mesh for an object, you must first chose Object mode, then click the piece you want, then click edit mode.
Using the techniques we went over above, get the costume fitting something like this and to your liking:
Now,
--- do all the steps needed to enter animation posing mode ---
And, we will see that the costume is not moving with the body, but is just floating in place. A few things are needed before they will move with the body.
Armature explanation and the modifier
Animation still doesn't do anything
Animation now works.
Introduce the command/control click, cut the pants from the model, try to get it to fit, then weight transfer again.
Unity setup.
Lythos, the Engage modding Wiki • Resources • Getting Started • Cobalt Wiki * Discord Server
Getting Started
Modding guides
- Game data
- Models and Unity
- Animations
- Audio
-
Maps
- Dumping Vanilla Maps
- Playable Area
- MapSetting
-
Terrain
- Terrainpaint
- Props
- CameraSet
- Exporting
-
LightSet
- Lightmaps & Environmental Lighting
- PostProcessSet
- Post-Battle Exploration
- HubRoot
- HubCollision
Documentation