A detailed tutorial about clothes
- Step 1. Prepare the proxy tailored for a base template
- Step 2. Load the proxy and use it on any derived character
- Dealing with skin intersection and proxy deformations
- Edit/remove the fitting
The proxy usage consists of two steps:
- Prepare the proxy tailored for a base template and save it.
- Load the proxy and use it on any derived character.
1. Open the "Utilities" in the after-creation section of the lab.
2. Select a base template and load it with the "Import template" button. In this example the caucasian female template was loaded.
3. Import the clothes mesh (or model a new one from scratch). For this tutorial a standard Wavefront obj was imported, but you can use any format and any import technique supported by Blender. The algorithm handles both triangles and quads topologies.
4. Manually fit the proxy to character, with the usual Blender techniques (scale, rotate, edit of verts, etc). One of the best tool to do this is using the Blender Proportional Edit brush.
If you prefer, as alternative way, you can export the base template and fit the proxy upon it using an external software. In this case you can skip steps (3) and (4).
5. Put the tailored cloth in your proxy library folder, saving it as blend file or exporting it in another 3D format, as you prefer. With the lab proxy tools, it will automatically fit all characters created upon the chosen base template (caucasian female, in this example).
Scenario: you have a finalized character created with the lab, derived from caucasian female and you want to fit a proxy on it. You have not altered the topology of the character.
For this example, as benchmark, a very muscular character derived from the caucasian base was used. Since the very different shape of surface, it offers an example for all typical problems that can happen during the proxy fitting.
To make the benchmark even more extreme, a proxy with a skirt was used, that's the most difficult case, since there is not a direct relation between body and proxy. Trousers would be simpler since the algorithm can easily recognize what part of the proxy must be linked with the right thigh and what part must be linked with left tight.
Selecting both the proxy object and the character, the "Proxy fitting" section will show the fitting tools: the parameters "Offset" and "Influence", the option "Add mask vertgroup" and the buttons "Fit proxy" and "Remove fitting".
All the proxy tools are explained in this tutorial, anyway they are very intuitive and the basic fitting process in most of cases is very simple:
- Import or append the proxy.
- Select both character and proxy.
- Press the "Fit proxy" button. Done!
Only in case of deformations or skin intersection you will need to play with the options and parameters, as explained in the next part of the tutorial.
As said, the benchmark proxy used in this tutorial will show you all the possible problems that can occur during the process. Infact, after the first fitting, it shows a distorsion problem in the center of the skirt.
It can be solved with the "Influence" parameter, that controls the "magnetic attraction" of the skin. In this example the value was modified from the default 500 to a lower value of 20, and the deformation gone. This parameter works at best when the character is in rest pose (The whole proxy tool is optimized to fit the clothes in rest poses, but it usually works good enough for other poses too).
Now that the deformation is fixed, the benchmark shows another "classic" problem: the surface intersection that created "holes" in the proxy.
The proxy system has two tools to handle the problems of skin intersection: the offset parameter and the vertices mask.
The offset is an intuitive parameter that increases the distance between the surface of the skin and the surface of proxy. In this example it was used an offset of 3.72 instead of the default 0.00. Pressing the fit button again with this value we notice that most of intersections gone, but in this hard benchmark case there is still a visible intersection around the breast.
The vertices mask is a very powerful tool that solves practically all intersection problems that can't be fixed with the offset. It creates a new verts group "mbastlab_mask" that contains all body vertices that are too close to the proxy. Then it adds a new mask modifier (a standard Blender modifier) to the character stack that hides all vertices in this group.
Pressing "Fit proxy" again, after enabled the "add mask vertgroup" option, will completely fix the holes.
If you remove the clothes you will notice that the part of body closer to the proxy is hidden.
Anyway it's just a non-destructive modifier: you can always enable/disable it, or even edit manually the vertices in the "mbastlab_mask" group, to improve the mask.
After the fitting process, if you try to enter in edit mode and manually move the proxy vertices, you will notice that they are "locked". This happens because you are trying to edit a basis shapekey.
When a proxy is fitted to the body, the lab creates automatically two shapekeys:
- The "Basis" to store the original shape of the proxy.
- The "mbastlab_proxyfit" to store the current fitted shape of the proxy.
As usual the shapekeys are listed in the Blender property panel, data tab:
So, if you want to manually adjust the fitting, you have to select the proxyfit shapekey and then proceed with the regular edit mode.
In case you want to edit the basis key, you have first to remove all the keys, pressing the lab button "Remove fitting". Alternatively you can remove the keys manually directly from the Blender panel, but you have to remember to delete them in this order: first the proxyfit and then the basis.