<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://www.makehumancommunity.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Mtknife</id>
		<title>MakeHuman Community Wiki - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="http://www.makehumancommunity.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Mtknife"/>
		<link rel="alternate" type="text/html" href="http://www.makehumancommunity.org/wiki/Special:Contributions/Mtknife"/>
		<updated>2026-04-19T16:38:47Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.25.1</generator>

	<entry>
		<id>http://www.makehumancommunity.org/w/index.php?title=Documentation:ClothesV2&amp;diff=1886</id>
		<title>Documentation:ClothesV2</title>
		<link rel="alternate" type="text/html" href="http://www.makehumancommunity.org/w/index.php?title=Documentation:ClothesV2&amp;diff=1886"/>
				<updated>2020-09-28T03:12:43Z</updated>
		
		<summary type="html">&lt;p&gt;Mtknife: /* Limits */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Caution: this file is still under construction :)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Makeclothes Version 2 =&lt;br /&gt;
&lt;br /&gt;
[[File:makeclothestitle.jpg]]&lt;br /&gt;
&lt;br /&gt;
MakeClothes2 is used to create clothes for MakeHuman characters. It could be installed as a single plugin, but at least MakeSkin should be used, if the creation of material is also part of your work. Furthermore it is able to work with the human base mesh provided by MPFB.&lt;br /&gt;
&lt;br /&gt;
The term &amp;quot;clothes&amp;quot; is not really correct, the program creates any kind of mesh which can be used for a character generated by MakeHuman. This also includes hair and different tongue or a new topology for the skin. To use MakeClothes in Blender knowledge of Blender itself is needed.&lt;br /&gt;
&lt;br /&gt;
== Notation ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To understand the process, a short summary of terms used in MakeHuman:&lt;br /&gt;
&lt;br /&gt;
* '''base mesh''' and '''helper mesh''': The base mesh is the standard body mesh including a helper-mesh used in MakeHuman.  ([[Documentation:Basemesh|detailed information]])&lt;br /&gt;
&lt;br /&gt;
* '''proxies''': in a way all meshes projected on the body are proxies. Do differentiate between a piece of cloth and an alternative mesh for the skin, the alternative mesh is called a '''topology'''.&lt;br /&gt;
&lt;br /&gt;
* '''topologies''': special case for a proxy used as a mesh for the skin. Typically used for e.g. a different resolution or to add genitals.&lt;br /&gt;
&lt;br /&gt;
* '''smoothing''': MakeHuman may use smoothing on a base mesh. This results in a mesh with 4 times as many vertices. &amp;lt;u&amp;gt;This mesh cannot be used for MakeClothes.&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''clothes''': clothes will be all meshes MakeClothes is able to create. Hair and body proxies included.&lt;br /&gt;
&lt;br /&gt;
* '''posing''': the standard &amp;quot;unposed&amp;quot; base mesh is presented in an A-Pose. Other poses are T-Pose or a pose which is user generated. Typically these poses are created with the standard skeleton. Shapekeys can be used as a special pose too.&lt;br /&gt;
&lt;br /&gt;
* '''weighting''': when a character is posed the skin but also the clothes should follow the bones. So weights are added to each vertex. These weights determine how much a bone will be followed. MakeClothes uses a similar construction, since the clothes follow vertices on the helper or base mesh.&lt;br /&gt;
&lt;br /&gt;
[[File:Mc2_meshes_to_use.png]]&lt;br /&gt;
&lt;br /&gt;
Only base mesh and helper can be used to create clothes.&lt;br /&gt;
&lt;br /&gt;
== Limits ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Makeclothes has certain limits according to the internal structure of MakeHuman&lt;br /&gt;
&lt;br /&gt;
* The mesh for the clothes can either be done with quads or with triangles. No mixture allowed. Advantage for quads is a smoother design with a later usage of subdivision surface algorithm (smoothing). Triangles are normally used for e.g. sculpting or when you work with 3rd party meshes.&lt;br /&gt;
&lt;br /&gt;
* only one material for one item of clothing is allowed in MakeHuman&lt;br /&gt;
&lt;br /&gt;
* each vertex of an item of clothing uses 3 vertices on body or helper to find its position according to the human created in MakeHuman&lt;br /&gt;
&lt;br /&gt;
* each vertex of an item of clothing needs to be in one (and only one) vertex group. A group of the same name must be created on the human&lt;br /&gt;
&lt;br /&gt;
* it is possible to create more than one item of clothing with one human&lt;br /&gt;
&lt;br /&gt;
* only one human is allowed when clothes are created. So only one object is &amp;quot;marked as human&amp;quot;. However, if you need more than one base mesh, all others can be marked as clothes&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Mc2_makeclothes2.png|right]]&lt;br /&gt;
&lt;br /&gt;
== How to load a human ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
MakeHuman uses a mesh called hm08. Makeclothes is prepared to deal with other meshes as well for future versions. When the mesh is changed it must be changed in MakeHuman as well. So this documentation will only consider the hm08 base mesh.&lt;br /&gt;
&lt;br /&gt;
To create clothes you can create them directly on the body or on the helper mesh. For underwear the nude body is best choice, but for a coat the helper mesh will be used. A good method for e.g. a skirt or coat is to design the piece of cloth on the nude body and then use the helper mesh for weighting in the end.&lt;br /&gt;
&lt;br /&gt;
There are currently a few possibilities to load a human. The simplest way is to load a predefined one or to use MPFB, both have some vertex-groups assigned:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Load a predefined human'''&lt;br /&gt;
&lt;br /&gt;
The easiest way directly supported by MakeClothes is to work with the predefined meshes. MakeClothes contains 2 Blend-files which are placed in the &amp;quot;humans&amp;quot; sub-directory of the plugin (male.blend and female.blend). When MakeClothes starts, these blend-files are scanned once and names of the objects starting with &amp;quot;mh_&amp;quot; are presented in a menu. To work with it, select a mesh and press &amp;quot;Import predefined human&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
[[File:Mc2_loadpredef.png]]&lt;br /&gt;
&lt;br /&gt;
In case of a helper mesh, the parts of the mesh are assigned to different vertex-groups to allow an easy selection and use different colors.&lt;br /&gt;
&lt;br /&gt;
After the mesh is loaded these buttons disappear, because one human is already loaded. The loaded mesh is automatically marked as a human. To load another human either delete the human or mark your human as clothes.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Load the human via MPFB'''&lt;br /&gt;
&lt;br /&gt;
Makehuman Plugin for Blender also can provide a base mesh. Be aware that the best base is an unmodified male or female mesh, because the clothes will fit most of the characters. Do not use alternative topologies in MakeHuman. If you import an human this is already the base mesh. It can be done easily by doing these steps:&lt;br /&gt;
&lt;br /&gt;
[[File:Mc2_loadhumanmfb.png]]&lt;br /&gt;
&lt;br /&gt;
The default preset of MakeClothes inside MPFB will mask the helper. It is possible, to switch the masking on or off. To do that, press the button marked in the illustration:&lt;br /&gt;
&lt;br /&gt;
[[File:Mc2_togglehelper.png]]&lt;br /&gt;
&lt;br /&gt;
Typically the helper will be switched off, when the clothes are modelled. When you assign the vertex groups you should switch it on, because it makes sense to use groups on the helper for the weighting. It is possible to extract clothes from the helper (even when masked) as long as it is not deleted.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Load normal base.obj file'''&lt;br /&gt;
This is the way using the predefined base.obj file which can be downloaded from github. MakeClothes reads the wavefront file. Vertex groups are created according to the .obj file. Disadvantage: this mesh is neither male nor female.&lt;br /&gt;
&lt;br /&gt;
An exported wavefront mesh made by MakeHuman can be used as well (no alternative topology such as male muscled mesh, do not use smoothing and delete the extra eyes). It is possible to export it including the helpers. Unfortunately it has no vertex groups assigned. This must be done in Blender later.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Load an mhx2 file'''&lt;br /&gt;
The body (no alternative topology, do not use smoothing and delete the extra eyes) used by mhx2 export can also be used as a base mesh. When you load it you have to select Override Exported Data and the mark Helper Geometry before importing it.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Delete helpers'''&lt;br /&gt;
&lt;br /&gt;
If a mesh is loaded and the helpers are not needed, the helpers can be deleted. In this case a vertex-group &amp;quot;body&amp;quot; is expected, all vertices belonging to other groups are deleted. If body is not available, nothing will be done.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Tell MakeClothes the type of the object ==&lt;br /&gt;
[[File:Mc2_customprops.png|right]]&lt;br /&gt;
&lt;br /&gt;
To create clothes, one object must be marked as human and at least one as clothes. If you work with more than one human, all others must be marked as clothes temporarily. When you mark one object as human a previously marked human will automatically be marked as clothes. The custom properties of the object will hold this information.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Create simple clothes (extract from helper) ==&lt;br /&gt;
&lt;br /&gt;
If a helper mesh is available it is possible to use this helper as a basis for the clothes. Especially for beginners (but also for the advanced for a good weighting) this could be helpful.&lt;br /&gt;
&lt;br /&gt;
[[File:MC2_extract_helpers.png]]&lt;br /&gt;
&lt;br /&gt;
The normal way would be to extract either &amp;quot;Tights&amp;quot; or &amp;quot;Skirt&amp;quot;. Extract means that a copy of a helper part is prepared for your work. The second step would then be to modify this geometry for your own purposes.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Assign vertex-groups ==&lt;br /&gt;
&lt;br /&gt;
Vertex-groups are a number of vertices of a mesh forming a group with vertex-group name. These groups are used to determine relations between e.g. vertices on the body and vertices on an item of clothing. The simplest way would be:&lt;br /&gt;
&lt;br /&gt;
* create a group &amp;quot;clothing&amp;quot; on the human&lt;br /&gt;
* assign all vertices of the human to this group&lt;br /&gt;
* create a group &amp;quot;clothing&amp;quot; on your item of clothing&lt;br /&gt;
* assign all vertices of the item of clothing to this group&lt;br /&gt;
&lt;br /&gt;
This might work, but it is not a good way. There are many risks. &lt;br /&gt;
&lt;br /&gt;
So here are examples from some of the assets I did: [[Documentation:MakeClothes Vertex-Groups|Create vertex-groups]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Test the human mesh ==&lt;br /&gt;
&lt;br /&gt;
The human loaded with one of the methods usually should not have problems. Nevertheless there is a small test available to check the human. This test is also automatically done when clothes are created.&lt;br /&gt;
&lt;br /&gt;
* the number of human objects must be one&lt;br /&gt;
* there must be one vertex group on the human&lt;br /&gt;
* no vertex belongs to an non-existing group&lt;br /&gt;
&lt;br /&gt;
[[File:Mc2_checkhuman.png]]&lt;br /&gt;
&lt;br /&gt;
== Test the clothes ==&lt;br /&gt;
&lt;br /&gt;
Clothes need a bit more testing.&lt;br /&gt;
&lt;br /&gt;
* clothes should not have stray geometry. These are single vertices or edges. If this problem appears, change into edit mode. The vertices are pre-selected. Simply delete them or change geometry otherwise.&lt;br /&gt;
&lt;br /&gt;
* maximum number of vertices per face is 4. If you have more than this, these faces are selected and must be changed.&lt;br /&gt;
&lt;br /&gt;
* clothes can be quad or triangle meshes. A mixture is not allowed. The process assumes a mesh type and selects the faces to be changed.&lt;br /&gt;
&lt;br /&gt;
* the process tests if at least one vertex group is available&lt;br /&gt;
&lt;br /&gt;
* all vertices must belong to one vertex group. Vertices belonging to no group are selected and can be changed in edit mode.&lt;br /&gt;
&lt;br /&gt;
* all vertices must belong to only one vertex group. Vertices belonging to more than one group are selected and can be changed in edit mode.&lt;br /&gt;
&lt;br /&gt;
* no vertex belongs to an non-existing group&lt;br /&gt;
&lt;br /&gt;
* a test is done, how many edges belong to one vertex. Typically quad meshes with a low pole-count will have better geometric qualities. This is only a warning. The vertices with more than 8 neighbor vertices will be selected and can be changed in edit mode.&lt;br /&gt;
&lt;br /&gt;
[[File:Mc2_checkclothes.png]]&lt;br /&gt;
&lt;br /&gt;
== Common settings ==&lt;br /&gt;
&lt;br /&gt;
The common settings will provide the '''license''' and the name of the '''author''', which will be used for all the clothes generated with this file.&lt;br /&gt;
&lt;br /&gt;
* '''Overwrite existing files''' is switched off. The name of the item of clothing is used as a filename. If it is necessary to overwrite an existing object, the box must be marked.&lt;br /&gt;
&lt;br /&gt;
* '''Modifiers are allowed'''. Typically the mirror modifier may make sense. Be careful with e.g. subdivision surface, because it may produce a huge number of vertices. When the clothes should be designed with subdivision surface but created without, switch off &amp;quot;Allow Modifiers&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Produce clothes ==&lt;br /&gt;
&lt;br /&gt;
The main features of creating clothes are:&lt;br /&gt;
&lt;br /&gt;
* '''name''': this is the name of the item of clothing, also the filename&lt;br /&gt;
&lt;br /&gt;
* '''comment''': a short optional description&lt;br /&gt;
&lt;br /&gt;
* '''tags''': a list of predefined and own tags as a search criteria for MakeHuman&lt;br /&gt;
&lt;br /&gt;
[[File:Mc2_tagselector.png]]&lt;br /&gt;
&lt;br /&gt;
* '''zdepth''': determines the order of clothes. Lower values are used for clothes near the body, higher values for parts far away. This will be used to hide clothes near the body. A rule of thumb is to start with underwear at 31; normal clothes (pants, t-shirt, shoes) use a default value of 50 and clothes like a coat usually use high values like 63. The following illustration shows the effect for a character equipped with ballet clothes. It also demonstrates what is happening when all values are equal.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Mc2_zdepth.png]]&lt;br /&gt;
&lt;br /&gt;
* '''scaling''': select the part of the body which is important for the scaling. Most likely torso for a t-shirt, head for a hat etc.&lt;br /&gt;
&lt;br /&gt;
* '''delete-group''': it is a good method to delete vertices on the body if clothes are not transparent. This avoids bleeding through, that is, that vertices that should be &amp;quot;inside&amp;quot; suddenly appear outside of the clothes (see: [[Documentation:MakeClothes Delete-Groups|use delete-groups]]). All vertices not to be displayed should be selected on the body (not helper) and assigned to a vertex on the human. The name of this group must be inserted in the box. If more than one piece of cloth is created, they all can have a different delete-group on the same human.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''use MakeSkin''': without MakeSkin a simple material is saved for the piece of cloth (white base color). Otherwise the material file of the plugin [[Documentation:MaterialsMakeSkin|MakeSkin]] is used. See &amp;quot;Materials&amp;quot; below.&lt;br /&gt;
&lt;br /&gt;
* '''subdir''': the directory inside where the clothes will be created.&lt;br /&gt;
&lt;br /&gt;
== Materials ==&lt;br /&gt;
&lt;br /&gt;
Most of the clothes will need a texture. Before the texture can be used the piece of cloth must be unwrapped. The best way is to create seams in Blender where the real seams are.&lt;br /&gt;
&lt;br /&gt;
Unwrap the clothes in any case. The output of this process is a UV-Map, which will be used to determine the coordinates of each vertex on the texture.&lt;br /&gt;
&lt;br /&gt;
If the simple standard material should not be used for export, a material can be attached with [[Documentation:MaterialsMakeSkin|MakeSkin]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;will be changed later with some advice how to do good textures etc.&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Creating of own clothes ==&lt;br /&gt;
&lt;br /&gt;
To create clothes select the item of clothing and press produce clothes. The tests &amp;quot;check clothes&amp;quot; and &amp;quot;check human&amp;quot; are processed and also an additional test about matching vertex groups is done. If everything is okay, the clothes can be loaded in MakeHuman.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;will contain a lot of tips &amp;amp; tricks later&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Usage of shape keys and targets, create heels ==&lt;br /&gt;
&lt;br /&gt;
A special female body with shape keys is added as a predefined mesh to allow creation of heels. For advanced users: [[Documentation:CreateHeels|this is the way it works]]&lt;br /&gt;
&lt;br /&gt;
== Importing existing clothes ==&lt;br /&gt;
&lt;br /&gt;
It is possible to load an existing mhclo-file from the data folder of MakeHuman. It's best to load the human mesh before, if you want to change geometry. The clothes will also fit to a different body, but in this case they will not look as good as on the body they were made for. But the advantage is that, e.g., clothes created for males can be used as a base for a female version.&lt;br /&gt;
&lt;br /&gt;
When clothes are imported, most of fields are filled in by the process and the delete-group is marked on the human (in case a human is available).&lt;br /&gt;
&lt;br /&gt;
The material is also loaded, when MakeSkin is available. The illustration shows the result of the import of the &amp;quot;lace_up_blouse&amp;quot;. A material called &amp;quot;lace_up_blouse&amp;quot; was created in blender. All available information is imported and displayed. This includes the special parameters only used in MakeHuman (Backface culling, Transparent, LitSphere etc.). So also the material setup could be used for a new item of clothing.&lt;br /&gt;
&lt;br /&gt;
[[File:Mc2_importclothes.png]]&lt;/div&gt;</summary>
		<author><name>Mtknife</name></author>	</entry>

	<entry>
		<id>http://www.makehumancommunity.org/w/index.php?title=Documentation:ClothesV2&amp;diff=1885</id>
		<title>Documentation:ClothesV2</title>
		<link rel="alternate" type="text/html" href="http://www.makehumancommunity.org/w/index.php?title=Documentation:ClothesV2&amp;diff=1885"/>
				<updated>2020-09-28T03:12:11Z</updated>
		
		<summary type="html">&lt;p&gt;Mtknife: Replaced &amp;quot;piece of cloth&amp;quot; with &amp;quot;item of clothing&amp;quot;--one item of clothing can be made of multiple pieces of cloth, and I don't think you want to give the impression that a single piece of clothing can have multiple materials, one for each piece of cloth.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Caution: this file is still under construction :)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Makeclothes Version 2 =&lt;br /&gt;
&lt;br /&gt;
[[File:makeclothestitle.jpg]]&lt;br /&gt;
&lt;br /&gt;
MakeClothes2 is used to create clothes for MakeHuman characters. It could be installed as a single plugin, but at least MakeSkin should be used, if the creation of material is also part of your work. Furthermore it is able to work with the human base mesh provided by MPFB.&lt;br /&gt;
&lt;br /&gt;
The term &amp;quot;clothes&amp;quot; is not really correct, the program creates any kind of mesh which can be used for a character generated by MakeHuman. This also includes hair and different tongue or a new topology for the skin. To use MakeClothes in Blender knowledge of Blender itself is needed.&lt;br /&gt;
&lt;br /&gt;
== Notation ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To understand the process, a short summary of terms used in MakeHuman:&lt;br /&gt;
&lt;br /&gt;
* '''base mesh''' and '''helper mesh''': The base mesh is the standard body mesh including a helper-mesh used in MakeHuman.  ([[Documentation:Basemesh|detailed information]])&lt;br /&gt;
&lt;br /&gt;
* '''proxies''': in a way all meshes projected on the body are proxies. Do differentiate between a piece of cloth and an alternative mesh for the skin, the alternative mesh is called a '''topology'''.&lt;br /&gt;
&lt;br /&gt;
* '''topologies''': special case for a proxy used as a mesh for the skin. Typically used for e.g. a different resolution or to add genitals.&lt;br /&gt;
&lt;br /&gt;
* '''smoothing''': MakeHuman may use smoothing on a base mesh. This results in a mesh with 4 times as many vertices. &amp;lt;u&amp;gt;This mesh cannot be used for MakeClothes.&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''clothes''': clothes will be all meshes MakeClothes is able to create. Hair and body proxies included.&lt;br /&gt;
&lt;br /&gt;
* '''posing''': the standard &amp;quot;unposed&amp;quot; base mesh is presented in an A-Pose. Other poses are T-Pose or a pose which is user generated. Typically these poses are created with the standard skeleton. Shapekeys can be used as a special pose too.&lt;br /&gt;
&lt;br /&gt;
* '''weighting''': when a character is posed the skin but also the clothes should follow the bones. So weights are added to each vertex. These weights determine how much a bone will be followed. MakeClothes uses a similar construction, since the clothes follow vertices on the helper or base mesh.&lt;br /&gt;
&lt;br /&gt;
[[File:Mc2_meshes_to_use.png]]&lt;br /&gt;
&lt;br /&gt;
Only base mesh and helper can be used to create clothes.&lt;br /&gt;
&lt;br /&gt;
== Limits ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Makeclothes has certain limits according to the internal structure of MakeHuman&lt;br /&gt;
&lt;br /&gt;
* The mesh for the clothes can either be done with quads or with triangles. No mixture allowed. Advantage for quads is a smoother design with a later usage of subdivision surface algorithm (smoothing). Triangles are normally used for e.g. sculpting or when you work with 3rd party meshes.&lt;br /&gt;
&lt;br /&gt;
* only one material for one item of clothing is allowed in MakeHuman&lt;br /&gt;
&lt;br /&gt;
* each vertex of a item of clothing uses 3 vertices on body or helper to find its position according to the human created in MakeHuman&lt;br /&gt;
&lt;br /&gt;
* each vertex of a item of clothing needs to be in one (and only one) vertex group. A group of the same name must be created on the human&lt;br /&gt;
&lt;br /&gt;
* it is possible to create more than one item of clothing with one human&lt;br /&gt;
&lt;br /&gt;
* only one human is allowed when clothes are created. So only one object is &amp;quot;marked as human&amp;quot;. However, if you need more than one base mesh, all others can be marked as clothes&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Mc2_makeclothes2.png|right]]&lt;br /&gt;
&lt;br /&gt;
== How to load a human ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
MakeHuman uses a mesh called hm08. Makeclothes is prepared to deal with other meshes as well for future versions. When the mesh is changed it must be changed in MakeHuman as well. So this documentation will only consider the hm08 base mesh.&lt;br /&gt;
&lt;br /&gt;
To create clothes you can create them directly on the body or on the helper mesh. For underwear the nude body is best choice, but for a coat the helper mesh will be used. A good method for e.g. a skirt or coat is to design the piece of cloth on the nude body and then use the helper mesh for weighting in the end.&lt;br /&gt;
&lt;br /&gt;
There are currently a few possibilities to load a human. The simplest way is to load a predefined one or to use MPFB, both have some vertex-groups assigned:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Load a predefined human'''&lt;br /&gt;
&lt;br /&gt;
The easiest way directly supported by MakeClothes is to work with the predefined meshes. MakeClothes contains 2 Blend-files which are placed in the &amp;quot;humans&amp;quot; sub-directory of the plugin (male.blend and female.blend). When MakeClothes starts, these blend-files are scanned once and names of the objects starting with &amp;quot;mh_&amp;quot; are presented in a menu. To work with it, select a mesh and press &amp;quot;Import predefined human&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
[[File:Mc2_loadpredef.png]]&lt;br /&gt;
&lt;br /&gt;
In case of a helper mesh, the parts of the mesh are assigned to different vertex-groups to allow an easy selection and use different colors.&lt;br /&gt;
&lt;br /&gt;
After the mesh is loaded these buttons disappear, because one human is already loaded. The loaded mesh is automatically marked as a human. To load another human either delete the human or mark your human as clothes.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Load the human via MPFB'''&lt;br /&gt;
&lt;br /&gt;
Makehuman Plugin for Blender also can provide a base mesh. Be aware that the best base is an unmodified male or female mesh, because the clothes will fit most of the characters. Do not use alternative topologies in MakeHuman. If you import an human this is already the base mesh. It can be done easily by doing these steps:&lt;br /&gt;
&lt;br /&gt;
[[File:Mc2_loadhumanmfb.png]]&lt;br /&gt;
&lt;br /&gt;
The default preset of MakeClothes inside MPFB will mask the helper. It is possible, to switch the masking on or off. To do that, press the button marked in the illustration:&lt;br /&gt;
&lt;br /&gt;
[[File:Mc2_togglehelper.png]]&lt;br /&gt;
&lt;br /&gt;
Typically the helper will be switched off, when the clothes are modelled. When you assign the vertex groups you should switch it on, because it makes sense to use groups on the helper for the weighting. It is possible to extract clothes from the helper (even when masked) as long as it is not deleted.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Load normal base.obj file'''&lt;br /&gt;
This is the way using the predefined base.obj file which can be downloaded from github. MakeClothes reads the wavefront file. Vertex groups are created according to the .obj file. Disadvantage: this mesh is neither male nor female.&lt;br /&gt;
&lt;br /&gt;
An exported wavefront mesh made by MakeHuman can be used as well (no alternative topology such as male muscled mesh, do not use smoothing and delete the extra eyes). It is possible to export it including the helpers. Unfortunately it has no vertex groups assigned. This must be done in Blender later.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Load an mhx2 file'''&lt;br /&gt;
The body (no alternative topology, do not use smoothing and delete the extra eyes) used by mhx2 export can also be used as a base mesh. When you load it you have to select Override Exported Data and the mark Helper Geometry before importing it.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Delete helpers'''&lt;br /&gt;
&lt;br /&gt;
If a mesh is loaded and the helpers are not needed, the helpers can be deleted. In this case a vertex-group &amp;quot;body&amp;quot; is expected, all vertices belonging to other groups are deleted. If body is not available, nothing will be done.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Tell MakeClothes the type of the object ==&lt;br /&gt;
[[File:Mc2_customprops.png|right]]&lt;br /&gt;
&lt;br /&gt;
To create clothes, one object must be marked as human and at least one as clothes. If you work with more than one human, all others must be marked as clothes temporarily. When you mark one object as human a previously marked human will automatically be marked as clothes. The custom properties of the object will hold this information.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Create simple clothes (extract from helper) ==&lt;br /&gt;
&lt;br /&gt;
If a helper mesh is available it is possible to use this helper as a basis for the clothes. Especially for beginners (but also for the advanced for a good weighting) this could be helpful.&lt;br /&gt;
&lt;br /&gt;
[[File:MC2_extract_helpers.png]]&lt;br /&gt;
&lt;br /&gt;
The normal way would be to extract either &amp;quot;Tights&amp;quot; or &amp;quot;Skirt&amp;quot;. Extract means that a copy of a helper part is prepared for your work. The second step would then be to modify this geometry for your own purposes.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Assign vertex-groups ==&lt;br /&gt;
&lt;br /&gt;
Vertex-groups are a number of vertices of a mesh forming a group with vertex-group name. These groups are used to determine relations between e.g. vertices on the body and vertices on an item of clothing. The simplest way would be:&lt;br /&gt;
&lt;br /&gt;
* create a group &amp;quot;clothing&amp;quot; on the human&lt;br /&gt;
* assign all vertices of the human to this group&lt;br /&gt;
* create a group &amp;quot;clothing&amp;quot; on your item of clothing&lt;br /&gt;
* assign all vertices of the item of clothing to this group&lt;br /&gt;
&lt;br /&gt;
This might work, but it is not a good way. There are many risks. &lt;br /&gt;
&lt;br /&gt;
So here are examples from some of the assets I did: [[Documentation:MakeClothes Vertex-Groups|Create vertex-groups]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Test the human mesh ==&lt;br /&gt;
&lt;br /&gt;
The human loaded with one of the methods usually should not have problems. Nevertheless there is a small test available to check the human. This test is also automatically done when clothes are created.&lt;br /&gt;
&lt;br /&gt;
* the number of human objects must be one&lt;br /&gt;
* there must be one vertex group on the human&lt;br /&gt;
* no vertex belongs to an non-existing group&lt;br /&gt;
&lt;br /&gt;
[[File:Mc2_checkhuman.png]]&lt;br /&gt;
&lt;br /&gt;
== Test the clothes ==&lt;br /&gt;
&lt;br /&gt;
Clothes need a bit more testing.&lt;br /&gt;
&lt;br /&gt;
* clothes should not have stray geometry. These are single vertices or edges. If this problem appears, change into edit mode. The vertices are pre-selected. Simply delete them or change geometry otherwise.&lt;br /&gt;
&lt;br /&gt;
* maximum number of vertices per face is 4. If you have more than this, these faces are selected and must be changed.&lt;br /&gt;
&lt;br /&gt;
* clothes can be quad or triangle meshes. A mixture is not allowed. The process assumes a mesh type and selects the faces to be changed.&lt;br /&gt;
&lt;br /&gt;
* the process tests if at least one vertex group is available&lt;br /&gt;
&lt;br /&gt;
* all vertices must belong to one vertex group. Vertices belonging to no group are selected and can be changed in edit mode.&lt;br /&gt;
&lt;br /&gt;
* all vertices must belong to only one vertex group. Vertices belonging to more than one group are selected and can be changed in edit mode.&lt;br /&gt;
&lt;br /&gt;
* no vertex belongs to an non-existing group&lt;br /&gt;
&lt;br /&gt;
* a test is done, how many edges belong to one vertex. Typically quad meshes with a low pole-count will have better geometric qualities. This is only a warning. The vertices with more than 8 neighbor vertices will be selected and can be changed in edit mode.&lt;br /&gt;
&lt;br /&gt;
[[File:Mc2_checkclothes.png]]&lt;br /&gt;
&lt;br /&gt;
== Common settings ==&lt;br /&gt;
&lt;br /&gt;
The common settings will provide the '''license''' and the name of the '''author''', which will be used for all the clothes generated with this file.&lt;br /&gt;
&lt;br /&gt;
* '''Overwrite existing files''' is switched off. The name of the item of clothing is used as a filename. If it is necessary to overwrite an existing object, the box must be marked.&lt;br /&gt;
&lt;br /&gt;
* '''Modifiers are allowed'''. Typically the mirror modifier may make sense. Be careful with e.g. subdivision surface, because it may produce a huge number of vertices. When the clothes should be designed with subdivision surface but created without, switch off &amp;quot;Allow Modifiers&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Produce clothes ==&lt;br /&gt;
&lt;br /&gt;
The main features of creating clothes are:&lt;br /&gt;
&lt;br /&gt;
* '''name''': this is the name of the item of clothing, also the filename&lt;br /&gt;
&lt;br /&gt;
* '''comment''': a short optional description&lt;br /&gt;
&lt;br /&gt;
* '''tags''': a list of predefined and own tags as a search criteria for MakeHuman&lt;br /&gt;
&lt;br /&gt;
[[File:Mc2_tagselector.png]]&lt;br /&gt;
&lt;br /&gt;
* '''zdepth''': determines the order of clothes. Lower values are used for clothes near the body, higher values for parts far away. This will be used to hide clothes near the body. A rule of thumb is to start with underwear at 31; normal clothes (pants, t-shirt, shoes) use a default value of 50 and clothes like a coat usually use high values like 63. The following illustration shows the effect for a character equipped with ballet clothes. It also demonstrates what is happening when all values are equal.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Mc2_zdepth.png]]&lt;br /&gt;
&lt;br /&gt;
* '''scaling''': select the part of the body which is important for the scaling. Most likely torso for a t-shirt, head for a hat etc.&lt;br /&gt;
&lt;br /&gt;
* '''delete-group''': it is a good method to delete vertices on the body if clothes are not transparent. This avoids bleeding through, that is, that vertices that should be &amp;quot;inside&amp;quot; suddenly appear outside of the clothes (see: [[Documentation:MakeClothes Delete-Groups|use delete-groups]]). All vertices not to be displayed should be selected on the body (not helper) and assigned to a vertex on the human. The name of this group must be inserted in the box. If more than one piece of cloth is created, they all can have a different delete-group on the same human.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''use MakeSkin''': without MakeSkin a simple material is saved for the piece of cloth (white base color). Otherwise the material file of the plugin [[Documentation:MaterialsMakeSkin|MakeSkin]] is used. See &amp;quot;Materials&amp;quot; below.&lt;br /&gt;
&lt;br /&gt;
* '''subdir''': the directory inside where the clothes will be created.&lt;br /&gt;
&lt;br /&gt;
== Materials ==&lt;br /&gt;
&lt;br /&gt;
Most of the clothes will need a texture. Before the texture can be used the piece of cloth must be unwrapped. The best way is to create seams in Blender where the real seams are.&lt;br /&gt;
&lt;br /&gt;
Unwrap the clothes in any case. The output of this process is a UV-Map, which will be used to determine the coordinates of each vertex on the texture.&lt;br /&gt;
&lt;br /&gt;
If the simple standard material should not be used for export, a material can be attached with [[Documentation:MaterialsMakeSkin|MakeSkin]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;will be changed later with some advice how to do good textures etc.&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Creating of own clothes ==&lt;br /&gt;
&lt;br /&gt;
To create clothes select the item of clothing and press produce clothes. The tests &amp;quot;check clothes&amp;quot; and &amp;quot;check human&amp;quot; are processed and also an additional test about matching vertex groups is done. If everything is okay, the clothes can be loaded in MakeHuman.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;will contain a lot of tips &amp;amp; tricks later&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Usage of shape keys and targets, create heels ==&lt;br /&gt;
&lt;br /&gt;
A special female body with shape keys is added as a predefined mesh to allow creation of heels. For advanced users: [[Documentation:CreateHeels|this is the way it works]]&lt;br /&gt;
&lt;br /&gt;
== Importing existing clothes ==&lt;br /&gt;
&lt;br /&gt;
It is possible to load an existing mhclo-file from the data folder of MakeHuman. It's best to load the human mesh before, if you want to change geometry. The clothes will also fit to a different body, but in this case they will not look as good as on the body they were made for. But the advantage is that, e.g., clothes created for males can be used as a base for a female version.&lt;br /&gt;
&lt;br /&gt;
When clothes are imported, most of fields are filled in by the process and the delete-group is marked on the human (in case a human is available).&lt;br /&gt;
&lt;br /&gt;
The material is also loaded, when MakeSkin is available. The illustration shows the result of the import of the &amp;quot;lace_up_blouse&amp;quot;. A material called &amp;quot;lace_up_blouse&amp;quot; was created in blender. All available information is imported and displayed. This includes the special parameters only used in MakeHuman (Backface culling, Transparent, LitSphere etc.). So also the material setup could be used for a new item of clothing.&lt;br /&gt;
&lt;br /&gt;
[[File:Mc2_importclothes.png]]&lt;/div&gt;</summary>
		<author><name>Mtknife</name></author>	</entry>

	<entry>
		<id>http://www.makehumancommunity.org/w/index.php?title=Documentation:Clothes&amp;diff=1815</id>
		<title>Documentation:Clothes</title>
		<link rel="alternate" type="text/html" href="http://www.makehumancommunity.org/w/index.php?title=Documentation:Clothes&amp;diff=1815"/>
				<updated>2020-06-29T04:20:38Z</updated>
		
		<summary type="html">&lt;p&gt;Mtknife: /* What if automatic vertex groups don't work? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
MakeClothes, as its name implies, is a Blender addon that is used to construct clothing assets for use in the MakeHuman program. Clothes can be modeled using any technique that is natural. For example, clothing can be modeled from scratch, or by altering either the human mesh or the “clothing helpers” (see below) provided by the MakeClothes tool. When designing and modeling a clothing item, there are two restrictions that should be kept in mind. First, the algorithm for mapping a clothing mesh to the human mesh requires that the clothing mesh consists entirely of quad faces. Second, it is important to know that MakeClothes supports only one material per item of clothing.&lt;br /&gt;
&lt;br /&gt;
Upon completing the MakeClothes workflow, a new folder will be created by the tool within your HOME/makehuman/v1/data/clothes. That folder will assume the unique name that the user provides for the clothing item. This folder will be populated with the assets necessary to make the item available in MakeHuman. The one additional, useful but not essential, item that the user must supply is a thumbnail icon for the clothing. The thumbnail icon can be created with any image editing program as a 128 x128 pixel image in .png format. The file should then be saved in the same folder as the other assets and the extension changed to .thumb.&lt;br /&gt;
&lt;br /&gt;
== Standard Tools ==&lt;br /&gt;
&lt;br /&gt;
=== Using MakeClothes addon ===&lt;br /&gt;
&lt;br /&gt;
[[File:Btmc01.png|left]] MakeClothes is controlled by the MakeClothes panel in the N-shelf to the right of the viewport. It consists of the main buttons that are always visible, and several hidden sections that can be displayed by enabling a checkbox.&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:both&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Btmc02.png|500px|right]] &lt;br /&gt;
&lt;br /&gt;
The main section contains the following:&lt;br /&gt;
* Type: Specifies the character to be used as a reference. It can be one of the following:&lt;br /&gt;
** Base Mesh: The MakeHuman mesh without any targets applied.&lt;br /&gt;
** Average Male: A caucasian young male.&lt;br /&gt;
** Average Female: A caucasian young female.&lt;br /&gt;
** Average Child: A caucasian young child.&lt;br /&gt;
** Average Baby: A caucasian young baby.&lt;br /&gt;
** Base Mesh with Helpers: The MakeHuman mesh without any targets applied.&lt;br /&gt;
** Average Male with Helpers: A caucasian young male.&lt;br /&gt;
** Average Female with Helpers: A caucasian young female.&lt;br /&gt;
** Average Childwith Helpers: A caucasian young child.&lt;br /&gt;
** Average Baby with Helpers: A caucasian young baby.&lt;br /&gt;
*Load Human mesh: the button to load the selected type into the scene.&lt;br /&gt;
&lt;br /&gt;
Note:&amp;quot;helpers&amp;quot; in MakeHuman are a type of special, invisible geometry over the base mesh which can be loaded to help model clothes, for example, a helper sweater, helper tights, etc. They have their own materials. It is important to note that no alterations should be made to the base mesh type after it is loaded otherwise the script will fail. The image (right) shows the result of pressing &amp;quot;Load Human Mesh&amp;quot;, with type set to Base Mesh.&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:both&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Btmc03.png|500px|right]] A human mesh is loaded into the viewport, and more tools are enabled:&lt;br /&gt;
&lt;br /&gt;
* Mesh Type: MakeClothes divides meshes into two types: human and clothing. This button displays the mesh type (Human/Clothing) of the active mesh and is greyed out if the active object is not a mesh. (MakeHuman normally detects the items accurately, but in the event of an error, you can click the button to change the mesh type so that it is treated as a clothing item instead of human if it is a clothing item and incorrectly detected).&lt;br /&gt;
* Create Vertex Groups From Selection: MakeClothes uses vertex groups to control the fitting.&lt;br /&gt;
* Make Clothes. This is the main entry point for the MakeClothes script. With one human and one piece of clothing selected, create an association between clothes vertices and human triangles, i.e. triplets of human vertices. Both meshes must have vertex groups with identical names, and each clothing vertex must belong to exactly one vertex group. The result of the association is saved in the file ObjectName/ObjectName.mhclo, in the default directory. This button is greyed out if the active object is not a mesh.&lt;br /&gt;
* Test Clothes. This buttons loads a piece of clothing (an .mhclo file) and fits it to the active mesh, which must be a human. Typically a second human is loaded on a different layer, and the quality of the clothes fitted to that character can immediately be checked in Blender. To test the clothes under the strictest conditions, the human model used for testing should be quite different from the human used for clothes-making. If the original character is an adult, Baby With Helpers is a good choice.&lt;br /&gt;
&lt;br /&gt;
If, instead, the Human With Helpers button is pressed, the full MakeHuman mesh including the helper geometry is loaded. Different materials are assigned to each type of helper geometry. The materials are ordered in the order of the vertex number. This makes it easy to peel off one helper type at a time.&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:both&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Glue clothes to the body ===&lt;br /&gt;
&lt;br /&gt;
The clothes are meshes that can be modelled directly in Blender, or in another package and then imported into Blender as an obj file. Note that the mesh type is Clothing, which is the default unless the mesh has been declared to be a human. A simple method to obtain a starting point modelling is to duplicate part of the human mesh and separate it from the human. However, in this case the duplicated mesh will still be a human. To change the mesh type, press the toggle button Human. The status is now changed into Clothing.&lt;br /&gt;
&lt;br /&gt;
After loading the human, the next step is to &amp;quot;glue&amp;quot; the clothes to the human, in order that they will automatically fit the body changes. To control this association, MakeClothes uses vertex groups. Each clothing vertex must belong to exactly one vertex group, and a vertex group with the same name must exist in the human mesh as well. On the human side you are more liberal with the vertex groups, i.e. you can have vertices that do not belong to any vertex group or to more then one vertex group, so these vertex groups can overlap. Only human vertices in the correct vertex group will be considered when making clothes. There are special vertex groups for teeth (see: [[Documentation:Controlling the result with vertex groups|Controlling the result with vertex groups]]) and rigid vertex groups beginning with '*'.&lt;br /&gt;
&lt;br /&gt;
Vertex groups speed up the clothes-making process by pruning the search tree, and can be used to control the appearance of clothes as well. However, assigning vertex groups can be quite tedious, and in many cases it is sufficient to let MakeClothes create vertex groups automatically. This is done automatically when a human mesh is loaded. If a clothing mesh does not have any vertex groups, it is also done automatically, when the MakeClothes button is pressed.&lt;br /&gt;
&lt;br /&gt;
=== Automatic vertex groups ===&lt;br /&gt;
&lt;br /&gt;
[[File:Btmc04.png|500px|right]] If vertex groups need to be reassigned, for example because a piece of clothing has been edited, the automatic vertex groups can be used. When the human is selected, there is a button, visible in the image (above right), called &amp;quot;Create Vertex Groups From Selection&amp;quot;. Selecting a cloth, the button changes to &amp;quot;Create Vertex Groups&amp;quot;. Both the buttons do the same thing, but there is a little difference: in the human it is possible to generate the vertex groups only for a sub set of the vertices (selected in edit mode), while for clothing the vertex groups must include all vertices. This is because we need to associate only a part of the human vertices with all vertices of the clothing. For example, we need to associate all the vertices of a skirt with the human torso only.&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:both&amp;quot; /&amp;gt;&lt;br /&gt;
[[File:Btmc05.png|500px|right]] Pressing the button, the following vertex groups are created:&lt;br /&gt;
&lt;br /&gt;
* Mid: Vertices on or very close to the center line (|x| &amp;lt; 0:001).&lt;br /&gt;
* Left: Vertices to the left of the center line (x &amp;gt; 0:001). For a human the Mid vertices are also included in the Left group.&lt;br /&gt;
* Right. Vertices to the right of the center line (x z 0:001). For a human the Mid vertices are also included in the Right group.&lt;br /&gt;
* Delete: An empty group only created for humans. Human vertices hidden by the piece of clothing can be added to this groups. These vertices are then optionally deleted when the clothing is applied in MakeHuman, thus avoiding that blotches of skin poking through the clothes. Note that when a vertex is deleted, so are all faces containing this vertex. Don't assign a vertex to the Delete group unless all faces containing it are hidden by the pieces of clothing.&lt;br /&gt;
In the images (right), we can see the vertices assigned to the Mid and Left groups for a nude human.&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:both&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== What if automatic vertex groups don't work? ===&lt;br /&gt;
&lt;br /&gt;
Sometimes, a piece of clothing made with MakeClothes seems to work just fine&amp;amp;mdash;until you try it on a character not shaped exactly life the target used in MakeClothes, at which point all sorts of strange distortions may occur.  Why does this happen? &lt;br /&gt;
&lt;br /&gt;
When you use MakeClothes, at some point you have to load a target object (&amp;quot;Load Human Mesh&amp;quot;).  These come in two basic varieties, with helpers (e.g., &amp;quot;Average Female With [sic] Helpers&amp;quot;) and without (e.g., &amp;quot;Average Female&amp;quot;); the obvious difference is that the &amp;quot;With Helpers&amp;quot; objects include not only the human body, but the &amp;quot;helpers&amp;quot; mentioned briefly in the previous section:  they're a bunch of vertices that represent different types of clothing, and hair.  Thus, just below the waist, if you examine the human mesh closely, you'll find three layers of vertices:  the body itself, a tights &amp;quot;object&amp;quot; that lies just on top of the body, and a skirt &amp;quot;object&amp;quot; that conforms to the body in places, but stretches over it in others (between the legs, to be precise).&lt;br /&gt;
&lt;br /&gt;
For the modeler, the obvious use of these targets (&amp;quot;human meshes&amp;quot;) is to fit clothes; if you use the &amp;quot;with Helpers&amp;quot; versions, you can also use the helper &amp;quot;objects&amp;quot; as templates for creating clothes (this works well for skirts or hair, but with shirts, you run into the problem that the edge loops don't coincide with where you'd want to put seams).  However, the targets also serve another purpose:  when you hit the &amp;quot;Create Vertex Groups&amp;quot; button and then the &amp;quot;Make Clothes&amp;quot; button, the program calculates the distance between each vertex of the item of clothing and the nearest vertices in the human mesh, and then uses these relationships to deform the item of clothing when the body moves.  &lt;br /&gt;
&lt;br /&gt;
If the vertices in the clothing are associated with vertices in the human mesh that have a very different shape, bad things tend to happen.   To avoid this problem, you have to do three things before you hit &amp;quot;Create Vertex Groups&amp;quot; :&lt;br /&gt;
&lt;br /&gt;
#  Select the human mesh, and go into &amp;quot;Edit&amp;quot; mode.  Select only the vertices that make up the appropriate helper object (or in some cases, like a long coat or a dress, objects).  Doing this will eliminate a lot of the &amp;quot;wedgie&amp;quot; effect, which is due mostly to the skin-tight contours of the body itself and the tights helper in the area around the crotch.  (A similar problem occurs between the breasts, with clothes sticking inside the cleavage like a rubber wetsuit, rather than stretching across the gap like most fabrics do.)  This procedure can be tricky to do by hand, since some objects cover others (the &amp;quot;Hair&amp;quot; object makes the upper part of the &amp;quot;Tights&amp;quot; object, which is used for shirts, especially hard to work with), and you can't just delete the stuff you don't need, since this fouls up the program.  Fortunately, each helper object has a stand-in material with a different color, and there's a handy &amp;quot;Show Selection&amp;quot; button that automatically selects the most commonly used sets of vertices (&amp;quot;Body&amp;quot;, &amp;quot;Tights&amp;quot;, &amp;quot;Skirt&amp;quot;, &amp;quot;Coat&amp;quot;, and &amp;quot;Hair&amp;quot;); the hide command (&amp;quot;H&amp;quot;) is also useful here (&amp;quot;alt-H&amp;quot; to unhide everything hidden). &lt;br /&gt;
#  Unselect all the vertices that aren't directly underneath the clothes in question.  Thus, if you're making a short skirt, not only will you not select the layers of body and tights vertices beneath the skirt helper object, but you'll make sure that skirt helper vertices that lie below your skirt's hemline (or above its waist) also aren't selected.  This step eliminates some distortions (huge wrinkles, mostly) that occur for clothing whose vertices are far away from the body.&lt;br /&gt;
#  Finally, get rid of vertices in &amp;quot;crevices&amp;quot;.  For reasons that are not entirely clear (better understanding of the body than of clothes on the part of the sculptor, probably), the shapes of the helper objects don't correspond very well to real clothes in certain places.  As mentioned above, the upper tights follow the contour of the skin between the breasts, and the lower part of the tights dips into the &amp;quot;crack&amp;quot; between the buttocks, and clings skin-tight against the area where the legs join&amp;amp;mdash;as if it were painted on.  The skirt helper at least stretches across the space between the legs, but it, too, dips into the crack between the buttocks, rather than stretching between the buttocks like a real skirt would.  Unselect the vertices in question:  fortunately, they're easy to find, because they all lie at or near the center line of the human mesh (that is, points whose &amp;quot;X&amp;quot; value is 0, and which lie on the plane that divides the left and right sides of the body).  You might want to substitute other points that don't lie directly beneath the clothes, but which don't dip into the crevices.  If it works, this procedure should eliminate almost all of the wedgie effect not eliminated by step #1.  However, note that this particular step is somewhat hit-or-miss:  it will make things better for some pieces of clothing, but worse for others.  Experiment to find out what works best for the clothing you're creating,&lt;br /&gt;
&lt;br /&gt;
=== Generate the clothes file ===&lt;br /&gt;
&lt;br /&gt;
When both clothing and human has the vertex groups with same name, just press the MakeClothes button to generate the files.&lt;br /&gt;
They will be located in your HOME/makehuman/v1/data/clothes, in order to be inbcluded automatically in MakeHuman.&lt;br /&gt;
&lt;br /&gt;
== Advanced tools ==&lt;br /&gt;
&lt;br /&gt;
Under the main buttons of Makeclothes, there are seven hidden panels that can be activated clicking the checkbox. Let's see their meaning.&lt;br /&gt;
&lt;br /&gt;
=== Show selection, Show Materials, Show UV projection ===&lt;br /&gt;
&lt;br /&gt;
[[File:Btmc06.png|right]]&lt;br /&gt;
&lt;br /&gt;
*Show selection. This feature is just a shortcut to quickly select some part of the human. So, instead of classic Blender selection (go to edit mode, move the mouse on a vertex and press Lkey to select the linked vertices), you can just press these buttons.&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:both&amp;quot; /&amp;gt;&lt;br /&gt;
[[File:Btmc07.png|right]]&lt;br /&gt;
* Show Materials. This shows a button to export the materials only. This is useful when there are no changes to the geometry, but only to the material, in order to avoid recalculating everything.&lt;br /&gt;
&lt;br /&gt;
* Show UV projection. This section is useful mainly for making proxy meshes.&lt;br /&gt;
** Recover seams. Creates a Seam object, which has edges where the selected mesh's UV layout has seams. The Seam object is intended to be a reference for marking seams for the clothing.&lt;br /&gt;
** Auto seams.&lt;br /&gt;
** Project UVs. Automatically create a UV layout for the clothing, compatible with the human's UV coordinates. This is intended for the mask UV layer, which must be compatible with the body mesh for all clothes. The actual texture can use a different UV layer which can be laid out in any desirable manner.&lt;br /&gt;
** Reexport Mhclo file.The mhclo file must be resaved when the mask UVs have been defined. This can be done by pressing Make clothes again, but Reexport Mhclo file is faster.&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:both&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Show ZDepth, Show Offset scaling ===&lt;br /&gt;
 &lt;br /&gt;
[[File:Btmc08.png|right]]&lt;br /&gt;
&lt;br /&gt;
* Show ZDepth. This option is used to assign a depth to the cloth, in order to hide skin and clothes which are covered by clothes on top of it. The Z depth specifies the stacking order, which decides which clothes should hide others. Normally the Z depth ranges between 0 (skin) and 100 (external accessories such as backpacks).&lt;br /&gt;
** Depth name. Roughly indicates the preferred Z depth for various clothes types. The choices are: Body, Underwear and Lingerie, Socks and Stockings, Shirt and Trousers, Sweater, Indoor Jacket, Shoes and Boots, Coat, Backpack.&lt;br /&gt;
** Set Z depth.Set the Z depth depending on the selected depth name.&lt;br /&gt;
** Z depth.The value of the Z depth. This is changed by the Set Z depth button, but can be set manually for fine-tuning.&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:both&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Btmc09.png|right]]&lt;br /&gt;
&lt;br /&gt;
* Show Offset scaling. The location of a clothing vertex depends on two data: a point on a body triangle, described in barycentric coordinates, and the offset from that point. The offset is scaled in the X, Y and Z directions depending on the size of a certain body part.&lt;br /&gt;
** Body Part. Set this to the body part which is most affected. The choices are: Custom, Body, Genital, Head, Torso, Arm, Hand, Leg, Foot.&lt;br /&gt;
** Examine Boundary. Select the boundary vertices with Set boundary is invoked.&lt;br /&gt;
** Set Boundary. Set the boundary to vertices determined by the selected body part.&lt;br /&gt;
** Custom Boundary. To manually set the bounday box.&lt;br /&gt;
** X1, X2, Y1, Y2, Z1, Z2. The vertex numbers of the six vertices which define the scaling boundary. The X scale is determined from the distance between vertices X1 and X2, the Y scale by Y1 and Y2, and the Z scale by Z1 and Z2.&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:both&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Show Settings, Show License ===&lt;br /&gt;
&lt;br /&gt;
[[File:Btmc10.png|right]]&lt;br /&gt;
* Show Setting. The settings include the author name and the export path. It's possible to save and restore the settings. &lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:both&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Btmc11.png|right]]7&lt;br /&gt;
* Show License.This set of options are to add the author name, the type of license and the tags for clothes. Licensing information to be put at the top of the exported mhclo file. It consists of three strings that can contain arbitary text.&lt;br /&gt;
** Author. Defaults to: Unknown.&lt;br /&gt;
** License. Defaults to: AGPL3&lt;br /&gt;
** HomePage. Defaults to: &amp;lt;NOWIKI&amp;gt;http://www.makehuman.org/ -- http://www.makehuman.org/&amp;lt;/NOWIKI&amp;gt;&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:both&amp;quot; /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mtknife</name></author>	</entry>

	<entry>
		<id>http://www.makehumancommunity.org/w/index.php?title=Documentation:Clothes&amp;diff=1814</id>
		<title>Documentation:Clothes</title>
		<link rel="alternate" type="text/html" href="http://www.makehumancommunity.org/w/index.php?title=Documentation:Clothes&amp;diff=1814"/>
				<updated>2020-06-29T04:17:23Z</updated>
		
		<summary type="html">&lt;p&gt;Mtknife: /* What if automatic vertex groups don't work? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
MakeClothes, as its name implies, is a Blender addon that is used to construct clothing assets for use in the MakeHuman program. Clothes can be modeled using any technique that is natural. For example, clothing can be modeled from scratch, or by altering either the human mesh or the “clothing helpers” (see below) provided by the MakeClothes tool. When designing and modeling a clothing item, there are two restrictions that should be kept in mind. First, the algorithm for mapping a clothing mesh to the human mesh requires that the clothing mesh consists entirely of quad faces. Second, it is important to know that MakeClothes supports only one material per item of clothing.&lt;br /&gt;
&lt;br /&gt;
Upon completing the MakeClothes workflow, a new folder will be created by the tool within your HOME/makehuman/v1/data/clothes. That folder will assume the unique name that the user provides for the clothing item. This folder will be populated with the assets necessary to make the item available in MakeHuman. The one additional, useful but not essential, item that the user must supply is a thumbnail icon for the clothing. The thumbnail icon can be created with any image editing program as a 128 x128 pixel image in .png format. The file should then be saved in the same folder as the other assets and the extension changed to .thumb.&lt;br /&gt;
&lt;br /&gt;
== Standard Tools ==&lt;br /&gt;
&lt;br /&gt;
=== Using MakeClothes addon ===&lt;br /&gt;
&lt;br /&gt;
[[File:Btmc01.png|left]] MakeClothes is controlled by the MakeClothes panel in the N-shelf to the right of the viewport. It consists of the main buttons that are always visible, and several hidden sections that can be displayed by enabling a checkbox.&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:both&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Btmc02.png|500px|right]] &lt;br /&gt;
&lt;br /&gt;
The main section contains the following:&lt;br /&gt;
* Type: Specifies the character to be used as a reference. It can be one of the following:&lt;br /&gt;
** Base Mesh: The MakeHuman mesh without any targets applied.&lt;br /&gt;
** Average Male: A caucasian young male.&lt;br /&gt;
** Average Female: A caucasian young female.&lt;br /&gt;
** Average Child: A caucasian young child.&lt;br /&gt;
** Average Baby: A caucasian young baby.&lt;br /&gt;
** Base Mesh with Helpers: The MakeHuman mesh without any targets applied.&lt;br /&gt;
** Average Male with Helpers: A caucasian young male.&lt;br /&gt;
** Average Female with Helpers: A caucasian young female.&lt;br /&gt;
** Average Childwith Helpers: A caucasian young child.&lt;br /&gt;
** Average Baby with Helpers: A caucasian young baby.&lt;br /&gt;
*Load Human mesh: the button to load the selected type into the scene.&lt;br /&gt;
&lt;br /&gt;
Note:&amp;quot;helpers&amp;quot; in MakeHuman are a type of special, invisible geometry over the base mesh which can be loaded to help model clothes, for example, a helper sweater, helper tights, etc. They have their own materials. It is important to note that no alterations should be made to the base mesh type after it is loaded otherwise the script will fail. The image (right) shows the result of pressing &amp;quot;Load Human Mesh&amp;quot;, with type set to Base Mesh.&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:both&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Btmc03.png|500px|right]] A human mesh is loaded into the viewport, and more tools are enabled:&lt;br /&gt;
&lt;br /&gt;
* Mesh Type: MakeClothes divides meshes into two types: human and clothing. This button displays the mesh type (Human/Clothing) of the active mesh and is greyed out if the active object is not a mesh. (MakeHuman normally detects the items accurately, but in the event of an error, you can click the button to change the mesh type so that it is treated as a clothing item instead of human if it is a clothing item and incorrectly detected).&lt;br /&gt;
* Create Vertex Groups From Selection: MakeClothes uses vertex groups to control the fitting.&lt;br /&gt;
* Make Clothes. This is the main entry point for the MakeClothes script. With one human and one piece of clothing selected, create an association between clothes vertices and human triangles, i.e. triplets of human vertices. Both meshes must have vertex groups with identical names, and each clothing vertex must belong to exactly one vertex group. The result of the association is saved in the file ObjectName/ObjectName.mhclo, in the default directory. This button is greyed out if the active object is not a mesh.&lt;br /&gt;
* Test Clothes. This buttons loads a piece of clothing (an .mhclo file) and fits it to the active mesh, which must be a human. Typically a second human is loaded on a different layer, and the quality of the clothes fitted to that character can immediately be checked in Blender. To test the clothes under the strictest conditions, the human model used for testing should be quite different from the human used for clothes-making. If the original character is an adult, Baby With Helpers is a good choice.&lt;br /&gt;
&lt;br /&gt;
If, instead, the Human With Helpers button is pressed, the full MakeHuman mesh including the helper geometry is loaded. Different materials are assigned to each type of helper geometry. The materials are ordered in the order of the vertex number. This makes it easy to peel off one helper type at a time.&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:both&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Glue clothes to the body ===&lt;br /&gt;
&lt;br /&gt;
The clothes are meshes that can be modelled directly in Blender, or in another package and then imported into Blender as an obj file. Note that the mesh type is Clothing, which is the default unless the mesh has been declared to be a human. A simple method to obtain a starting point modelling is to duplicate part of the human mesh and separate it from the human. However, in this case the duplicated mesh will still be a human. To change the mesh type, press the toggle button Human. The status is now changed into Clothing.&lt;br /&gt;
&lt;br /&gt;
After loading the human, the next step is to &amp;quot;glue&amp;quot; the clothes to the human, in order that they will automatically fit the body changes. To control this association, MakeClothes uses vertex groups. Each clothing vertex must belong to exactly one vertex group, and a vertex group with the same name must exist in the human mesh as well. On the human side you are more liberal with the vertex groups, i.e. you can have vertices that do not belong to any vertex group or to more then one vertex group, so these vertex groups can overlap. Only human vertices in the correct vertex group will be considered when making clothes. There are special vertex groups for teeth (see: [[Documentation:Controlling the result with vertex groups|Controlling the result with vertex groups]]) and rigid vertex groups beginning with '*'.&lt;br /&gt;
&lt;br /&gt;
Vertex groups speed up the clothes-making process by pruning the search tree, and can be used to control the appearance of clothes as well. However, assigning vertex groups can be quite tedious, and in many cases it is sufficient to let MakeClothes create vertex groups automatically. This is done automatically when a human mesh is loaded. If a clothing mesh does not have any vertex groups, it is also done automatically, when the MakeClothes button is pressed.&lt;br /&gt;
&lt;br /&gt;
=== Automatic vertex groups ===&lt;br /&gt;
&lt;br /&gt;
[[File:Btmc04.png|500px|right]] If vertex groups need to be reassigned, for example because a piece of clothing has been edited, the automatic vertex groups can be used. When the human is selected, there is a button, visible in the image (above right), called &amp;quot;Create Vertex Groups From Selection&amp;quot;. Selecting a cloth, the button changes to &amp;quot;Create Vertex Groups&amp;quot;. Both the buttons do the same thing, but there is a little difference: in the human it is possible to generate the vertex groups only for a sub set of the vertices (selected in edit mode), while for clothing the vertex groups must include all vertices. This is because we need to associate only a part of the human vertices with all vertices of the clothing. For example, we need to associate all the vertices of a skirt with the human torso only.&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:both&amp;quot; /&amp;gt;&lt;br /&gt;
[[File:Btmc05.png|500px|right]] Pressing the button, the following vertex groups are created:&lt;br /&gt;
&lt;br /&gt;
* Mid: Vertices on or very close to the center line (|x| &amp;lt; 0:001).&lt;br /&gt;
* Left: Vertices to the left of the center line (x &amp;gt; 0:001). For a human the Mid vertices are also included in the Left group.&lt;br /&gt;
* Right. Vertices to the right of the center line (x z 0:001). For a human the Mid vertices are also included in the Right group.&lt;br /&gt;
* Delete: An empty group only created for humans. Human vertices hidden by the piece of clothing can be added to this groups. These vertices are then optionally deleted when the clothing is applied in MakeHuman, thus avoiding that blotches of skin poking through the clothes. Note that when a vertex is deleted, so are all faces containing this vertex. Don't assign a vertex to the Delete group unless all faces containing it are hidden by the pieces of clothing.&lt;br /&gt;
In the images (right), we can see the vertices assigned to the Mid and Left groups for a nude human.&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:both&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== What if automatic vertex groups don't work? ===&lt;br /&gt;
&lt;br /&gt;
Sometimes, a piece of clothing made with MakeClothes seems to work just fine&amp;amp;mdash;until you try it on a character not shaped exactly life the target used in MakeClothes, at which point all sorts of strange distortions may occur.  Why does this happen? &lt;br /&gt;
&lt;br /&gt;
When you use MakeClothes, at some point you have to load a target object (&amp;quot;Load Human Mesh&amp;quot;).  These come in two basic varieties, with helpers (e.g., &amp;quot;Average Female With [sic] Helpers&amp;quot;) and without (e.g., &amp;quot;Average Female&amp;quot;); the obvious difference is that the &amp;quot;With Helpers&amp;quot; objects include not only the human body, but the &amp;quot;helpers&amp;quot; mentioned briefly in the previous section:  they're a bunch of vertices that represent different types of clothing, and hair.  Thus, just below the waist, if you examine the human mesh closely, you'll find three layers of vertices:  the body itself, a tights &amp;quot;object&amp;quot; that lies just on top of the body, and a skirt &amp;quot;object&amp;quot; that conforms to the body in places, but stretches over it in others (between the legs, to be precise).&lt;br /&gt;
&lt;br /&gt;
For the modeler, the obvious use of these targets (&amp;quot;human meshes&amp;quot;) is to fit clothes; if you use the &amp;quot;with Helpers&amp;quot; versions, you can also use the helper &amp;quot;objects&amp;quot; as templates for creating clothes (this works well for skirts or hair, but with shirts, you run into the problem that the edge loops don't coincide with where you'd want to put seams).  However, the targets also serve another purpose:  when you hit the &amp;quot;Create Vertex Groups&amp;quot; button and then the &amp;quot;Make Clothes&amp;quot; button, the program calculates the distance between each vertex of the item of clothing and the nearest vertices in the human mesh, and then uses these relationships to deform the item of clothing when the body moves.  &lt;br /&gt;
&lt;br /&gt;
If the vertices in the clothing are associated with vertices in the human mesh that have a very different shape, bad things tend to happen.   To avoid this problem, you have to do three things before you hit &amp;quot;Create Vertex Groups&amp;quot; :&lt;br /&gt;
&lt;br /&gt;
#  Select the human mesh, and go into &amp;quot;Edit&amp;quot; mode.  Select only the vertices that make up the appropriate helper object (or in some cases, like a long coat or a dress, objects).  Doing this will eliminate a lot of the &amp;quot;wedgie&amp;quot; effect, which is due mostly to the skin-tight contours of the body itself and the tights helper in the area around the crotch.  (A similar problem occurs between the breasts, with clothes sticking inside the cleavage like a rubber wetsuit, rather than stretching across the gap like most fabrics do.)  This procedure can be tricky to do by hand, since some objects cover others (the &amp;quot;Hair&amp;quot; object makes the upper part of the &amp;quot;Tights&amp;quot; object, which is used for shirts, especially hard to work with), and you can't just delete the stuff you don't need, since this fouls up the program.  Fortunately, each helper object has a stand-in material with a different color, and there's a handy &amp;quot;Show Selection&amp;quot; button that automatically selects the most commonly used sets of vertices (&amp;quot;Body&amp;quot;, &amp;quot;Tights&amp;quot;, &amp;quot;Skirt&amp;quot;, &amp;quot;Coat&amp;quot;, and &amp;quot;Hair&amp;quot;); the hide command (&amp;quot;H&amp;quot;) is also useful here (&amp;quot;alt-H&amp;quot; to unhide everything hidden). &lt;br /&gt;
#  Unselect all the vertices that aren't directly underneath the clothes in question.  Thus, if you're making a short skirt, not only will you not select the layers of body and tights vertices beneath the skirt helper object, but you'll make sure that skirt helper vertices that lie below your skirt's hemline (or above its waist) also aren't selected.  This step eliminates some distortions (huge wrinkles, mostly) that occur for clothing whose vertices are far away from the body.&lt;br /&gt;
#  Finally, get rid of vertices in &amp;quot;crevices&amp;quot;.  For reasons that are not entirely clear (better understanding of the body than of clothes on the part of the sculptor, probably), the shapes of the helper objects don't correspond very well to real clothes in certain places.  As mentioned above, the upper tights follow the contour of the skin between the breasts, and the lower part of the tights dips into the &amp;quot;crack&amp;quot; between the buttocks, and clings skin-tight against the area where the legs join&amp;amp;mdash;as if it were painted on.  The skirt helper at least stretches across the space between the legs, but it, too, dips into the crack between the buttocks, rather than stretching between the buttocks like a real skirt would.  Unselect the vertices in question:  fortunately, they're easy to find, because they all lie at or near the center line of the human mesh (that is, points whose &amp;quot;X&amp;quot; value is 0, and which lie on the plane that divides the left and right sides of the body).  You might want to substitute other points that don't lie directly beneath the clothes, but which don't dip into the crevices.  This step should eliminate almost all of the wedgie effect not eliminated by step #1.  Note that this particular step is somewhat hit-or-miss:  it will make things better for some pieces of clothing, but worse for others.  Experiment to find out what works best for the clothing you're creating,&lt;br /&gt;
&lt;br /&gt;
=== Generate the clothes file ===&lt;br /&gt;
&lt;br /&gt;
When both clothing and human has the vertex groups with same name, just press the MakeClothes button to generate the files.&lt;br /&gt;
They will be located in your HOME/makehuman/v1/data/clothes, in order to be inbcluded automatically in MakeHuman.&lt;br /&gt;
&lt;br /&gt;
== Advanced tools ==&lt;br /&gt;
&lt;br /&gt;
Under the main buttons of Makeclothes, there are seven hidden panels that can be activated clicking the checkbox. Let's see their meaning.&lt;br /&gt;
&lt;br /&gt;
=== Show selection, Show Materials, Show UV projection ===&lt;br /&gt;
&lt;br /&gt;
[[File:Btmc06.png|right]]&lt;br /&gt;
&lt;br /&gt;
*Show selection. This feature is just a shortcut to quickly select some part of the human. So, instead of classic Blender selection (go to edit mode, move the mouse on a vertex and press Lkey to select the linked vertices), you can just press these buttons.&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:both&amp;quot; /&amp;gt;&lt;br /&gt;
[[File:Btmc07.png|right]]&lt;br /&gt;
* Show Materials. This shows a button to export the materials only. This is useful when there are no changes to the geometry, but only to the material, in order to avoid recalculating everything.&lt;br /&gt;
&lt;br /&gt;
* Show UV projection. This section is useful mainly for making proxy meshes.&lt;br /&gt;
** Recover seams. Creates a Seam object, which has edges where the selected mesh's UV layout has seams. The Seam object is intended to be a reference for marking seams for the clothing.&lt;br /&gt;
** Auto seams.&lt;br /&gt;
** Project UVs. Automatically create a UV layout for the clothing, compatible with the human's UV coordinates. This is intended for the mask UV layer, which must be compatible with the body mesh for all clothes. The actual texture can use a different UV layer which can be laid out in any desirable manner.&lt;br /&gt;
** Reexport Mhclo file.The mhclo file must be resaved when the mask UVs have been defined. This can be done by pressing Make clothes again, but Reexport Mhclo file is faster.&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:both&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Show ZDepth, Show Offset scaling ===&lt;br /&gt;
 &lt;br /&gt;
[[File:Btmc08.png|right]]&lt;br /&gt;
&lt;br /&gt;
* Show ZDepth. This option is used to assign a depth to the cloth, in order to hide skin and clothes which are covered by clothes on top of it. The Z depth specifies the stacking order, which decides which clothes should hide others. Normally the Z depth ranges between 0 (skin) and 100 (external accessories such as backpacks).&lt;br /&gt;
** Depth name. Roughly indicates the preferred Z depth for various clothes types. The choices are: Body, Underwear and Lingerie, Socks and Stockings, Shirt and Trousers, Sweater, Indoor Jacket, Shoes and Boots, Coat, Backpack.&lt;br /&gt;
** Set Z depth.Set the Z depth depending on the selected depth name.&lt;br /&gt;
** Z depth.The value of the Z depth. This is changed by the Set Z depth button, but can be set manually for fine-tuning.&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:both&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Btmc09.png|right]]&lt;br /&gt;
&lt;br /&gt;
* Show Offset scaling. The location of a clothing vertex depends on two data: a point on a body triangle, described in barycentric coordinates, and the offset from that point. The offset is scaled in the X, Y and Z directions depending on the size of a certain body part.&lt;br /&gt;
** Body Part. Set this to the body part which is most affected. The choices are: Custom, Body, Genital, Head, Torso, Arm, Hand, Leg, Foot.&lt;br /&gt;
** Examine Boundary. Select the boundary vertices with Set boundary is invoked.&lt;br /&gt;
** Set Boundary. Set the boundary to vertices determined by the selected body part.&lt;br /&gt;
** Custom Boundary. To manually set the bounday box.&lt;br /&gt;
** X1, X2, Y1, Y2, Z1, Z2. The vertex numbers of the six vertices which define the scaling boundary. The X scale is determined from the distance between vertices X1 and X2, the Y scale by Y1 and Y2, and the Z scale by Z1 and Z2.&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:both&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Show Settings, Show License ===&lt;br /&gt;
&lt;br /&gt;
[[File:Btmc10.png|right]]&lt;br /&gt;
* Show Setting. The settings include the author name and the export path. It's possible to save and restore the settings. &lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:both&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Btmc11.png|right]]7&lt;br /&gt;
* Show License.This set of options are to add the author name, the type of license and the tags for clothes. Licensing information to be put at the top of the exported mhclo file. It consists of three strings that can contain arbitary text.&lt;br /&gt;
** Author. Defaults to: Unknown.&lt;br /&gt;
** License. Defaults to: AGPL3&lt;br /&gt;
** HomePage. Defaults to: &amp;lt;NOWIKI&amp;gt;http://www.makehuman.org/ -- http://www.makehuman.org/&amp;lt;/NOWIKI&amp;gt;&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:both&amp;quot; /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mtknife</name></author>	</entry>

	<entry>
		<id>http://www.makehumancommunity.org/w/index.php?title=Documentation:Clothes&amp;diff=1684</id>
		<title>Documentation:Clothes</title>
		<link rel="alternate" type="text/html" href="http://www.makehumancommunity.org/w/index.php?title=Documentation:Clothes&amp;diff=1684"/>
				<updated>2020-02-23T04:16:55Z</updated>
		
		<summary type="html">&lt;p&gt;Mtknife: /* What if automatic vertex groups don't work? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
MakeClothes, as its name implies, is a Blender addon that is used to construct clothing assets for use in the MakeHuman program. Clothes can be modeled using any technique that is natural. For example, clothing can be modeled from scratch, or by altering either the human mesh or the “clothing helpers” (see below) provided by the MakeClothes tool. When designing and modeling a clothing item, there are two restrictions that should be kept in mind. First, the algorithm for mapping a clothing mesh to the human mesh requires that the clothing mesh consists entirely of quad faces. Second, it is important to know that MakeClothes supports only one material per item of clothing.&lt;br /&gt;
&lt;br /&gt;
Upon completing the MakeClothes workflow, a new folder will be created by the tool within your HOME/makehuman/v1/data/clothes. That folder will assume the unique name that the user provides for the clothing item. This folder will be populated with the assets necessary to make the item available in MakeHuman. The one additional, useful but not essential, item that the user must supply is a thumbnail icon for the clothing. The thumbnail icon can be created with any image editing program as a 128 x128 pixel image in .png format. The file should then be saved in the same folder as the other assets and the extension changed to .thumb.&lt;br /&gt;
&lt;br /&gt;
== Standard Tools ==&lt;br /&gt;
&lt;br /&gt;
=== Using MakeClothes addon ===&lt;br /&gt;
&lt;br /&gt;
[[File:Btmc01.png|left]] MakeClothes is controlled by the MakeClothes panel in the N-shelf to the right of the viewport. It consists of the main buttons that are always visible, and several hidden sections that can be displayed by enabling a checkbox.&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:both&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Btmc02.png|500px|right]] &lt;br /&gt;
&lt;br /&gt;
The main section contains the following:&lt;br /&gt;
* Type: Specifies the character to be used as a reference. It can be one of the following:&lt;br /&gt;
** Base Mesh: The MakeHuman mesh without any targets applied.&lt;br /&gt;
** Average Male: A caucasian young male.&lt;br /&gt;
** Average Female: A caucasian young female.&lt;br /&gt;
** Average Child: A caucasian young child.&lt;br /&gt;
** Average Baby: A caucasian young baby.&lt;br /&gt;
** Base Mesh with Helpers: The MakeHuman mesh without any targets applied.&lt;br /&gt;
** Average Male with Helpers: A caucasian young male.&lt;br /&gt;
** Average Female with Helpers: A caucasian young female.&lt;br /&gt;
** Average Childwith Helpers: A caucasian young child.&lt;br /&gt;
** Average Baby with Helpers: A caucasian young baby.&lt;br /&gt;
*Load Human mesh: the button to load the selected type into the scene.&lt;br /&gt;
&lt;br /&gt;
Note:&amp;quot;helpers&amp;quot; in MakeHuman are a type of special, invisible geometry over the base mesh which can be loaded to help model clothes, for example, a helper sweater, helper tights, etc. They have their own materials. It is important to note that no alterations should be made to the base mesh type after it is loaded otherwise the script will fail. The image (right) shows the result of pressing &amp;quot;Load Human Mesh&amp;quot;, with type set to Base Mesh.&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:both&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Btmc03.png|500px|right]] A human mesh is loaded into the viewport, and more tools are enabled:&lt;br /&gt;
&lt;br /&gt;
* Mesh Type: MakeClothes divides meshes into two types: human and clothing. This button displays the mesh type (Human/Clothing) of the active mesh and is greyed out if the active object is not a mesh. (MakeHuman normally detects the items accurately, but in the event of an error, you can click the button to change the mesh type so that it is treated as a clothing item instead of human if it is a clothing item and incorrectly detected).&lt;br /&gt;
* Create Vertex Groups From Selection: MakeClothes uses vertex groups to control the fitting.&lt;br /&gt;
* Make Clothes. This is the main entry point for the MakeClothes script. With one human and one piece of clothing selected, create an association between clothes vertices and human triangles, i.e. triplets of human vertices. Both meshes must have vertex groups with identical names, and each clothing vertex must belong to exactly one vertex group. The result of the association is saved in the file ObjectName/ObjectName.mhclo, in the default directory. This button is greyed out if the active object is not a mesh.&lt;br /&gt;
* Test Clothes. This buttons loads a piece of clothing (an .mhclo file) and fits it to the active mesh, which must be a human. Typically a second human is loaded on a different layer, and the quality of the clothes fitted to that character can immediately be checked in Blender. To test the clothes under the strictest conditions, the human model used for testing should be quite different from the human used for clothes-making. If the original character is an adult, Baby With Helpers is a good choice.&lt;br /&gt;
&lt;br /&gt;
If, instead, the Human With Helpers button is pressed, the full MakeHuman mesh including the helper geometry is loaded. Different materials are assigned to each type of helper geometry. The materials are ordered in the order of the vertex number. This makes it easy to peel off one helper type at a time.&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:both&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Glue clothes to the body ===&lt;br /&gt;
&lt;br /&gt;
The clothes are meshes that can be modelled directly in Blender, or in another package and then imported into Blender as an obj file. Note that the mesh type is Clothing, which is the default unless the mesh has been declared to be a human. A simple method to obtain a starting point modelling is to duplicate part of the human mesh and separate it from the human. However, in this case the duplicated mesh will still be a human. To change the mesh type, press the toggle button Human. The status is now changed into Clothing.&lt;br /&gt;
&lt;br /&gt;
After loading the human, the next step is to &amp;quot;glue&amp;quot; the clothes to the human, in order that they will automatically fit the body changes. To control this association, MakeClothes uses vertex groups. Each clothing vertex must belong to exactly one vertex group, and a vertex group with the same name must exist in the human mesh as well. On the human side you are more liberal with the vertex groups, i.e. you can have vertices that do not belong to any vertex group or to more then one vertex group, so these vertex groups can overlap. Only human vertices in the correct vertex group will be considered when making clothes. There are special vertex groups for teeth (see: [[Documentation:Controlling the result with vertex groups|Controlling the result with vertex groups]]) and rigid vertex groups beginning with '*'.&lt;br /&gt;
&lt;br /&gt;
Vertex groups speed up the clothes-making process by pruning the search tree, and can be used to control the appearance of clothes as well. However, assigning vertex groups can be quite tedious, and in many cases it is sufficient to let MakeClothes create vertex groups automatically. This is done automatically when a human mesh is loaded. If a clothing mesh does not have any vertex groups, it is also done automatically, when the MakeClothes button is pressed.&lt;br /&gt;
&lt;br /&gt;
=== Automatic vertex groups ===&lt;br /&gt;
&lt;br /&gt;
[[File:Btmc04.png|500px|right]] If vertex groups need to be reassigned, for example because a piece of clothing has been edited, the automatic vertex groups can be used. When the human is selected, there is a button, visible in the image (above right), called &amp;quot;Create Vertex Groups From Selection&amp;quot;. Selecting a cloth, the button changes to &amp;quot;Create Vertex Groups&amp;quot;. Both the buttons do the same thing, but there is a little difference: in the human it is possible to generate the vertex groups only for a sub set of the vertices (selected in edit mode), while for clothing the vertex groups must include all vertices. This is because we need to associate only a part of the human vertices with all vertices of the clothing. For example, we need to associate all the vertices of a skirt with the human torso only.&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:both&amp;quot; /&amp;gt;&lt;br /&gt;
[[File:Btmc05.png|500px|right]] Pressing the button, the following vertex groups are created:&lt;br /&gt;
&lt;br /&gt;
* Mid: Vertices on or very close to the center line (|x| &amp;lt; 0:001).&lt;br /&gt;
* Left: Vertices to the left of the center line (x &amp;gt; 0:001). For a human the Mid vertices are also included in the Left group.&lt;br /&gt;
* Right. Vertices to the right of the center line (x z 0:001). For a human the Mid vertices are also included in the Right group.&lt;br /&gt;
* Delete: An empty group only created for humans. Human vertices hidden by the piece of clothing can be added to this groups. These vertices are then optionally deleted when the clothing is applied in MakeHuman, thus avoiding that blotches of skin poking through the clothes. Note that when a vertex is deleted, so are all faces containing this vertex. Don't assign a vertex to the Delete group unless all faces containing it are hidden by the pieces of clothing.&lt;br /&gt;
In the images (right), we can see the vertices assigned to the Mid and Left groups for a nude human.&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:both&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== What if automatic vertex groups don't work? ===&lt;br /&gt;
&lt;br /&gt;
Sometimes, a piece of clothing made with MakeClothes seems to work just fine&amp;amp;mdash;until you try it on a character not shaped exactly life the target used in MakeClothes, at which point all sorts of strange distortions may occur.  Why does this happen? &lt;br /&gt;
&lt;br /&gt;
When you use MakeClothes, at some point you have to load a target object (&amp;quot;Load Human Mesh&amp;quot;).  These come in two basic varieties, with helpers (e.g., &amp;quot;Average Female With [sic] Helpers&amp;quot;) and without (e.g., &amp;quot;Average Female&amp;quot;); the obvious difference is that the &amp;quot;With Helpers&amp;quot; objects include not only the human body, but the &amp;quot;helpers&amp;quot; mentioned briefly in the previous section:  they're a bunch of vertices that represent different types of clothing, and hair.  Thus, just below the waist, if you examine the human mesh closely, you'll find three layers of vertices:  the body itself, a tights &amp;quot;object&amp;quot; that lies just on top of the body, and a skirt &amp;quot;object&amp;quot; that conforms to the body in places, but stretches over it in others (between the legs, to be precise).&lt;br /&gt;
&lt;br /&gt;
For the modeler, the obvious use of these targets (&amp;quot;human meshes&amp;quot;) is to fit clothes; if you use the &amp;quot;with Helpers&amp;quot; versions, you can also use the helper &amp;quot;objects&amp;quot; as templates for creating clothes (this works well for skirts or hair, but with shirts, you run into the problem that the edge loops don't coincide with where you'd want to put seams).  However, the targets also serve another purpose:  when you hit the &amp;quot;Create Vertex Groups&amp;quot; button and then the &amp;quot;Make Clothes&amp;quot; button, the program calculates the distance between each vertex of the item of clothing and the nearest vertices in the human mesh, and then uses these relationships to deform the item of clothing when the body moves.  &lt;br /&gt;
&lt;br /&gt;
If the vertices in the clothing are associated with vertices in the human mesh that have a very different shape, bad things tend to happen.   To avoid this problem, you have to do three things before you hit &amp;quot;Create Vertex Groups&amp;quot; :&lt;br /&gt;
&lt;br /&gt;
#  Select the human mesh, and go into &amp;quot;Edit&amp;quot; mode.  Select only the vertices that make up the appropriate helper object (or in some cases, like a long coat or a dress, objects).  This can be tricky to do by hand, since some objects cover others (the &amp;quot;Hair&amp;quot; object makes the upper part of the &amp;quot;Tights&amp;quot; object, which is used for shirts, especially hard to work with), and you can't just delete the stuff you don't need, since this fouls up the program.  Fortunately, each helper object has a stand-in material with a different color, and there's a handy &amp;quot;Show Selection&amp;quot; button that automatically selects the most commonly used sets of vertices (&amp;quot;Body&amp;quot;, &amp;quot;Tights&amp;quot;, &amp;quot;Skirt&amp;quot;, &amp;quot;Coat&amp;quot;, and &amp;quot;Hair&amp;quot;); the hide command (&amp;quot;H&amp;quot;) is also useful here (&amp;quot;alt-H&amp;quot; to unhide everything hidden).  Doing this will eliminate a lot of the &amp;quot;wedgie&amp;quot; effect, which is due mostly to the skin-tight contours of the body itself and the tights helper in the area around the crotch.  (A similar problem occurs between the breasts, with clothes sticking inside the cleavage like a rubber wetsuit, rather than stretching across the gap like most fabrics do.) &lt;br /&gt;
#  Unselect all the vertices that aren't directly underneath the clothes in question.  Thus, if you're making a short skirt, not only will you not select the layers of body and tights vertices beneath the skirt helper object, but you'll make sure that skirt helper vertices that lie below your skirt's hemline (or above its waist) also aren't selected.  This step eliminates some distortions (huge wrinkles, mostly) that occur for clothing whose vertices are far away from the body.&lt;br /&gt;
#  Finally, get rid of vertices in &amp;quot;crevices&amp;quot;.  For reasons that are not entirely clear (better understanding of the body than of clothes on the part of the sculptor, probably), the shapes of the helper objects don't correspond very well to real clothes in certain places.  As mentioned above, the upper tights follow the contour of the skin between the breasts, and the lower part of the tights dips into the &amp;quot;crack&amp;quot; between the buttocks, and clings skin-tight against the area where the legs join&amp;amp;mdash;as if it were painted on.  The skirt helper at least stretches across the space between the legs, but it, too, dips into the crack between the buttocks, rather than stretching between the buttocks like a real skirt would.  Unselect the vertices in question:  fortunately, they're easy to find, because they all lie at or near the center line of the human mesh (that is, points whose &amp;quot;X&amp;quot; value is 0, and which lie on the plane that divides the left and right sides of the body).  You might want to substitute other points that don't lie directly beneath the clothes, but which don't dip into the crevices.  This step should eliminate almost all of the wedgie effect not eliminated by step #1.  Note that this particular step is somewhat hit-or-miss:  it will make things better for some pieces of clothing, but worse for others.  Experiment to find out what works best for the clothing you're creating,&lt;br /&gt;
&lt;br /&gt;
=== Generate the clothes file ===&lt;br /&gt;
&lt;br /&gt;
When both clothing and human has the vertex groups with same name, just press the MakeClothes button to generate the files.&lt;br /&gt;
They will be located in your HOME/makehuman/v1/data/clothes, in order to be inbcluded automatically in MakeHuman.&lt;br /&gt;
&lt;br /&gt;
== Advanced tools ==&lt;br /&gt;
&lt;br /&gt;
Under the main buttons of Makeclothes, there are seven hidden panels that can be activated clicking the checkbox. Let's see their meaning.&lt;br /&gt;
&lt;br /&gt;
=== Show selection, Show Materials, Show UV projection ===&lt;br /&gt;
&lt;br /&gt;
[[File:Btmc06.png|right]]&lt;br /&gt;
&lt;br /&gt;
*Show selection. This feature is just a shortcut to quickly select some part of the human. So, instead of classic Blender selection (go to edit mode, move the mouse on a vertex and press Lkey to select the linked vertices), you can just press these buttons.&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:both&amp;quot; /&amp;gt;&lt;br /&gt;
[[File:Btmc07.png|right]]&lt;br /&gt;
* Show Materials. This shows a button to export the materials only. This is useful when there are no changes to the geometry, but only to the material, in order to avoid recalculating everything.&lt;br /&gt;
&lt;br /&gt;
* Show UV projection. This section is useful mainly for making proxy meshes.&lt;br /&gt;
** Recover seams. Creates a Seam object, which has edges where the selected mesh's UV layout has seams. The Seam object is intended to be a reference for marking seams for the clothing.&lt;br /&gt;
** Auto seams.&lt;br /&gt;
** Project UVs. Automatically create a UV layout for the clothing, compatible with the human's UV coordinates. This is intended for the mask UV layer, which must be compatible with the body mesh for all clothes. The actual texture can use a different UV layer which can be laid out in any desirable manner.&lt;br /&gt;
** Reexport Mhclo file.The mhclo file must be resaved when the mask UVs have been defined. This can be done by pressing Make clothes again, but Reexport Mhclo file is faster.&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:both&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Show ZDepth, Show Offset scaling ===&lt;br /&gt;
 &lt;br /&gt;
[[File:Btmc08.png|right]]&lt;br /&gt;
&lt;br /&gt;
* Show ZDepth. This option is used to assign a depth to the cloth, in order to hide skin and clothes which are covered by clothes on top of it. The Z depth specifies the stacking order, which decides which clothes should hide others. Normally the Z depth ranges between 0 (skin) and 100 (external accessories such as backpacks).&lt;br /&gt;
** Depth name. Roughly indicates the preferred Z depth for various clothes types. The choices are: Body, Underwear and Lingerie, Socks and Stockings, Shirt and Trousers, Sweater, Indoor Jacket, Shoes and Boots, Coat, Backpack.&lt;br /&gt;
** Set Z depth.Set the Z depth depending on the selected depth name.&lt;br /&gt;
** Z depth.The value of the Z depth. This is changed by the Set Z depth button, but can be set manually for fine-tuning.&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:both&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Btmc09.png|right]]&lt;br /&gt;
&lt;br /&gt;
* Show Offset scaling. The location of a clothing vertex depends on two data: a point on a body triangle, described in barycentric coordinates, and the offset from that point. The offset is scaled in the X, Y and Z directions depending on the size of a certain body part.&lt;br /&gt;
** Body Part. Set this to the body part which is most affected. The choices are: Custom, Body, Genital, Head, Torso, Arm, Hand, Leg, Foot.&lt;br /&gt;
** Examine Boundary. Select the boundary vertices with Set boundary is invoked.&lt;br /&gt;
** Set Boundary. Set the boundary to vertices determined by the selected body part.&lt;br /&gt;
** Custom Boundary. To manually set the bounday box.&lt;br /&gt;
** X1, X2, Y1, Y2, Z1, Z2. The vertex numbers of the six vertices which define the scaling boundary. The X scale is determined from the distance between vertices X1 and X2, the Y scale by Y1 and Y2, and the Z scale by Z1 and Z2.&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:both&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Show Settings, Show License ===&lt;br /&gt;
&lt;br /&gt;
[[File:Btmc10.png|right]]&lt;br /&gt;
* Show Setting. The settings include the author name and the export path. It's possible to save and restore the settings. &lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:both&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Btmc11.png|right]]7&lt;br /&gt;
* Show License.This set of options are to add the author name, the type of license and the tags for clothes. Licensing information to be put at the top of the exported mhclo file. It consists of three strings that can contain arbitary text.&lt;br /&gt;
** Author. Defaults to: Unknown.&lt;br /&gt;
** License. Defaults to: AGPL3&lt;br /&gt;
** HomePage. Defaults to: &amp;lt;NOWIKI&amp;gt;http://www.makehuman.org/ -- http://www.makehuman.org/&amp;lt;/NOWIKI&amp;gt;&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:both&amp;quot; /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mtknife</name></author>	</entry>

	<entry>
		<id>http://www.makehumancommunity.org/w/index.php?title=Documentation:Clothes&amp;diff=1598</id>
		<title>Documentation:Clothes</title>
		<link rel="alternate" type="text/html" href="http://www.makehumancommunity.org/w/index.php?title=Documentation:Clothes&amp;diff=1598"/>
				<updated>2019-07-03T02:36:17Z</updated>
		
		<summary type="html">&lt;p&gt;Mtknife: Added reference to the hide command.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
MakeClothes, as its name implies, is a Blender addon that is used to construct clothing assets for use in the MakeHuman program. Clothes can be modeled using any technique that is natural. For example, clothing can be modeled from scratch, or by altering either the human mesh or the “clothing helpers” (see below) provided by the MakeClothes tool. When designing and modeling a clothing item, there are two restrictions that should be kept in mind. First, the algorithm for mapping a clothing mesh to the human mesh requires that the clothing mesh consists entirely of quad faces. Second, it is important to know that MakeClothes supports only one material per item of clothing.&lt;br /&gt;
&lt;br /&gt;
Upon completing the MakeClothes workflow, a new folder will be created by the tool within your HOME/makehuman/v1/data/clothes. That folder will assume the unique name that the user provides for the clothing item. This folder will be populated with the assets necessary to make the item available in MakeHuman. The one additional, useful but not essential, item that the user must supply is a thumbnail icon for the clothing. The thumbnail icon can be created with any image editing program as a 128 x128 pixel image in .png format. The file should then be saved in the same folder as the other assets and the extension changed to .thumb.&lt;br /&gt;
&lt;br /&gt;
== Standard Tools ==&lt;br /&gt;
&lt;br /&gt;
=== Using MakeClothes addon ===&lt;br /&gt;
&lt;br /&gt;
[[File:Btmc01.png|left]] MakeClothes is controlled by the MakeClothes panel in the N-shelf to the right of the viewport. It consists of the main buttons that are always visible, and several hidden sections that can be displayed by enabling a checkbox.&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:both&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Btmc02.png|500px|right]] &lt;br /&gt;
&lt;br /&gt;
The main section contains the following:&lt;br /&gt;
* Type: Specifies the character to be used as a reference. It can be one of the following:&lt;br /&gt;
** Base Mesh: The MakeHuman mesh without any targets applied.&lt;br /&gt;
** Average Male: A caucasian young male.&lt;br /&gt;
** Average Female: A caucasian young female.&lt;br /&gt;
** Average Child: A caucasian young child.&lt;br /&gt;
** Average Baby: A caucasian young baby.&lt;br /&gt;
** Base Mesh with Helpers: The MakeHuman mesh without any targets applied.&lt;br /&gt;
** Average Male with Helpers: A caucasian young male.&lt;br /&gt;
** Average Female with Helpers: A caucasian young female.&lt;br /&gt;
** Average Childwith Helpers: A caucasian young child.&lt;br /&gt;
** Average Baby with Helpers: A caucasian young baby.&lt;br /&gt;
*Load Human mesh: the button to load the selected type into the scene.&lt;br /&gt;
&lt;br /&gt;
Note:&amp;quot;helpers&amp;quot; in MakeHuman are a type of special, invisible geometry over the base mesh which can be loaded to help model clothes, for example, a helper sweater, helper tights, etc. They have their own materials. It is important to note that no alterations should be made to the base mesh type after it is loaded otherwise the script will fail. The image (right) shows the result of pressing &amp;quot;Load Human Mesh&amp;quot;, with type set to Base Mesh.&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:both&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Btmc03.png|500px|right]] A human mesh is loaded into the viewport, and more tools are enabled:&lt;br /&gt;
&lt;br /&gt;
* Mesh Type: MakeClothes divides meshes into two types: human and clothing. This button displays the mesh type (Human/Clothing) of the active mesh and is greyed out if the active object is not a mesh. (MakeHuman normally detects the items accurately, but in the event of an error, you can click the button to change the mesh type so that it is treated as a clothing item instead of human if it is a clothing item and incorrectly detected).&lt;br /&gt;
* Create Vertex Groups From Selection: MakeClothes uses vertex groups to control the fitting.&lt;br /&gt;
* Make Clothes. This is the main entry point for the MakeClothes script. With one human and one piece of clothing selected, create an association between clothes vertices and human triangles, i.e. triplets of human vertices. Both meshes must have vertex groups with identical names, and each clothing vertex must belong to exactly one vertex group. The result of the association is saved in the file ObjectName/ObjectName.mhclo, in the default directory. This button is greyed out if the active object is not a mesh.&lt;br /&gt;
* Test Clothes. This buttons loads a piece of clothing (an .mhclo file) and fits it to the active mesh, which must be a human. Typically a second human is loaded on a different layer, and the quality of the clothes fitted to that character can immediately be checked in Blender. To test the clothes under the strictest conditions, the human model used for testing should be quite different from the human used for clothes-making. If the original character is an adult, Baby With Helpers is a good choice.&lt;br /&gt;
&lt;br /&gt;
If, instead, the Human With Helpers button is pressed, the full MakeHuman mesh including the helper geometry is loaded. Different materials are assigned to each type of helper geometry. The materials are ordered in the order of the vertex number. This makes it easy to peel off one helper type at a time.&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:both&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Glue clothes to the body ===&lt;br /&gt;
&lt;br /&gt;
The clothes are meshes that can be modelled directly in Blender, or in another package and then imported into Blender as an obj file. Note that the mesh type is Clothing, which is the default unless the mesh has been declared to be a human. A simple method to obtain a starting point modelling is to duplicate part of the human mesh and separate it from the human. However, in this case the duplicated mesh will still be a human. To change the mesh type, press the toggle button Human. The status is now changed into Clothing.&lt;br /&gt;
&lt;br /&gt;
After loading the human, the next step is to &amp;quot;glue&amp;quot; the clothes to the human, in order that they will automatically fit the body changes. To control this association, MakeClothes uses vertex groups. Each clothing vertex must belong to exactly one vertex group, and a vertex group with the same name must exist in the human mesh as well. On the human side you are more liberal with the vertex groups, i.e. you can have vertices that do not belong to any vertex group or to more then one vertex group, so these vertex groups can overlap. Only human vertices in the correct vertex group will be considered when making clothes. There are special vertex groups for teeth (see: [[Documentation:Controlling the result with vertex groups|Controlling the result with vertex groups]]) and rigid vertex groups beginning with '*'.&lt;br /&gt;
&lt;br /&gt;
Vertex groups speed up the clothes-making process by pruning the search tree, and can be used to control the appearance of clothes as well. However, assigning vertex groups can be quite tedious, and in many cases it is sufficient to let MakeClothes create vertex groups automatically. This is done automatically when a human mesh is loaded. If a clothing mesh does not have any vertex groups, it is also done automatically, when the MakeClothes button is pressed.&lt;br /&gt;
&lt;br /&gt;
=== Automatic vertex groups ===&lt;br /&gt;
&lt;br /&gt;
[[File:Btmc04.png|500px|right]] If vertex groups need to be reassigned, for example because a piece of clothing has been edited, the automatic vertex groups can be used. When the human is selected, there is a button, visible in the image (above right), called &amp;quot;Create Vertex Groups From Selection&amp;quot;. Selecting a cloth, the button changes to &amp;quot;Create Vertex Groups&amp;quot;. Both the buttons do the same thing, but there is a little difference: in the human it is possible to generate the vertex groups only for a sub set of the vertices (selected in edit mode), while for clothing the vertex groups must include all vertices. This is because we need to associate only a part of the human vertices with all vertices of the clothing. For example, we need to associate all the vertices of a skirt with the human torso only.&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:both&amp;quot; /&amp;gt;&lt;br /&gt;
[[File:Btmc05.png|500px|right]] Pressing the button, the following vertex groups are created:&lt;br /&gt;
&lt;br /&gt;
* Mid: Vertices on or very close to the center line (|x| &amp;lt; 0:001).&lt;br /&gt;
* Left: Vertices to the left of the center line (x &amp;gt; 0:001). For a human the Mid vertices are also included in the Left group.&lt;br /&gt;
* Right. Vertices to the right of the center line (x z 0:001). For a human the Mid vertices are also included in the Right group.&lt;br /&gt;
* Delete: An empty group only created for humans. Human vertices hidden by the piece of clothing can be added to this groups. These vertices are then optionally deleted when the clothing is applied in MakeHuman, thus avoiding that blotches of skin poking through the clothes. Note that when a vertex is deleted, so are all faces containing this vertex. Don't assign a vertex to the Delete group unless all faces containing it are hidden by the pieces of clothing.&lt;br /&gt;
In the images (right), we can see the vertices assigned to the Mid and Left groups for a nude human.&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:both&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== What if automatic vertex groups don't work? ===&lt;br /&gt;
&lt;br /&gt;
Sometimes, a piece of clothing made with MakeClothes seems to work just fine&amp;amp;mdash;until you try it on a character not shaped exactly life the target used in MakeClothes, at which point all sorts of strange distortions may occur.  Why does this happen? &lt;br /&gt;
&lt;br /&gt;
When you use MakeClothes, at some point you have to load a target object (&amp;quot;Load Human Mesh&amp;quot;).  These come in two basic varieties, with helpers (e.g., &amp;quot;Average Female With [sic] Helpers&amp;quot;) and without (e.g., &amp;quot;Average Female&amp;quot;); the obvious difference is that the &amp;quot;With Helpers&amp;quot; objects include not only the human body, but the &amp;quot;helpers&amp;quot; mentioned briefly in the previous section:  they're a bunch of vertices that represent different types of clothing, and hair.  Thus, just below the waist, if you examine the human mesh closely, you'll find three layers of vertices:  the body itself, a tights &amp;quot;object&amp;quot; that lies just on top of the body, and a skirt &amp;quot;object&amp;quot; that conforms to the body in places, but stretches over it in others (between the legs, to be precise).&lt;br /&gt;
&lt;br /&gt;
For the modeler, the obvious use of these targets (&amp;quot;human meshes&amp;quot;) is to fit clothes; if you use the &amp;quot;with Helpers&amp;quot; versions, you can also use the helper &amp;quot;objects&amp;quot; as templates for creating clothes (this works well for skirts or hair, but with shirts, you run into the problem that the edge loops don't coincide with where you'd want to put seams).  However, the targets also serve another purpose:  when you hit the &amp;quot;Create Vertex Groups&amp;quot; button and then the &amp;quot;Make Clothes&amp;quot; button, the program calculates the distance between each vertex of the item of clothing and the nearest vertices in the human mesh, and then uses these relationships to deform the item of clothing when the body moves.  &lt;br /&gt;
&lt;br /&gt;
If the vertices in the clothing are associated with vertices in the human mesh that have a very different shape, bad things tend to happen.   To avoid this problem, you have to do three things before you hit &amp;quot;Create Vertex Groups&amp;quot; :&lt;br /&gt;
&lt;br /&gt;
#  Select the human mesh, and go into &amp;quot;Edit&amp;quot; mode.  Select only the vertices that make up the appropriate helper object (or in some cases, like a long coat or a dress, objects).  This can be tricky to do by hand, since some objects cover others (the &amp;quot;Hair&amp;quot; object makes the upper part of the &amp;quot;Tights&amp;quot; object, which is used for shirts, especially hard to work with), and you can't just delete the stuff you don't need, since this fouls up the program.  Fortunately, each helper object has a stand-in material with a different color, and there's a handy &amp;quot;Show Selection&amp;quot; button that automatically selects the most commonly used sets of vertices (&amp;quot;Body&amp;quot;, &amp;quot;Tights&amp;quot;, &amp;quot;Skirt&amp;quot;, &amp;quot;Coat&amp;quot;, and &amp;quot;Hair&amp;quot;); the hide command (&amp;quot;H&amp;quot;) is also useful here (&amp;quot;alt-H&amp;quot; to unhide everything hidden).  Doing this will eliminate a lot of the &amp;quot;wedgie&amp;quot; effect, which is due mostly to the skin-tight contours of the body itself and the tights helper in the area around the crotch.  (A similar problem occurs between the breasts, with clothes sticking inside the cleavage like a rubber wetsuit, rather than stretching across the gap like most fabrics do.) &lt;br /&gt;
#  Unselect all the vertices that aren't directly underneath the clothes in question.  Thus, if you're making a short skirt, not only will you not select the layers of body and tights vertices beneath the skirt helper object, but you'll make sure that skirt helper vertices that lie below your skirt's hemline (or above its waist) also aren't selected.  This step eliminates some distortions (huge wrinkles, mostly) that occur for clothing whose vertices are far away from the body.&lt;br /&gt;
#  Finally, get rid of vertices in &amp;quot;crevices&amp;quot;.  For reasons that are not entirely clear (better understanding of the body than of clothes on the part of the sculptor, probably), the shapes of the helper objects don't correspond very well to real clothes in certain places.  As mentioned above, the upper tights follow the contour of the skin between the breasts, and the lower part of the tights dips into the &amp;quot;crack&amp;quot; between the buttocks, and clings skin-tight against the area where the legs join&amp;amp;mdash;as if it were painted on.  The skirt helper at least stretches across the space between the legs, but it, too, dips into the crack between the buttocks, rather than stretching between the buttocks like a real skirt would.  Unselect the vertices in question:  fortunately, they're easy to find, because they all lie at or near the center line of the human mesh (that is, points whose &amp;quot;X&amp;quot; value is 0, and which lie on the plane that divides the left and right sides of the body).  You might want to substitute other points that don't lie directly beneath the clothes, but which don't dip into the crevices.  This step should eliminate almost all of the wedgie effect not eliminated by step #1.&lt;br /&gt;
&lt;br /&gt;
=== Generate the clothes file ===&lt;br /&gt;
&lt;br /&gt;
When both clothing and human has the vertex groups with same name, just press the MakeClothes button to generate the files.&lt;br /&gt;
They will be located in your HOME/makehuman/v1/data/clothes, in order to be inbcluded automatically in MakeHuman.&lt;br /&gt;
&lt;br /&gt;
== Advanced tools ==&lt;br /&gt;
&lt;br /&gt;
Under the main buttons of Makeclothes, there are seven hidden panels that can be activated clicking the checkbox. Let's see their meaning.&lt;br /&gt;
&lt;br /&gt;
=== Show selection, Show Materials, Show UV projection ===&lt;br /&gt;
&lt;br /&gt;
[[File:Btmc06.png|right]]&lt;br /&gt;
&lt;br /&gt;
*Show selection. This feature is just a shortcut to quickly select some part of the human. So, instead of classic Blender selection (go to edit mode, move the mouse on a vertex and press Lkey to select the linked vertices), you can just press these buttons.&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:both&amp;quot; /&amp;gt;&lt;br /&gt;
[[File:Btmc07.png|right]]&lt;br /&gt;
* Show Materials. This shows a button to export the materials only. This is useful when there are no changes to the geometry, but only to the material, in order to avoid recalculating everything.&lt;br /&gt;
&lt;br /&gt;
* Show UV projection. This section is useful mainly for making proxy meshes.&lt;br /&gt;
** Recover seams. Creates a Seam object, which has edges where the selected mesh's UV layout has seams. The Seam object is intended to be a reference for marking seams for the clothing.&lt;br /&gt;
** Auto seams.&lt;br /&gt;
** Project UVs. Automatically create a UV layout for the clothing, compatible with the human's UV coordinates. This is intended for the mask UV layer, which must be compatible with the body mesh for all clothes. The actual texture can use a different UV layer which can be laid out in any desirable manner.&lt;br /&gt;
** Reexport Mhclo file.The mhclo file must be resaved when the mask UVs have been defined. This can be done by pressing Make clothes again, but Reexport Mhclo file is faster.&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:both&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Show ZDepth, Show Offset scaling ===&lt;br /&gt;
 &lt;br /&gt;
[[File:Btmc08.png|right]]&lt;br /&gt;
&lt;br /&gt;
* Show ZDepth. This option is used to assign a depth to the cloth, in order to hide skin and clothes which are covered by clothes on top of it. The Z depth specifies the stacking order, which decides which clothes should hide others. Normally the Z depth ranges between 0 (skin) and 100 (external accessories such as backpacks).&lt;br /&gt;
** Depth name. Roughly indicates the preferred Z depth for various clothes types. The choices are: Body, Underwear and Lingerie, Socks and Stockings, Shirt and Trousers, Sweater, Indoor Jacket, Shoes and Boots, Coat, Backpack.&lt;br /&gt;
** Set Z depth.Set the Z depth depending on the selected depth name.&lt;br /&gt;
** Z depth.The value of the Z depth. This is changed by the Set Z depth button, but can be set manually for fine-tuning.&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:both&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Btmc09.png|right]]&lt;br /&gt;
&lt;br /&gt;
* Show Offset scaling. The location of a clothing vertex depends on two data: a point on a body triangle, described in barycentric coordinates, and the offset from that point. The offset is scaled in the X, Y and Z directions depending on the size of a certain body part.&lt;br /&gt;
** Body Part. Set this to the body part which is most affected. The choices are: Custom, Body, Genital, Head, Torso, Arm, Hand, Leg, Foot.&lt;br /&gt;
** Examine Boundary. Select the boundary vertices with Set boundary is invoked.&lt;br /&gt;
** Set Boundary. Set the boundary to vertices determined by the selected body part.&lt;br /&gt;
** Custom Boundary. To manually set the bounday box.&lt;br /&gt;
** X1, X2, Y1, Y2, Z1, Z2. The vertex numbers of the six vertices which define the scaling boundary. The X scale is determined from the distance between vertices X1 and X2, the Y scale by Y1 and Y2, and the Z scale by Z1 and Z2.&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:both&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Show Settings, Show License ===&lt;br /&gt;
&lt;br /&gt;
[[File:Btmc10.png|right]]&lt;br /&gt;
* Show Setting. The settings include the author name and the export path. It's possible to save and restore the settings. &lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:both&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Btmc11.png|right]]7&lt;br /&gt;
* Show License.This set of options are to add the author name, the type of license and the tags for clothes. Licensing information to be put at the top of the exported mhclo file. It consists of three strings that can contain arbitary text.&lt;br /&gt;
** Author. Defaults to: Unknown.&lt;br /&gt;
** License. Defaults to: AGPL3&lt;br /&gt;
** HomePage. Defaults to: &amp;lt;NOWIKI&amp;gt;http://www.makehuman.org/ -- http://www.makehuman.org/&amp;lt;/NOWIKI&amp;gt;&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:both&amp;quot; /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mtknife</name></author>	</entry>

	<entry>
		<id>http://www.makehumancommunity.org/w/index.php?title=Documentation:Clothes&amp;diff=1213</id>
		<title>Documentation:Clothes</title>
		<link rel="alternate" type="text/html" href="http://www.makehumancommunity.org/w/index.php?title=Documentation:Clothes&amp;diff=1213"/>
				<updated>2016-11-04T02:52:05Z</updated>
		
		<summary type="html">&lt;p&gt;Mtknife: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
MakeClothes, as its name implies, is a Blender addon that is used to construct clothing assets for use in the MakeHuman program. Clothes can be modeled using any technique that is natural. For example, clothing can be modeled from scratch, or by altering either the human mesh or the “clothing helpers” (see below) provided by the MakeClothes tool. When designing and modeling a clothing item, there are two restrictions that should be kept in mind. First, the algorithm for mapping a clothing mesh to the human mesh requires that the clothing mesh consists entirely of quad faces. Second, it is important to know that MakeClothes supports only one material per item of clothing.&lt;br /&gt;
&lt;br /&gt;
Upon completing the MakeClothes workflow, a new folder will be created by the tool within your HOME/makehuman/v1/data/clothes. That folder will assume the unique name that the user provides for the clothing item. This folder will be populated with the assets necessary to make the item available in MakeHuman. The one additional, useful but not essential, item that the user must supply is a thumbnail icon for the clothing. The thumbnail icon can be created with any image editing program as a 128 x128 pixel image in .png format. The file should then be saved in the same folder as the other assets and the extension changed to .thumb.&lt;br /&gt;
&lt;br /&gt;
== Standard Tools ==&lt;br /&gt;
&lt;br /&gt;
=== Using MakeClothes addon ===&lt;br /&gt;
&lt;br /&gt;
[[File:Btmc01.png|left]] MakeClothes is controlled by the MakeClothes panel in the N-shelf to the right of the viewport. It consists of the main buttons that are always visible, and several hidden sections that can be displayed by enabling a checkbox.&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:both&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Btmc02.png|500px|right]] &lt;br /&gt;
&lt;br /&gt;
The main section contains the following:&lt;br /&gt;
* Type: Specifies the character to be used as a reference. It can be one of the following:&lt;br /&gt;
** Base Mesh: The MakeHuman mesh without any targets applied.&lt;br /&gt;
** Average Male: A caucasian young male.&lt;br /&gt;
** Average Female: A caucasian young female.&lt;br /&gt;
** Average Child: A caucasian young child.&lt;br /&gt;
** Average Baby: A caucasian young baby.&lt;br /&gt;
** Base Mesh with Helpers: The MakeHuman mesh without any targets applied.&lt;br /&gt;
** Average Male with Helpers: A caucasian young male.&lt;br /&gt;
** Average Female with Helpers: A caucasian young female.&lt;br /&gt;
** Average Childwith Helpers: A caucasian young child.&lt;br /&gt;
** Average Baby with Helpers: A caucasian young baby.&lt;br /&gt;
*Load Human mesh: the button to load the selected type into the scene.&lt;br /&gt;
&lt;br /&gt;
Note:&amp;quot;helpers&amp;quot; in MakeHuman are a type of special, invisible geometry over the base mesh which can be loaded to help model clothes, for example, a helper sweater, helper tights, etc. They have their own materials. It is important to note that no alterations should be made to the base mesh type after it is loaded otherwise the script will fail. The image (right) shows the result of pressing &amp;quot;Load Human Mesh&amp;quot;, with type set to Base Mesh.&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:both&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Btmc03.png|500px|right]] A human mesh is loaded into the viewport, and more tools are enabled:&lt;br /&gt;
&lt;br /&gt;
* Mesh Type: MakeClothes divides meshes into two types: human and clothing. This button displays the mesh type (Human/Clothing) of the active mesh and is greyed out if the active object is not a mesh. (MakeHuman normally detects the items accurately, but in the event of an error, you can click the button to change the mesh type so that it is treated as a clothing item instead of human if it is a clothing item and incorrectly detected).&lt;br /&gt;
* Create Vertex Groups From Selection: MakeClothes uses vertex groups to control the fitting.&lt;br /&gt;
* Make Clothes. This is the main entry point for the MakeClothes script. With one human and one piece of clothing selected, create an association between clothes vertices and human triangles, i.e. triplets of human vertices. Both meshes must have vertex groups with identical names, and each clothing vertex must belong to exactly one vertex group. The result of the association is saved in the file ObjectName/ObjectName.mhclo, in the default directory. This button is greyed out if the active object is not a mesh.&lt;br /&gt;
* Test Clothes. This buttons loads a piece of clothing (an .mhclo file) and fits it to the active mesh, which must be a human. Typically a second human is loaded on a different layer, and the quality of the clothes fitted to that character can immediately be checked in Blender. To test the clothes under the strictest conditions, the human model used for testing should be quite different from the human used for clothes-making. If the original character is an adult, Baby With Helpers is a good choice.&lt;br /&gt;
&lt;br /&gt;
If, instead, the Human With Helpers button is pressed, the full MakeHuman mesh including the helper geometry is loaded. Different materials are assigned to each type of helper geometry. The materials are ordered in the order of the vertex number. This makes it easy to peel off one helper type at a time.&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:both&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Glue clothes to the body ===&lt;br /&gt;
&lt;br /&gt;
The clothes are meshes that can be modelled directly in Blender, or in another package and then imported into Blender as an obj file. Note that the mesh type is Clothing, which is the default unless the mesh has been declared to be a human. A simple method to obtain a starting point modelling is to duplicate part of the human mesh and separate it from the human. However, in this case the duplicated mesh will still be a human. To change the mesh type, press the toggle button Human. The status is now changed into Clothing.&lt;br /&gt;
&lt;br /&gt;
After loading the human, the next step is to &amp;quot;glue&amp;quot; the clothes to the human, in order that they will automatically fit the body changes. To control this association, MakeClothes uses vertex groups. Each clothing vertex must belong to exactly one vertex group, and a vertex group with the same name must exist in the human mesh as well. On the human side you are more liberal with the vertex groups, i.e. you can have vertices that do not belong to any vertex group or to more then one vertex group, so these vertex groups can overlap. Only human vertices in the correct vertex group will be considered when making clothes. There are special vertex groups for teeth (see: [[Documentation:Controlling the result with vertex groups|Controlling the result with vertex groups]]) and rigid vertex groups beginning with '*'.&lt;br /&gt;
&lt;br /&gt;
Vertex groups speed up the clothes-making process by pruning the search tree, and can be used to control the appearance of clothes as well. However, assigning vertex groups can be quite tedious, and in many cases it is sufficient to let MakeClothes create vertex groups automatically. This is done automatically when a human mesh is loaded. If a clothing mesh does not have any vertex groups, it is also done automatically, when the MakeClothes button is pressed.&lt;br /&gt;
&lt;br /&gt;
=== Automatic vertex groups ===&lt;br /&gt;
&lt;br /&gt;
[[File:Btmc04.png|500px|right]] If vertex groups need to be reassigned, for example because a piece of clothing has been edited, the automatic vertex groups can be used. When the human is selected, there is a button, visible in the image (above right), called &amp;quot;Create Vertex Groups From Selection&amp;quot;. Selecting a cloth, the button changes to &amp;quot;Create Vertex Groups&amp;quot;. Both the buttons do the same thing, but there is a little difference: in the human it is possible to generate the vertex groups only for a sub set of the vertices (selected in edit mode), while for clothing the vertex groups must include all vertices. This is because we need to associate only a part of the human vertices with all vertices of the clothing. For example, we need to associate all the vertices of a skirt with the human torso only.&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:both&amp;quot; /&amp;gt;&lt;br /&gt;
[[File:Btmc05.png|500px|right]] Pressing the button, the following vertex groups are created:&lt;br /&gt;
&lt;br /&gt;
* Mid: Vertices on or very close to the center line (|x| &amp;lt; 0:001).&lt;br /&gt;
* Left: Vertices to the left of the center line (x &amp;gt; 0:001). For a human the Mid vertices are also included in the Left group.&lt;br /&gt;
* Right. Vertices to the right of the center line (x z 0:001). For a human the Mid vertices are also included in the Right group.&lt;br /&gt;
* Delete: An empty group only created for humans. Human vertices hidden by the piece of clothing can be added to this groups. These vertices are then optionally deleted when the clothing is applied in MakeHuman, thus avoiding that blotches of skin poking through the clothes. Note that when a vertex is deleted, so are all faces containing this vertex. Don't assign a vertex to the Delete group unless all faces containing it are hidden by the pieces of clothing.&lt;br /&gt;
In the images (right), we can see the vertices assigned to the Mid and Left groups for a nude human.&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:both&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== What if automatic vertex groups don't work? ===&lt;br /&gt;
&lt;br /&gt;
Sometimes, a piece of clothing made with MakeClothes seems to work just fine&amp;amp;mdash;until you try it on a character not shaped exactly life the target used in MakeClothes, at which point all sorts of strange distortions may occur.  Why does this happen? &lt;br /&gt;
&lt;br /&gt;
When you use MakeClothes, at some point you have to load a target object (&amp;quot;Load Human Mesh&amp;quot;).  These come in two basic varieties, with helpers (e.g., &amp;quot;Average Female With [sic] Helpers&amp;quot;) and without (e.g., &amp;quot;Average Female&amp;quot;); the obvious difference is that the &amp;quot;With Helpers&amp;quot; objects include not only the human body, but the &amp;quot;helpers&amp;quot; mentioned briefly in the previous section:  they're a bunch of vertices that represent different types of clothing, and hair.  Thus, just below the waist, if you examine the human mesh closely, you'll find three layers of vertices:  the body itself, a tights &amp;quot;object&amp;quot; that lies just on top of the body, and a skirt &amp;quot;object&amp;quot; that conforms to the body in places, but stretches over it in others (between the legs, to be precise).&lt;br /&gt;
&lt;br /&gt;
For the modeler, the obvious use of these targets (&amp;quot;human meshes&amp;quot;) is to fit clothes; if you use the &amp;quot;with Helpers&amp;quot; versions, you can also use the helper &amp;quot;objects&amp;quot; as templates for creating clothes (this works well for skirts or hair, but with shirts, you run into the problem that the edge loops don't coincide with where you'd want to put seams).  However, the targets also serve another purpose:  when you hit the &amp;quot;Create Vertex Groups&amp;quot; button and then the &amp;quot;Make Clothes&amp;quot; button, the program calculates the distance between each vertex of the item of clothing and the nearest vertices in the human mesh, and then uses these relationships to deform the item of clothing when the body moves.  &lt;br /&gt;
&lt;br /&gt;
If the vertices in the clothing are associated with vertices in the human mesh that have a very different shape, bad things tend to happen.   To avoid this problem, you have to do three things before you hit &amp;quot;Create Vertex Groups&amp;quot; :&lt;br /&gt;
&lt;br /&gt;
#  Select the human mesh, and go into &amp;quot;Edit&amp;quot; mode.  Select only the vertices that make up the appropriate helper object (or in some cases, like a long coat or a dress, objects).  This can be tricky to do by hand, since some objects cover others (the &amp;quot;Hair&amp;quot; object makes the upper part of the &amp;quot;Tights&amp;quot; object, which is used for shirts, especially hard to work with), and you can't just delete the stuff you don't need, since this fouls up the program.  Fortunately, each helper object has a stand-in material with a different color, and there's a handy &amp;quot;Show Selection&amp;quot; button that automatically selects the most commonly used sets of vertices (&amp;quot;Body&amp;quot;, &amp;quot;Tights&amp;quot;, &amp;quot;Skirt&amp;quot;, &amp;quot;Coat&amp;quot;, and &amp;quot;Hair&amp;quot;).  Doing this will eliminate a lot of the &amp;quot;wedgie&amp;quot; effect, which is due mostly to the skin-tight contours of the body itself and the tights helper in the area around the crotch.  (A similar problem occurs between the breasts, with clothes sticking inside the cleavage like a rubber wetsuit, rather than stretching across the gap like most fabrics do.) &lt;br /&gt;
#  Unselect all the vertices that aren't directly underneath the clothes in question.  Thus, if you're making a short skirt, not only will you not select the layers of body and tights vertices beneath the skirt helper object, but you'll make sure that skirt helper vertices that lie below your skirt's hemline (or above its waist) also aren't selected.  This step eliminates some distortions (huge wrinkles, mostly) that occur for clothing whose vertices are far away from the body.&lt;br /&gt;
#  Finally, get rid of vertices in &amp;quot;crevices&amp;quot;.  For reasons that are not entirely clear (better understanding of the body than of clothes on the part of the sculptor, probably), the shapes of the helper objects don't correspond very well to real clothes in certain places.  As mentioned above, the upper tights follow the contour of the skin between the breasts, and the lower part of the tights dips into the &amp;quot;crack&amp;quot; between the buttocks, and clings skin-tight against the area where the legs join&amp;amp;mdash;as if it were painted on.  The skirt helper at least stretches across the space between the legs, but it, too, dips into the crack between the buttocks, rather than stretching between the buttocks like a real skirt would.  Unselect the vertices in question:  fortunately, they're easy to find, because they all lie at or near the center line of the human mesh (that is, points whose &amp;quot;X&amp;quot; value is 0, and which lie on the plane that divides the left and right sides of the body).  You might want to substitute other points that don't lie directly beneath the clothes, but which don't dip into the crevices.  This step should eliminate almost all of the wedgie effect not eliminated by step #1.&lt;br /&gt;
&lt;br /&gt;
=== Generate the clothes file ===&lt;br /&gt;
&lt;br /&gt;
When both clothing and human has the vertex groups with same name, just press the MakeClothes button to generate the files.&lt;br /&gt;
They will be located in your HOME/makehuman/v1/data/clothes, in order to be inbcluded automatically in MakeHuman.&lt;br /&gt;
&lt;br /&gt;
== Advanced tools ==&lt;br /&gt;
&lt;br /&gt;
Under the main buttons of Makeclothes, there are seven hidden panels that can be activated clicking the checkbox. Let's see their meaning.&lt;br /&gt;
&lt;br /&gt;
=== Show selection, Show Materials, Show UV projection ===&lt;br /&gt;
&lt;br /&gt;
[[File:Btmc06.png|right]]&lt;br /&gt;
&lt;br /&gt;
*Show selection. This feature is just a shortcut to quickly select some part of the human. So, instead of classic Blender selection (go to edit mode, move the mouse on a vertex and press Lkey to select the linked vertices), you can just press these buttons.&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:both&amp;quot; /&amp;gt;&lt;br /&gt;
[[File:Btmc07.png|right]]&lt;br /&gt;
* Show Materials. This shows a button to export the materials only. This is useful when there are no changes to the geometry, but only to the material, in order to avoid recalculating everything.&lt;br /&gt;
&lt;br /&gt;
* Show UV projection. This section is useful mainly for making proxy meshes.&lt;br /&gt;
** Recover seams. Creates a Seam object, which has edges where the selected mesh's UV layout has seams. The Seam object is intended to be a reference for marking seams for the clothing.&lt;br /&gt;
** Auto seams.&lt;br /&gt;
** Project UVs. Automatically create a UV layout for the clothing, compatible with the human's UV coordinates. This is intended for the mask UV layer, which must be compatible with the body mesh for all clothes. The actual texture can use a different UV layer which can be laid out in any desirable manner.&lt;br /&gt;
** Reexport Mhclo file.The mhclo file must be resaved when the mask UVs have been defined. This can be done by pressing Make clothes again, but Reexport Mhclo file is faster.&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:both&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Show ZDepth, Show Offset scaling ===&lt;br /&gt;
 &lt;br /&gt;
[[File:Btmc08.png|right]]&lt;br /&gt;
&lt;br /&gt;
* Show ZDepth. This option is used to assign a depth to the cloth, in order to hide skin and clothes which are covered by clothes on top of it. The Z depth specifies the stacking order, which decides which clothes should hide others. Normally the Z depth ranges between 0 (skin) and 100 (external accessories such as backpacks).&lt;br /&gt;
** Depth name. Roughly indicates the preferred Z depth for various clothes types. The choices are: Body, Underwear and Lingerie, Socks and Stockings, Shirt and Trousers, Sweater, Indoor Jacket, Shoes and Boots, Coat, Backpack.&lt;br /&gt;
** Set Z depth.Set the Z depth depending on the selected depth name.&lt;br /&gt;
** Z depth.The value of the Z depth. This is changed by the Set Z depth button, but can be set manually for fine-tuning.&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:both&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Btmc09.png|right]]&lt;br /&gt;
&lt;br /&gt;
* Show Offset scaling. The location of a clothing vertex depends on two data: a point on a body triangle, described in barycentric coordinates, and the offset from that point. The offset is scaled in the X, Y and Z directions depending on the size of a certain body part.&lt;br /&gt;
** Body Part. Set this to the body part which is most affected. The choices are: Custom, Body, Genital, Head, Torso, Arm, Hand, Leg, Foot.&lt;br /&gt;
** Examine Boundary. Select the boundary vertices with Set boundary is invoked.&lt;br /&gt;
** Set Boundary. Set the boundary to vertices determined by the selected body part.&lt;br /&gt;
** Custom Boundary. To manually set the bounday box.&lt;br /&gt;
** X1, X2, Y1, Y2, Z1, Z2. The vertex numbers of the six vertices which define the scaling boundary. The X scale is determined from the distance between vertices X1 and X2, the Y scale by Y1 and Y2, and the Z scale by Z1 and Z2.&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:both&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Show Settings, Show License ===&lt;br /&gt;
&lt;br /&gt;
[[File:Btmc10.png|right]]&lt;br /&gt;
* Show Setting. The settings include the author name and the export path. It's possible to save and restore the settings. &lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:both&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Btmc11.png|right]]7&lt;br /&gt;
* Show License.This set of options are to add the author name, the type of license and the tags for clothes. Licensing information to be put at the top of the exported mhclo file. It consists of three strings that can contain arbitary text.&lt;br /&gt;
** Author. Defaults to: Unknown.&lt;br /&gt;
** License. Defaults to: AGPL3&lt;br /&gt;
** HomePage. Defaults to: &amp;lt;NOWIKI&amp;gt;http://www.makehuman.org/ -- http://www.makehuman.org/&amp;lt;/NOWIKI&amp;gt;&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:both&amp;quot; /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mtknife</name></author>	</entry>

	<entry>
		<id>http://www.makehumancommunity.org/w/index.php?title=Documentation:Clothes&amp;diff=1212</id>
		<title>Documentation:Clothes</title>
		<link rel="alternate" type="text/html" href="http://www.makehumancommunity.org/w/index.php?title=Documentation:Clothes&amp;diff=1212"/>
				<updated>2016-11-04T02:49:31Z</updated>
		
		<summary type="html">&lt;p&gt;Mtknife: Added tips on fixing distortions by using custom vertex groups.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
MakeClothes, as its name implies, is a Blender addon that is used to construct clothing assets for use in the MakeHuman program. Clothes can be modeled using any technique that is natural. For example, clothing can be modeled from scratch, or by altering either the human mesh or the “clothing helpers” (see below) provided by the MakeClothes tool. When designing and modeling a clothing item, there are two restrictions that should be kept in mind. First, the algorithm for mapping a clothing mesh to the human mesh requires that the clothing mesh consists entirely of quad faces. Second, it is important to know that MakeClothes supports only one material per item of clothing.&lt;br /&gt;
&lt;br /&gt;
Upon completing the MakeClothes workflow, a new folder will be created by the tool within your HOME/makehuman/v1/data/clothes. That folder will assume the unique name that the user provides for the clothing item. This folder will be populated with the assets necessary to make the item available in MakeHuman. The one additional, useful but not essential, item that the user must supply is a thumbnail icon for the clothing. The thumbnail icon can be created with any image editing program as a 128 x128 pixel image in .png format. The file should then be saved in the same folder as the other assets and the extension changed to .thumb.&lt;br /&gt;
&lt;br /&gt;
== Standard Tools ==&lt;br /&gt;
&lt;br /&gt;
=== Using MakeClothes addon ===&lt;br /&gt;
&lt;br /&gt;
[[File:Btmc01.png|left]] MakeClothes is controlled by the MakeClothes panel in the N-shelf to the right of the viewport. It consists of the main buttons that are always visible, and several hidden sections that can be displayed by enabling a checkbox.&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:both&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Btmc02.png|500px|right]] &lt;br /&gt;
&lt;br /&gt;
The main section contains the following:&lt;br /&gt;
* Type: Specifies the character to be used as a reference. It can be one of the following:&lt;br /&gt;
** Base Mesh: The MakeHuman mesh without any targets applied.&lt;br /&gt;
** Average Male: A caucasian young male.&lt;br /&gt;
** Average Female: A caucasian young female.&lt;br /&gt;
** Average Child: A caucasian young child.&lt;br /&gt;
** Average Baby: A caucasian young baby.&lt;br /&gt;
** Base Mesh with Helpers: The MakeHuman mesh without any targets applied.&lt;br /&gt;
** Average Male with Helpers: A caucasian young male.&lt;br /&gt;
** Average Female with Helpers: A caucasian young female.&lt;br /&gt;
** Average Childwith Helpers: A caucasian young child.&lt;br /&gt;
** Average Baby with Helpers: A caucasian young baby.&lt;br /&gt;
*Load Human mesh: the button to load the selected type into the scene.&lt;br /&gt;
&lt;br /&gt;
Note:&amp;quot;helpers&amp;quot; in MakeHuman are a type of special, invisible geometry over the base mesh which can be loaded to help model clothes, for example, a helper sweater, helper tights, etc. They have their own materials. It is important to note that no alterations should be made to the base mesh type after it is loaded otherwise the script will fail. The image (right) shows the result of pressing &amp;quot;Load Human Mesh&amp;quot;, with type set to Base Mesh.&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:both&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Btmc03.png|500px|right]] A human mesh is loaded into the viewport, and more tools are enabled:&lt;br /&gt;
&lt;br /&gt;
* Mesh Type: MakeClothes divides meshes into two types: human and clothing. This button displays the mesh type (Human/Clothing) of the active mesh and is greyed out if the active object is not a mesh. (MakeHuman normally detects the items accurately, but in the event of an error, you can click the button to change the mesh type so that it is treated as a clothing item instead of human if it is a clothing item and incorrectly detected).&lt;br /&gt;
* Create Vertex Groups From Selection: MakeClothes uses vertex groups to control the fitting.&lt;br /&gt;
* Make Clothes. This is the main entry point for the MakeClothes script. With one human and one piece of clothing selected, create an association between clothes vertices and human triangles, i.e. triplets of human vertices. Both meshes must have vertex groups with identical names, and each clothing vertex must belong to exactly one vertex group. The result of the association is saved in the file ObjectName/ObjectName.mhclo, in the default directory. This button is greyed out if the active object is not a mesh.&lt;br /&gt;
* Test Clothes. This buttons loads a piece of clothing (an .mhclo file) and fits it to the active mesh, which must be a human. Typically a second human is loaded on a different layer, and the quality of the clothes fitted to that character can immediately be checked in Blender. To test the clothes under the strictest conditions, the human model used for testing should be quite different from the human used for clothes-making. If the original character is an adult, Baby With Helpers is a good choice.&lt;br /&gt;
&lt;br /&gt;
If, instead, the Human With Helpers button is pressed, the full MakeHuman mesh including the helper geometry is loaded. Different materials are assigned to each type of helper geometry. The materials are ordered in the order of the vertex number. This makes it easy to peel off one helper type at a time.&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:both&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Glue clothes to the body ===&lt;br /&gt;
&lt;br /&gt;
The clothes are meshes that can be modelled directly in Blender, or in another package and then imported into Blender as an obj file. Note that the mesh type is Clothing, which is the default unless the mesh has been declared to be a human. A simple method to obtain a starting point modelling is to duplicate part of the human mesh and separate it from the human. However, in this case the duplicated mesh will still be a human. To change the mesh type, press the toggle button Human. The status is now changed into Clothing.&lt;br /&gt;
&lt;br /&gt;
After loading the human, the next step is to &amp;quot;glue&amp;quot; the clothes to the human, in order that they will automatically fit the body changes. To control this association, MakeClothes uses vertex groups. Each clothing vertex must belong to exactly one vertex group, and a vertex group with the same name must exist in the human mesh as well. On the human side you are more liberal with the vertex groups, i.e. you can have vertices that do not belong to any vertex group or to more then one vertex group, so these vertex groups can overlap. Only human vertices in the correct vertex group will be considered when making clothes. There are special vertex groups for teeth (see: [[Documentation:Controlling the result with vertex groups|Controlling the result with vertex groups]]) and rigid vertex groups beginning with '*'.&lt;br /&gt;
&lt;br /&gt;
Vertex groups speed up the clothes-making process by pruning the search tree, and can be used to control the appearance of clothes as well. However, assigning vertex groups can be quite tedious, and in many cases it is sufficient to let MakeClothes create vertex groups automatically. This is done automatically when a human mesh is loaded. If a clothing mesh does not have any vertex groups, it is also done automatically, when the MakeClothes button is pressed.&lt;br /&gt;
&lt;br /&gt;
=== Automatic vertex groups ===&lt;br /&gt;
&lt;br /&gt;
[[File:Btmc04.png|500px|right]] If vertex groups need to be reassigned, for example because a piece of clothing has been edited, the automatic vertex groups can be used. When the human is selected, there is a button, visible in the image (above right), called &amp;quot;Create Vertex Groups From Selection&amp;quot;. Selecting a cloth, the button changes to &amp;quot;Create Vertex Groups&amp;quot;. Both the buttons do the same thing, but there is a little difference: in the human it is possible to generate the vertex groups only for a sub set of the vertices (selected in edit mode), while for clothing the vertex groups must include all vertices. This is because we need to associate only a part of the human vertices with all vertices of the clothing. For example, we need to associate all the vertices of a skirt with the human torso only.&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:both&amp;quot; /&amp;gt;&lt;br /&gt;
[[File:Btmc05.png|500px|right]] Pressing the button, the following vertex groups are created:&lt;br /&gt;
&lt;br /&gt;
* Mid: Vertices on or very close to the center line (|x| &amp;lt; 0:001).&lt;br /&gt;
* Left: Vertices to the left of the center line (x &amp;gt; 0:001). For a human the Mid vertices are also included in the Left group.&lt;br /&gt;
* Right. Vertices to the right of the center line (x z 0:001). For a human the Mid vertices are also included in the Right group.&lt;br /&gt;
* Delete: An empty group only created for humans. Human vertices hidden by the piece of clothing can be added to this groups. These vertices are then optionally deleted when the clothing is applied in MakeHuman, thus avoiding that blotches of skin poking through the clothes. Note that when a vertex is deleted, so are all faces containing this vertex. Don't assign a vertex to the Delete group unless all faces containing it are hidden by the pieces of clothing.&lt;br /&gt;
In the images (right), we can see the vertices assigned to the Mid and Left groups for a nude human.&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:both&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== What if automatic vertex groups don't work? ===&lt;br /&gt;
&lt;br /&gt;
Sometimes, a piece of clothing made with MakeClothes seems to work just fine&amp;amp;mdash;until you try it on a character not shaped exactly life the target used in MakeClothes, at which point all sorts of strange distortions may occur.  Why does this happen? &lt;br /&gt;
&lt;br /&gt;
When you use MakeClothes, at some point you have to load a target object (&amp;quot;Load Human Mesh&amp;quot;).  These come in two basic varieties, with helpers (e.g., &amp;quot;Average Female With [sic] Helpers&amp;quot;) and without (e.g., &amp;quot;Average Female&amp;quot;); the obvious difference is that the &amp;quot;With Helpers&amp;quot; objects include not only the human body, but the &amp;quot;helpers&amp;quot; mentioned briefly in the previous section:  they're a bunch of vertices that represent different types of clothing, and hair.  Thus, just below the waist, if you examine the human mesh closely, you'll find three layers of vertices:  the body itself, a tights &amp;quot;object&amp;quot; that lies just on top of the body, and a skirt &amp;quot;object&amp;quot; that conforms to the body in places, but stretches over it in others (between the legs, to be precise).&lt;br /&gt;
&lt;br /&gt;
For the modeler, the obvious use of these targets (&amp;quot;human meshes&amp;quot;) is to fit clothes; if you use the &amp;quot;with Helpers&amp;quot; versions, you can also use the helper &amp;quot;objects&amp;quot; as templates for creating clothes (this works well for skirts or hair, but with shirts, you run into the problem that the edge loops don't coincide with where you'd want to put seams).  However, the targets also serve another purpose:  when you hit the &amp;quot;Create Vertex Groups&amp;quot; button and then the &amp;quot;Make Clothes&amp;quot; button, the program calculates the distance between each vertex of the item of clothing and nearest vertices in the human mesh, and then uses these relationships to deform the item of clothing when the body moves.  &lt;br /&gt;
&lt;br /&gt;
If the vertices in the clothing are associated with vertices in the human mesh that have a very different shape, bad things tend to happen.   To avoid this problem, you have to do three things before you hit &amp;quot;Create Vertex Groups&amp;quot; :&lt;br /&gt;
&lt;br /&gt;
#  Select the human mesh, and go into &amp;quot;Edit&amp;quot; mode.  Select only the vertices that make up the appropriate helper object (or in some cases, like a long coat or a dress, objects).  This can be tricky to do by hand, since some objects cover others (the &amp;quot;Hair&amp;quot; object makes the upper part of the &amp;quot;Tights&amp;quot; object, which is used for shirts, especially hard to work with), and you can't just delete the stuff you don't need, since this fouls up the program.  Fortunately, each helper object has a stand-in material with a different color, and there's a handy &amp;quot;Show Selection&amp;quot; button that automatically selects the most commonly used sets of vertices (&amp;quot;Body&amp;quot;, &amp;quot;Tights&amp;quot;, &amp;quot;Skirt&amp;quot;, &amp;quot;Coat&amp;quot;, and &amp;quot;Hair&amp;quot;).  Doing this will eliminate a lot of the &amp;quot;wedgie&amp;quot; effect, which is due mostly to the skin-tight contours of the body itself and the tights helper in the area around the crotch.  (A similar problem occurs between the breasts, with clothes sticking inside the cleavage like a rubber wetsuit, rather than stretching across the gap like most fabrics do.) &lt;br /&gt;
#  Unselect all the vertices that aren't directly underneath the clothes in question.  Thus, if you're making a short skirt, not only will you not select the layers of body and tights vertices beneath the skirt helper object, but you'll make sure that skirt helper vertices that lie below your skirt's hemline (or above its waist) also aren't selected.  This step eliminates some distortions (huge wrinkles, mostly) that occur for clothing whose vertices are far away from the body.&lt;br /&gt;
#  Finally, get rid of vertices in &amp;quot;crevices&amp;quot;.  For reasons that are not entirely clear (better understanding of the body than of clothes on the part of the sculptor, probably), the shapes of the helper objects don't correspond very well to real clothes in certain places.  As mentioned above, the upper tights follow the contour of the skin between the breasts, and the lower part of the tights dips into the &amp;quot;crack&amp;quot; between the buttocks, and clings skin-tight against the area where the legs join&amp;amp;mdash;as if it were painted on.  The skirt helper at least stretches across the space between the legs, but it, too, dips into the crack between the buttocks, rather than stretching between the buttocks like a real skirt would.  Unselect the vertices in question:  fortunately, they're easy to find, because they all lie at or near the center line of the human mesh (that is, points whose &amp;quot;X&amp;quot; value is 0, and which lie on the plane that divides the left and right sides of the body).  You might want to substitute other points that don't lie directly beneath the clothes, but which don't dip into the crevices.  This step should eliminate almost all of the wedgie effect not eliminated by step #1.&lt;br /&gt;
&lt;br /&gt;
=== Generate the clothes file ===&lt;br /&gt;
&lt;br /&gt;
When both clothing and human has the vertex groups with same name, just press the MakeClothes button to generate the files.&lt;br /&gt;
They will be located in your HOME/makehuman/v1/data/clothes, in order to be inbcluded automatically in MakeHuman.&lt;br /&gt;
&lt;br /&gt;
== Advanced tools ==&lt;br /&gt;
&lt;br /&gt;
Under the main buttons of Makeclothes, there are seven hidden panels that can be activated clicking the checkbox. Let's see their meaning.&lt;br /&gt;
&lt;br /&gt;
=== Show selection, Show Materials, Show UV projection ===&lt;br /&gt;
&lt;br /&gt;
[[File:Btmc06.png|right]]&lt;br /&gt;
&lt;br /&gt;
*Show selection. This feature is just a shortcut to quickly select some part of the human. So, instead of classic Blender selection (go to edit mode, move the mouse on a vertex and press Lkey to select the linked vertices), you can just press these buttons.&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:both&amp;quot; /&amp;gt;&lt;br /&gt;
[[File:Btmc07.png|right]]&lt;br /&gt;
* Show Materials. This shows a button to export the materials only. This is useful when there are no changes to the geometry, but only to the material, in order to avoid recalculating everything.&lt;br /&gt;
&lt;br /&gt;
* Show UV projection. This section is useful mainly for making proxy meshes.&lt;br /&gt;
** Recover seams. Creates a Seam object, which has edges where the selected mesh's UV layout has seams. The Seam object is intended to be a reference for marking seams for the clothing.&lt;br /&gt;
** Auto seams.&lt;br /&gt;
** Project UVs. Automatically create a UV layout for the clothing, compatible with the human's UV coordinates. This is intended for the mask UV layer, which must be compatible with the body mesh for all clothes. The actual texture can use a different UV layer which can be laid out in any desirable manner.&lt;br /&gt;
** Reexport Mhclo file.The mhclo file must be resaved when the mask UVs have been defined. This can be done by pressing Make clothes again, but Reexport Mhclo file is faster.&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:both&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Show ZDepth, Show Offset scaling ===&lt;br /&gt;
 &lt;br /&gt;
[[File:Btmc08.png|right]]&lt;br /&gt;
&lt;br /&gt;
* Show ZDepth. This option is used to assign a depth to the cloth, in order to hide skin and clothes which are covered by clothes on top of it. The Z depth specifies the stacking order, which decides which clothes should hide others. Normally the Z depth ranges between 0 (skin) and 100 (external accessories such as backpacks).&lt;br /&gt;
** Depth name. Roughly indicates the preferred Z depth for various clothes types. The choices are: Body, Underwear and Lingerie, Socks and Stockings, Shirt and Trousers, Sweater, Indoor Jacket, Shoes and Boots, Coat, Backpack.&lt;br /&gt;
** Set Z depth.Set the Z depth depending on the selected depth name.&lt;br /&gt;
** Z depth.The value of the Z depth. This is changed by the Set Z depth button, but can be set manually for fine-tuning.&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:both&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Btmc09.png|right]]&lt;br /&gt;
&lt;br /&gt;
* Show Offset scaling. The location of a clothing vertex depends on two data: a point on a body triangle, described in barycentric coordinates, and the offset from that point. The offset is scaled in the X, Y and Z directions depending on the size of a certain body part.&lt;br /&gt;
** Body Part. Set this to the body part which is most affected. The choices are: Custom, Body, Genital, Head, Torso, Arm, Hand, Leg, Foot.&lt;br /&gt;
** Examine Boundary. Select the boundary vertices with Set boundary is invoked.&lt;br /&gt;
** Set Boundary. Set the boundary to vertices determined by the selected body part.&lt;br /&gt;
** Custom Boundary. To manually set the bounday box.&lt;br /&gt;
** X1, X2, Y1, Y2, Z1, Z2. The vertex numbers of the six vertices which define the scaling boundary. The X scale is determined from the distance between vertices X1 and X2, the Y scale by Y1 and Y2, and the Z scale by Z1 and Z2.&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:both&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Show Settings, Show License ===&lt;br /&gt;
&lt;br /&gt;
[[File:Btmc10.png|right]]&lt;br /&gt;
* Show Setting. The settings include the author name and the export path. It's possible to save and restore the settings. &lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:both&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Btmc11.png|right]]7&lt;br /&gt;
* Show License.This set of options are to add the author name, the type of license and the tags for clothes. Licensing information to be put at the top of the exported mhclo file. It consists of three strings that can contain arbitary text.&lt;br /&gt;
** Author. Defaults to: Unknown.&lt;br /&gt;
** License. Defaults to: AGPL3&lt;br /&gt;
** HomePage. Defaults to: &amp;lt;NOWIKI&amp;gt;http://www.makehuman.org/ -- http://www.makehuman.org/&amp;lt;/NOWIKI&amp;gt;&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:both&amp;quot; /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mtknife</name></author>	</entry>

	</feed>