This guide walks through fitting an outfit to another avatar with Outfit Retargeting (Super MochiFitter)
and fixing what little clipping remains with the Mesh Editor, using the actual screens.
It also covers what to prepare before you start and what to do when something goes wrong.
Highheel = 50 on Cloth_boots and Cloth_tights (to match Highheel = 50 on the body)
Before: Shinano→After: Beryl
Both are taken with the same camera at the same scale. Even with a very different height and build, the outfit is reshaped to follow Beryl's body.
PART 0
Before you start
MochiFitter is a Unity editor extension that converts an outfit made for one avatar so that it fits the body of another.
The conversion uses per-avatar conversion data called "profiles".
This part covers what a conversion needs and how profiles work. If you only want the steps, go on to Part 1.
What you need
To put an outfit made for avatar A on avatar B, you need the following.
The reverse profile of avatar A (used as the source). MochiFitter itself comes with forward and reverse profiles for Shinano, Kikyo, Manuka and Beryl.
The forward profile of avatar B (used as the target).
Avatar B itself. The FBX of the target avatar has to be in the Unity project.
The Prefab of the outfit, and the packages the outfit uses (shaders, Modular Avatar and so on). When a package is missing, the outfit has Missing Scripts and cannot be converted.
What forward and reverse mean is explained under Forward and reverse.
You do not need Blender. The conversion is done by the executable that comes with MochiFitter.
The standalone and bundled editions, and what the names refer to
MochiFitter is distributed on its own and also bundled with Beryl. The two are basically the same, and the bundled edition is updated like the standalone one.
The difference is that the feature that creates profiles automatically (Profile Generation) is, for now, only in the edition bundled with Beryl.
MochiFitter (the old method)
On screen, Outfit Retargeting Blender (deprecated). The first method, which converts with Blender. It is shown after pressing Use the legacy Blender version at the lower right of Mode Selection.
Super MochiFitter
On screen, Outfit Retargeting Super MochiFitter. It converts with the bundled executable. This is what this guide explains.
Hyper MochiFitter
On screen, Profile Generation. It creates an avatar's profile automatically (only in the edition bundled with Beryl). There is an overview in Part 3.
Installing and updating
Import the distributed unitypackage into your Unity project. The files go into Assets/OutfitRetargetingSystem.
To update, import the new unitypackage over the old one.
The current version is shown next to "MochiFitter" at the top of the window.
When a newer version is out, a notice appears the first time you open the MochiFitter window after starting Unity.
When something does not work, try updating to the latest version first.
Do not rename or move the folder
If Assets/OutfitRetargetingSystem is moved or renamed, profiles you import later are unpacked to the original location and are not loaded
(details).
Adding profiles
Profiles are distributed as unitypackages. Importing one puts files like these under Assets/OutfitRetargetingSystem/Editor.
config_….json: the conversion settings (from which avatar to which avatar)
avatar_data_….json: the avatar's bones and shape keys
posediff_….json, deformation_….npz and others: the differences in pose and body shape
The files are loaded whether they are directly in the Editor folder or in a subfolder of it.
Files outside the Editor folder are not loaded.
After importing, press Rescan Conversion Options in the MochiFitter window.
You can check whether the profile was loaded under Installed Profiles.
Forward and reverse
An outfit is converted in two stages: from the source avatar to a shared intermediate body (Template), and from there to the target avatar.
The data of a profile comes in these two directions.
Source avatar A
The avatar the outfit was made for.
→A's reverse data
Intermediate body Template
The body every profile goes through.
→B's forward data
Target avatar B
The avatar you want to dress.
Forward
Fits outfits of other avatars onto the profile's avatar. An avatar with forward data can be chosen as the target.
Reverse
Fits outfits of the profile's avatar onto other avatars. An avatar with reverse data can be chosen as the source.
Many distributed profiles contain only the forward data. Unless the product page says otherwise, assume there is no reverse data.
An avatar with only forward data can be chosen as the target, but it does not appear in the list of sources.
Examples
Putting an outfit for Shinano on avatar X: you need Shinano's reverse data (included with MochiFitter) and X's forward data.
Putting an outfit for avatar X on Beryl: you need X's reverse data and Beryl's forward data (included with MochiFitter). If X's profile has no reverse data, the conversion is not possible.
When either the forward or the reverse data is missing altogether, no conversion pair can be formed at all.
Installed Profiles then says "No avatar can be the outfit's source" or "No avatar can be the target"; add a profile that contains the missing direction.
What to check before buying an outfit or a profile
Outfits: whether the supported avatars include one whose reverse profile you have. Outfits for the four avatars included with MochiFitter (Shinano, Kikyo, Manuka and Beryl) can be used as the source without any extra profile.
Profiles: whether it has only forward data or reverse data as well. To put outfits for that avatar on other avatars, you need the reverse data.
Shape keys: if you also want the converted outfit to get the target avatar's body shape keys (breast size and so on), the profile has to support generating shape keys.
Hair, hats and other head parts: only their position and size are matched; their shape is not changed. They may need separate adjustment.
Gimmicks and animations: they may stop working after the conversion.
Avatars that share a body with another avatar
A profile is made for the shape of an avatar's body and the names of its bones.
An avatar that shares its body with another avatar (for example, a body combined with a different head) can sometimes use the profile of the avatar that body belongs to, as long as the body shape and the bone names are the same.
Whether it can is something to check on the profile's distribution page, where the supported avatars are listed.
To use it as the target, choose the body's avatar under Target Avatar.
When the target avatar's FBX is not found automatically, you can assign it by hand under Base Avatar FBX.
Only an FBX that contains the body mesh with the name the profile specifies can be assigned.
Reading "Installed Profiles"
Filtered by "shi". Noshime_Re has only forward data, so its Source column shows "—".
On the Outfit Retargeting screen, open Installed Profiles below the avatar selection to see the loaded profiles listed by avatar.
The numbers in the heading are how many avatars can be the target and how many can be the source.
Target
○ means the forward data is there and the avatar can be chosen as the target avatar.
Source
○ means the reverse data is there and the avatar can be chosen as the source avatar. An avatar with "—" does not appear in the list of sources.
Shape Keys
The number of shape keys that are added to the outfit when this avatar is the target. "—" means the profile does not support generating shape keys.
Type part of an avatar's name into Filter to show only the avatars whose names contain it.
"Minimal" next to a name marks a profile made with the Minimal setup of Profile Generation; "direct to" and "direct from" mark conversion data that does not go through Template.
When a profile could not be loaded, the heading shows how many items there are "to check", and the reasons appear above the list.
What each one means and what to do is under Profiles in Part 4.
If an avatar you added is not in the list and no reason is shown, try Narrowing down the cause.
PART 1
Outfit Retargeting (Super MochiFitter)
Outfit Retargeting is the mode that converts an outfit made for one avatar to fit the body of another.
It does not need Blender; the conversion is done by the executable that comes with MochiFitter.
The conversion data (profiles) of both the source and the target avatar have to be installed.
The source needs its reverse profile and the target its forward profile.
(Outfit Retargeting (Blender) is the old version and is going to be removed.)
Q. What are the forward and reverse directions of a profile?
Forward is the conversion that fits outfits of other avatars onto the profile's avatar.
Reverse is the conversion that fits outfits of the profile's avatar onto other avatars.
When a distributed profile does not say, it is safer to assume it is forward only, with no reverse data.
MochiFitter itself includes profiles in both directions for Shinano, Kikyo, Manuka and Beryl.
1
Open the window
Choose Tools › MochiFitter from the menu.
Under "Mode Selection" at the top of the window, choose Outfit Retargeting Super MochiFitter.
This mode is selected by default.
言語 / Language at the top right switches the display between Japanese and English.
The Mesh Editor button next to it is used in Part 2.
2
Choose the outfit and avatars
1234
Set up to convert Shinano's default outfit for Beryl.
1Outfit Prefab
Drag the outfit's Prefab, ShinanoCostume.prefab, in from the Unity main window. Take care not to drag the FBX by mistake. The total triangle count is shown below it, and a notice or a warning appears above 300,000, 400,000 and 500,000.
2Target Avatar
Choose the avatar you want to dress. In this example, Beryl.
3Source Avatar
Choose the avatar the outfit was made for. In this example, Shinano → Beryl (via Template).
When the source can be told from the outfit Prefab, it is chosen automatically.
"via Template" means the conversion is done in two stages through the shared intermediate body, Template.
4Conversion Data
Base Avatar FBX and Config JSON are filled in automatically from the avatar selection.
When the target avatar's FBX is not found, a red message appears; assign the FBX by hand or import the target avatar into the project.
When an avatar is not in the list
Right after adding conversion data, press Rescan Conversion Options at the top right of the avatar selection box to update the lists.
If it still does not appear, open Installed Profiles just below to see which profiles were loaded and why the others were not (how to read it).
3
Blend Shape Options
This is where you declare which shape keys of the body the outfit was made to fit.
The list shows the shape keys registered in the conversion data of the source avatar (Shinano).
Shinano's default outfit is made to fit Shinano's body with Corset and Toe_heels at 100.
So check Toe_heels and Corset and set their values to 100.
Toe_heels and Corset checked, with the value at 100. The value can be entered only on checked rows.
The check box (Shape Key)
Declares that the outfit was made on the assumption that this shape key is used. A typical case is a shoe that has no heel shape key of its own and is worn with the body's heel shape key at 100.
Value
The value of the shape key (0 to 100) that the outfit was fitted to. Normally leave it at 100.
Custom Name
When the outfit has a shape key with the same meaning under another name, enter the outfit's name for it. This only pairs the names, so the check box is not needed in that case.
When the outfit Prefab has a Modular Avatar Shape Changer (a setting that moves the body's shape keys while the outfit is worn), the checks and values are filled in from it automatically.
Only the "Set" entries, which change the value of a body shape key as soon as the outfit is put on, fill them in.
"Delete" entries (which remove the part of the body that the shape key moves), Shape Changers on an inactive or EditorOnly object ("Inverse Condition" is followed as well), and entries that point at a mesh of the outfit itself do not.
A Shape Changer under a menu item (Menu Item) fills them in even when that menu item is off by default.
You can still change a check that was filled in, like any other.
What a check does
The conversion is built to start from the source avatar's plain state, with every shape key at 0.
If an outfit fitted to a corseted waist or to feet raised on heels is converted as it is,
the tightened waist and the tiptoe shape are treated as part of the outfit's design, and the result does not fit the body of the target.
The outfit as its author made it
Fitted to the body with Corset and Toe_heels at 100. This is the outfit's default shape.
→Synthesized with the reverse field
The outfit in the "plain state"
What the outfit would look like on the body with the shape keys back at 0. Kept as a working shape key.
→Converted plain state to plain state
The converted outfit
Fitted to the plain body of the target avatar. The working shape keys are removed before output.
With a check, the conversion first (before the base pose is applied) synthesizes "the outfit in the plain state" with the source avatar's reverse field
and converts that. The synthesis only affects the weight range of the bones the shape key concerns (around the feet, for a heel).
With a value below 100, the outfit is taken back by the corresponding amount.
The shape the author made is not lost; it is kept and used as the starting point when shape keys such as the heel are rebuilt for the target.
This setting only takes effect in the first stage of the conversion (Shinano → Template in this example).
Corset not checkedCorset checked
Without the Corset check, Cloth_dress, fitted to the tightened waist, is converted just as thin, and Beryl's body pokes through above the belt.
Toe_heels is checked in both, and both are taken from the same angle.
More detail
How the reverse field synthesis works is illustrated in chapter 8, "出発点の状態合わせ — Blend Shape Options", of the explainer bundled with the package, "衣装リターゲットの仕組み" (in Japanese).
4
Meshes to Convert
Use this when you want to convert only part of an outfit, or keep the shape of some meshes intact. Open the collapsed Meshes to Convert to see
the meshes in the outfit Prefab; the three buttons on each row choose how that mesh is converted (the chosen button turns blue). "(5/5)" in the heading is the number of meshes that are converted out of the total
(when some meshes are set to Bones Only, their number is shown too).
Normally leave everything on Convert.
In this example all five meshes are converted. The number at the right of a row is that mesh's triangle count.
Convert
The mesh is converted to fit the target avatar as usual.
Bones Only
The mesh is not reshaped to follow the target's body; it is fitted to the target by the movement of the bones alone. Use it for accessories and hard parts that the conversion distorts.
In the output Prefab, the mesh's MF_Origin blend shape is set to 100. Lowering the value gives a shape between this and the normal conversion result.
The weights are fitted to the target as usual. The processing time is the same as for Convert.
It can only be chosen for skinned meshes (SkinnedMeshRenderer); on the row of a rigid mesh (MeshRenderer) the button is shown faintly and cannot be pressed. It also has no effect in a conversion that does not go through Template, where the mesh is converted normally.
Don't Convert
The mesh is not converted and is left out of the output Prefab, together with the children of its object. Fewer meshes also means a shorter processing time.
Convert All / Convert None
Switch every row at once. Execute Retargeting cannot be pressed when no mesh is on anything other than Don't Convert.
The choice belongs to the outfit Prefab; choosing another outfit Prefab puts everything back on Convert.
Objects tagged EditorOnly are never converted, so they are not listed.
5
Advanced Settings
Open the collapsed Advanced Settings to change the following five. Normally the defaults are fine.
This example is converted with the default settings.
Weight Transfer Shape Source
When you want the weights transferred with the avatar's body-shape shape keys set (larger breasts, for example), assign the root object of the avatar in that state. Leave the other shape keys (shrink keys and so on) at their default values.
Disable Triangulation (default: on)
When off, the meshes are triangulated to keep the front and back faces of thick outfits from clipping through each other. When on, quads are kept.
Enable Subdivision (default: off)
Keeps the polygons of a low-poly outfit from clipping through each other after the deformation. It makes the processing longer. For outfits with more than 100,000 polygons it is turned off automatically when the conversion runs.
Keep Shoe Shape (default: off)
Turn it on when shoes lose their shape in the conversion. Converting with it on sets MF_FootNeutral to 100 on the foot meshes of the output Prefab, such as shoes and socks, which keeps the pre-conversion shape and only fits its position, rotation and scale to the target's feet. You can adjust the strength afterwards with the MF_FootNeutral value of each mesh (see the Inspector image in step 8).
Keep Body-Hiding Settings (default: off)
Keeps the outfit's settings that hide the body under the clothes (such as Modular Avatar's Mesh Cutter). By default the ones that do not fit the target's body (cuts of the body by a mask or a plane, replaced body materials, shrink blend shapes) are removed from the output Prefab (details). Turn it on only when the target avatar has the same body as the source.
6
Run the retargeting
If Preflight Check, just above the run button, says "No problems found.", press
Execute Retargeting. When a required item is empty, the button cannot be pressed and
"Missing: …" below it lists what is missing.
Preflight Check shows the problems that can be known before running, with the reason and what to do. A red error blocks the run. A yellow warning does not, but read what it says. Open Guide opens the matching entry in Part 4.
Do not import packages or save scripts while the conversion is running. When Unity reloads its scripts, the conversion is interrupted.
While it runs, the progress, the elapsed time and the log are shown. Cancel stops it. The conversion in this example took about 40 seconds.
When it finishes, a dialog appears and a folder named
finalized_date_time_ShinanoCostume is created under Assets/OutfitRetargetingSystem/Outputs/.
The resulting Prefab is saved in it under the same name as the original outfit (ShinanoCostume.prefab).
The meshes are in retargeted_….omochi in the same folder.
After a conversion, "Last conversion result" appears at the bottom of the window. Select Prefab shows the Prefab in the Project window and Edit Mesh opens the Mesh Editor.
7
Put it on the avatar
The conversion result placed directly under the avatar.
Drag finalized_…_ShinanoCostume/ShinanoCostume.prefab from the Outputs folder onto the avatar in the Hierarchy
(Beryl_Kisekae (3) in this example) to make it a child.
From here on it is the same as putting on any outfit. In this example the Prefab is right-clicked and
Modular Avatar's Setup Outfit is run.
8
Match the heel value to the body
Cloth_boots and Cloth_tights now have Beryl's heel shape key,
Highheel. This example was converted with Toe_heels checked, that is, as an outfit meant to be worn with the heels raised, so right after the conversion the value is set to 100.
On Beryl_Kisekae (3), the avatar it is put on here, these shoes suit the body (Body) better with Highheel at 50.
The outfit's heel has to be at the same value as the body's, so select Cloth_boots and, under
Skinned Mesh Renderer › BlendShapes in the Inspector, set Highheel to 50. Set Cloth_tights to 50 as well.
Highheel of Cloth_boots set to 50. MF_Origin is a shape key for going back to the pre-conversion shape, and MF_FootNeutral is a helper shape key that keeps the pre-conversion shape while fitting its position, rotation and scale; leave both at 0 here. When the conversion is run with Keep Shoe Shape on under Advanced Settings, MF_FootNeutral is output at 100.
Highheel 0The toe of the shoe is off the groundHighheel 50The same value as the body. The shoe is on the groundHighheel 100 (right after the conversion)The heel of the shoe is off the ground
Highheel of the body is 50 in all three. Only the outfit's value differs; the left foot is shown from the outside.
That is all
The right-hand image at the top of the page is the outfit worn after these steps. When you change the heel value of the body, change the outfit's Highheel to the same value.
PART 2
Mesh Editor
A tool for fixing the meshes of a converted outfit by moving vertices in the Scene view.
Use it for the small clipping and distortions that remain after a conversion.
Shape edits are recorded in the blend shape you choose (or a new one). The original shape (Basis) is not changed.
Meshes of a conversion result, which are imported from an .omochi file, are written back into the .omochi file and reimported when you save. The original file is backed up under Library/MochiFitterMeshEdit/Backups.
Other meshes are copied to .asset files, and the Prefab is repointed to the copies.
About the example in this part
The clipping at the waist seen in the comparison in step 3 (Corset not checked) is fixed here with the Mesh Editor.
In a real conversion, the first thing to do is to set Blend Shape Options correctly and convert again.
Use the Mesh Editor for the clipping and distortions that still remain after that.
1
Opening it
Open it in any of these ways.
Tools › MochiFitter Mesh Editor in the menu
Mesh Editor at the top right of the MochiFitter window
Edit Mesh in the "Last conversion result" box. If the resulting Prefab is in the scene, it becomes the target; if not, a Place in Scene button appears.
If you select the outfit in the Hierarchy before opening it, it opens with that outfit as the target.
2
Choose the target and start editing
1234
1Outfit (scene)
Assign the outfit in the scene (the Prefab worn by the avatar). A Prefab asset in the Project cannot be edited directly.
2Meshes to edit
Check only the meshes you are going to fix. In this example, only Cloth_dress.
3Blend shape to edit
New shape: the edits are recorded in a new shape. The default name is ManualFix, and it is added with a weight of 100 when you save.
Existing shape: edits a shape the outfit already has. It is shown at 100% while editing, and saving does not change its weight.
4Start Editing
The editing boxes appear, and the vertices are shown in the Scene view.
While editing, the "Target" box shows the outfit, shape and meshes being edited. Press End Editing when you are done (step 7).
Names starting with "MF_" are reserved for MochiFitter internals. Give a new shape another name.
3
Select vertices
The vertices are selected where skin (the white area) shows just above the belt. Orange marks the selected vertices and purple to magenta the range that is affected. The band at the top shows the shape being edited, the radius, the number selected and the controls. (This screenshot was taken with the Japanese display; in English the band reads "Mesh Edit …" and "Selected … | Click/drag: select …".)
Display
Turns the vertices and the wireframe on and off, and X-ray (hidden vertices are also shown faintly).
Selecting
Click to select a vertex, drag to select a range. Shift adds, Ctrl removes.
Visible surface only / Projection
Chooses whether a range selection takes only the vertices visible at the front or also those behind them.
Select Island (L)
Selects the whole part (mesh island) connected to the selected vertices. Handy for moving a button or another small part as a whole.
4
Transform
Move, Rotate, Scale
Move the selected vertices with the handle in the Scene view. WER also switch between them. The axes can be the global axes or normal axes aligned with the surface.
Radius (m)
How far around the selected vertices moves along with them. At 0, only the selected vertices move. You can also change it with the mouse wheel while dragging, or Ctrl + wheel otherwise.
Falloff
How quickly the movement weakens with distance inside the radius (Smooth, Sphere, Root, Linear, Sharp, Constant).
Limit to mesh islands / how distance is measured
When on, only the part the selected vertices belong to is affected. The distance can then be measured "Along the surface", which leaves out areas that are close in space but far apart on the surface, such as the front and back of a sleeve or the next pleat.
In this example the radius is 0.02 m with Smooth, limited to islands and measured along the surface, and Mirror Editing (step 5) is on.
The selected vertices are moved about 6 mm outward with the red arrow (the X axis) of the move handle.
Right after moving the vertices outward. The skin above the belt is covered.
BeforeAfter
Only the right side was selected and moved; Mirror Editing fixed the left side at the same time.
5
Mirror editing and normals
Mirror editing (X)
Edits symmetrically across the left and right (local X) of the avatar's root. Mirror Selection adds the matching vertices on the other side to the selection.
Symmetry tolerance (m)
The distance within which a left and a right vertex count as a pair. The default is 0.0001 m (0.1 mm). Vertices without a partner are not mirrored, and their number is shown in the "History and Save" box.
Normals
With Update normal deltas on, the normals of the edited area are turned to follow the shape. Custom normals and hard edges are kept.
Editing in a pose
You can also edit with the avatar posed. Mirror editing, however, only works correctly in a left-right symmetric pose.
6
Back to the pre-conversion shape and weights
Move Toward Pre-conversion Shape
Useful for fixing the shape of buttons and other decorations that got distorted. Within the selected vertices and the radius, the shape of the outfit before the conversion is fitted to the current shape in position and size, and then applied by the given strength. The pre-conversion shape is only output by two-stage conversions through Template (Shinano → Beryl in the example is one).
Restore Pre-Retarget Weight Ratios
Useful for fixing weights, especially around the crotch. It puts the share of the weights of each Humanoid bone series (Hips, Spine, Chest and so on, including their auxiliary bones) back to what it was before the conversion. The weights of bones other than Humanoid ones are not changed. This alone is saved as the skin weights of the .omochi, not as a shape. It is available for meshes converted with a recent version of MochiFitter.
For both, select vertices, set the strength and press Apply. The range follows the radius, falloff, island limit and distance measure of the "Transform" box.
7
Save and end
Undo, Redo
Edits can be undone one operation at a time. Unity's Ctrl + Z works too.
Save
Writes the changes back into the .omochi and reimports it. With a new shape, the shape is added with a weight of 100. If it cannot save and says the mesh "does not match the mesh being edited", see the causes and what to do.
End Editing
With unsaved changes, a dialog offers Save and End, Cancel and Discard and End.
While editing
The previews of NDMF (Modular Avatar and so on) are paused automatically while editing (body shrinking and the like are not shown). They come back when editing ends. With an old NDMF that cannot be paused automatically, the Mesh Editor shows a notice; turn the preview off by hand.
The edit is kept across a script recompile and Play Mode.
Saving involves a reimport, so a pose applied in a way that is not recorded in Undo (by some tools, for example) goes back to what it was when you save.
PART 3
Other modes
Switch between them under "Mode Selection" at the top of the window.
BlendShape Addition
This mode adds the avatar's body shape keys (breast size and so on) to an outfit that already fits that avatar.
The shape of the outfit is not changed; only the shape keys that follow the chosen shape keys are added to the outfit's meshes.
Choose BlendShape Addition Super MochiFitter under Mode Selection.
Assign the outfit's Prefab to Outfit Prefab.
Under Avatar, choose the avatar the outfit is made for. The avatars with an installed profile are listed. Right after adding one, press Rescan Avatar Data.
Under BlendShapes to Add, check the shape keys you want to add.
Choose the Output Format (see the table below).
Press Add BlendShapes. As with Outfit Retargeting, the result is saved as a Prefab with the original name in a finalized_date_time_PrefabName folder under Assets/OutfitRetargetingSystem/Outputs/.
Keep Prefab Structure (Recommended)
Makes a copy with the same structure as the original Prefab and replaces only the meshes that got shape keys. Animations, constraints and other gimmicks keep working. The output meshes cannot be opened in Blender.
Editable in Blender
Rebuilds the Prefab from an OMOCHI file (.omochi) with the added shape keys, as Outfit Retargeting does. Import it with the OMOCHI add-on for Blender, edit it and export it to the same file, and the Prefab follows. The hierarchy of the Prefab is rebuilt, and the number and order of the mesh vertices change.
Only the shape keys the avatar's profile has data for can be added. A shape key that is not in the list is not supported by the profile.
Only in the edition bundled with Beryl
The following two are, for now, only in the edition bundled with Beryl. This is only an overview.
Profile Generation (Hyper MochiFitter)
Creates the profile between an avatar and the intermediate body (Template) automatically. Choose Profile Generation under Mode Selection.
It can take tens of minutes. The first time, use Guided Setup (Wizard), which goes through the settings one at a time with an explanation.
It cannot be used for bodies like these.
Part of the body, such as fingers, is missing or has a different number
The Humanoid bones are dummies, and the real ones are bones that follow them through constraints
Part of the body mesh, such as the crotch, is missing
When the head, a tail, body fur and the like are part of the body mesh, use a version with them removed.
It may not work well for avatars far from a standard build.
Use a Target Avatar Not in the List
Use a Target Avatar Not in the List on the Outfit Retargeting screen creates, on the spot, a profile for an avatar that is not in the list of target avatars (or for a modified avatar) and sets it as the target.
The current position, rotation and scale of the avatar's bones and the current values of its blend shapes are baked into the body as they are, and the outfit is converted to fit that state (the Minimal setup).
The converted outfit does not get shape keys that follow the avatar's shape keys.
When you change the avatar's state, create the profile again.
This profile can only be used with Outfit Retargeting (Super MochiFitter).
PART 4
When something goes wrong
When something does not work, first try updating MochiFitter to the latest version.
Open Guide in Preflight Check and in the failure messages opens the matching entry in this part.
When no entry fits, go through "Narrowing down the cause" below from the top.
ErrorThe conversion cannot run as it is
WarningIt can run
NoticeWorth checking
Narrowing down the cause
Steps for finding where the problem lies when you do not know the cause.
Update to the latest version. Import the latest unitypackage from the distribution page again.
Look at Preflight Check and Installed Profiles. Check whether Preflight Check or Installed Profiles on the Outfit Retargeting screen shows a reason.
Try converting to Beryl. Set the target to Beryl and see whether the same problem occurs. If it does not, the cause is in the structure of the target avatar or in its profile.
Try another outfit. See whether another outfit has the same problem. If it does not, the problem is specific to that outfit.
Try a new Unity project. Run the same conversion in a new project, following the next section.
Contact support. Collect the information with Save Support Information and get in touch with the results so far.
Trying a new Unity project
In a project that has been in use for a long time, MochiFitter can fail to work correctly because of interference from other tools, leftover old files, compile errors and the like.
In cases like these, trying a new project often solves the problem.
You imported a profile and pressed Rescan Conversion Options, but the avatar does not appear in the list of target avatars (and Installed Profiles shows no reason).
Other people succeed with the same outfit and profile, but in your environment alone the conversion fails or the result is wrong.
Create a new avatar project, with VCC (VRChat Creator Companion) or the like.
Import the target avatar.
Import MochiFitter.
Import the profiles you use.
Import the outfit and the packages it uses (shaders, Modular Avatar and so on).
Run the same conversion.
It worked in the new project
The cause is on the side of the original project. Check whether Preflight Check in the original project shows the warnings about
compile errors, a duplicate installation or the folder location.
Even without knowing the cause, you can take just the result converted in the new project over to the original project (see below).
The same problem occurred in the new project
The cause is on the side of the outfit or the profile. Contact support and mention that it also happens in a new project.
Taking the conversion result to the original project
In the Project window of the new project, right-click the result folder (finalized_…) under Assets/OutfitRetargetingSystem/Outputs/ and choose Export Package….
Uncheck Include dependencies and export (the outfit's materials and textures already in the original project are used as they are).
Import the exported unitypackage in the original project.
The resulting meshes are in an .omochi file, so MochiFitter has to be in the original project too
(the minimum that is needed is here).
Installation and environment
ErrorNo conversion profile could be loaded.
Not a single conversion pair (source → target) could be formed. The Target Avatar field says "No conversion options found".
MochiFitter itself includes profiles for four avatars, so this does not normally happen. Files of MochiFitter itself are missing or could not be loaded.
What to do: Open Installed Profiles to see which files could not be read and why. If importing MochiFitter again and pressing Rescan Conversion Options does not help, try a new Unity project.
ErrorThe Super MochiFitter executable was not found.
The executable that does the conversion (on Windows, Assets/OutfitRetargetingSystem/SuperMochiFitter/Editor/OutfitRetargetingSystem.exe) is missing.
What to do: Import MochiFitter again. If its folder was renamed or moved, put it back.
Warning"The Super MochiFitter executable could not be started for a check." means the file is there but checking that it starts failed.
If the conversion then fails when you run it, check whether antivirus software or a Windows setting is blocking it.
WarningThe executable and the scripts are different versions.
An update stopped partway, or only some of the files were replaced. When the project has compile errors, the scripts alone can stay at the old version.
What to do: Import the latest version once more. If the compile error warning is shown too, resolve that first.
WarningThe MochiFitter folder is not in its default location.
MochiFitter is distributed on the assumption that it is in Assets/OutfitRetargetingSystem/Editor.
If the folder is moved or renamed, profiles imported later are unpacked to the original location, and MochiFitter does not load them.
What to do: Move the folder back and restore its name.
WarningThis project has compile errors.
While the Console shows red errors, Unity does not update scripts. Updating MochiFitter then has no effect, and the old version may keep running.
This is the same when the errors come from tools or packages other than MochiFitter.
What to do: Resolve the red errors in the Console (update, reimport or remove the package that causes them). If you cannot find the cause, try a new Unity project.
WarningMochiFitter is installed in more than one place.
MochiFitter itself (OutfitRetargetingSystem.dll and so on) or its executable is in the project two or more times.
Which one is used is not defined, so the old one may run even after an update.
What to do: Check the locations shown, delete the old one and keep only one.
WarningThere is more than one importer for .omochi files.
The Console says Multiple scripted importers are targeting the extension 'omochi' and have all been rejected.
Unity can no longer read .omochi files, so conversion results cannot be imported. This happens when files of an old version remain.
What to do: If the folder Assets/OutfitRetargetingSystem/Editor/OmochiFormat/Editor is still there, delete it.
ErrorThe data of the intermediate body (Template) was not found.
Template.omochi, which conversions through Template need, is missing. It is a file included with MochiFitter.
What to do: Import MochiFitter again.
WarningThe disk is running out of free space.
The drive the project is on has less than 1 GB free. A conversion writes temporary files and the result files, so it may fail partway.
What to do: Free up space before running.
Profiles
The first four appear inside Installed Profiles. Each is a reason something is not in the lists; conversions with other profiles can still be run.
When importing a profile again does not help
When a message says that files of a profile are missing or cannot be read, first import that profile again.
If the same message is still shown afterwards, the profile itself probably lacks the file or is damaged.
If you made the profile yourself, recreate it.
If you got it from someone else, contact its author. Passing on the file names and the reasons shown makes the cause easier for them to find.
WarningConversion config files could not be read.
The contents of a config_….json are damaged and cannot be read. That conversion does not appear in the lists.
What to do: Import that profile again. If that does not help, recreate the profile if you made it yourself, or contact its author if you got it from someone else (When importing a profile again does not help).
WarningConversion config files have no usable avatar data.
The avatar_data_….json a conversion config points to is missing, cannot be read, or has no avatar name in it.
This happens when only some of a profile's files are installed. That conversion does not appear in the lists.
What to do: Import that profile again. If that does not help, recreate the profile if you made it yourself, or contact its author if you got it from someone else (When importing a profile again does not help).
WarningProfiles duplicate another one for the same pair.
There are two or more conversion configs for the same "source → target". Only the one found first is used, so the profile you just added may not be the one in use.
What to do: Of the two shown, delete the one you do not use and press Rescan Conversion Options.
WarningConversion config files are in a place that is not scanned.
There are conversion configs outside Assets/OutfitRetargetingSystem/Editor. MochiFitter only loads from this folder and the folders under it.
What to do: Move all of the profile's files under Assets/OutfitRetargetingSystem/Editor (a subfolder is fine), then press Rescan Conversion Options.
ErrorFiles the selected conversion needs were not found.
One of the files the chosen conversion uses (the conversion config, the pose difference, the deformation field, the avatar data or the base pose) is missing. Check the file names shown.
The same applies when a conversion stops with "A file the conversion needs was not found." or "A deformation data file of the profile could not be read".
What to do: Import that profile again (import its unitypackage once more). If that does not help, update MochiFitter to the latest version. If the message is still shown after that, recreate the profile if you made it yourself, or contact its author if you got it from someone else (When importing a profile again does not help).
Warning"Shape key file(s) of the profile were not found." means the profile has no data for an item checked in Blend Shape Options.
The conversion can run, but that item is not reflected in the result. What to do is the same as above.
ErrorThis profile can only be used in the "Outfit Retargeting (Super MochiFitter)" mode.
A profile that only works with Outfit Retargeting (Super MochiFitter), such as a Minimal profile, is being used with the old method (Blender).
When it says "The installed executable cannot handle this profile.", the executable is out of date.
What to do: Press Back to Super MochiFitter under Mode Selection and run with the Super MochiFitter version. If the executable is out of date, update MochiFitter to the latest version.
The outfit and your choices
ErrorThe outfit Prefab has missing scripts.
When a package the outfit uses is not in the project, its components become Missing Scripts.
Converting like this makes the rebuilding of the output Prefab stop partway, with results such as some materials not being assigned, so the conversion is not allowed to run.
What to do: Import or update the packages the outfit needs (Modular Avatar, lilToon and so on). If a component is one you do not use, you may also delete the missing ones.
ErrorNo convertible outfit mesh was found (no FBX with a Hips bone).
MochiFitter converts an outfit relative to the hips bone. What to do depends on what is shown.
This Prefab has no skinned mesh
The Prefab has no mesh driven by bones (Skinned Mesh Renderer). Assign the Prefab in the outfit's folder that is meant to be put on an avatar.
The outfit meshes do not come from FBX files
The outfit's meshes are distributed as .asset files or the like. Outfit Retargeting (Super MochiFitter) can convert it.
No bone of the outfit matches the hips
Accessories that attach to only part of the body, such as the head or the hands alone, cannot be converted on their own. Put them in the same Prefab as a body outfit and convert them together, or attach them to the avatar directly without converting.
"Topmost bones" shows the name of the highest bone in the outfit.
It also appears when the source avatar is not the right one. The candidates whose bone names fit the outfit are then shown, and when there is exactly one, a Set the source to "…" button appears.
ErrorSome names contain characters that cannot be passed to the conversion.
The name of a mesh object, or a Custom Name in Blend Shape Options, contains one of ";,:.
These are the characters used as separators when passing values to the conversion executable.
What to do: Remove these characters from the names shown.
ErrorThere are no meshes to convert.
Every mesh is set to "Don't Convert" under Meshes to Convert.
What to do: Set at least one mesh to "Convert" or "Bones Only". The same applies when a conversion stops with "No mesh was left to convert."
ErrorThe target avatar's FBX was not found.
The target avatar is not in the project, or its FBX is somewhere other than where the profile expects it.
What to do: Import the target avatar into the project, or assign the avatar's FBX to Base Avatar FBX.
When it says "The baked body file of the Minimal profile was not found.", the body file created together with the profile is missing. Create the profile again.
WarningA model file, not a Prefab, is assigned as the outfit.
A model file such as an FBX carries no material assignments, PhysBone settings and the like. Converted as it is, the result has none either.
What to do: Assign the Prefab in the outfit's folder.
WarningThe outfit Prefab contains an avatar.
The whole avatar (an object with a VRC Avatar Descriptor) is assigned. The body and the hair are converted too, which takes long and also ruins the result.
What to do: Assign a Prefab with only the outfit. If the outfit cannot be separated, set everything but the outfit to "Don't Convert" under Meshes to Convert.
WarningThe selected source avatar does not seem to match this outfit.
An example where the file name contains the name of another avatar and the wrong source was chosen.
This comes from comparing the names of the bones in the outfit with every source candidate. It appears when the names hardly fit the chosen source but fit another candidate well.
The source is chosen automatically from the outfit's file and folder names, so it can be wrong when those contain the name of another avatar.
What to do: Set Source Avatar to the avatar the outfit is made for. When there is exactly one candidate, Set the source to "…" switches to it.
This check cannot tell apart avatars whose bones are named the same way. Check the supported avatars on the outfit's product page.
NoticeThe outfit seems to have heeled shoes, but no heel blend shape is checked.
It appears when a mesh name contains a word for heels (heel, pumps, ヒール, パンプス) and no heel item is checked in Blend Shape Options.
Shoes meant to be worn with the body's high-heel shape key on do not fit the feet when converted without the check.
What to do: If the shoes are worn with the heels raised, check the matching item in Blend Shape Options. If the shoes have no heels, leave it as it is. The outfit's product page or its manual may say which settings to use.
During and after a conversion
FailureThe previous conversion was interrupted by a script recompile.
Importing a package or saving a script during a conversion makes Unity reload its scripts. The conversion then stops partway and no result is made.
What to do: Run it again, and hold off importing packages and editing scripts until it finishes. If an unfinished output folder (Outputs/finalized_…) is left behind, you may delete it.
FailureThe conversion ran out of memory.
Outfits with many polygons, and conversions with subdivision on, use a lot of memory.
What to do: Close other applications, convert fewer meshes under Meshes to Convert, or turn Enable Subdivision off under Advanced Settings.
FailureFailed to create the combined prefab.
The meshes were converted, but rebuilding the output Prefab from the result stopped.
An output Prefab with some materials not assigned can have the same cause.
What to do: Check the reason shown and the errors in the Console. Updating the packages the outfit uses (Modular Avatar and so on) can fix it. If it does not, go on to Narrowing down the cause.
The overall size of the output Prefab is wrong
An error may have stopped the conversion during its second stage (from the intermediate body to the target avatar).
Check whether "Last conversion failure" shows a reason. If it does not, go on to Narrowing down the cause.
The conversion takes a long time
Outfit Retargeting (Super MochiFitter) takes about 40 seconds for the example in this guide. The old method (Blender) normally takes 5 to 15 minutes. It takes longer in these cases.
The outfit has more than 300,000 triangles.
The whole avatar is being converted (a warning is shown).
Subdivision is on for an outfit with tens of thousands of polygons. It has no benefit there, so turn it off.
When you only want to convert part of an outfit, setting the meshes you do not need to "Don't Convert" under Meshes to Convert shortens it.
The converted outfit has lost all of its materials and PhysBone settings
Either the outfit's FBX was converted instead of its Prefab (a warning is shown), or the model file (.omochi or FBX) was put on the avatar instead of the Prefab in the output folder.
What to do: Convert the outfit's Prefab, and put the Prefab from the Outputs folder on the avatar.
The converted outfit does not get the shape keys of the target avatar's body
The target avatar's profile has to support generating shape keys.
An avatar whose "Shape Keys" column shows "—" in Installed Profiles does not. Check the distributor's product page as well.
InfoThis outfit has settings that hide parts of the avatar's body.
An outfit can contain settings that hide the body under the clothes, so that the body does not show through them (Modular Avatar's Mesh Cutter, Shape Changer and Material Setter).
They are made for the body of the outfit's source avatar. In a converted outfit they point at the target's body instead, so left as they are they would hide other places of that body.
This is why part of the avatar's body can disappear when a converted outfit is worn.
MochiFitter treats each setting by what it goes by to hide the body.
Settings that go by the body's UVs or positions
Mesh Cutters that cut the body by a mask image, UV tiles or a plane (axis). Removed by the conversion, because the target's body has other UVs and other positions.
Settings that replace the body's material
Material Setters that replace a material of the body by its number. Removed by the conversion. Left as they are, the target's body would get the skin material of the outfit's source avatar.
Settings that shrink the body
Shape Changer entries that use a blend shape made to shrink the body so that it hides under the clothes (a shrink blend shape). Entries whose name is registered as a shrink blend shape in the profile of the outfit's source avatar are removed by the conversion, because the shrink blend shapes of the target's body have other names and shrink other areas.
Settings that go by names
Mesh Cutters that cut the body by the names of blend shapes or bones, and Shape Changer entries that delete the vertices a blend shape moves (other than the registered shrink blend shapes above). Kept. They take effect when the target's body has a blend shape or bone of the same name, and do nothing otherwise.
Settings that cut the outfit itself
Settings that hide a layer of clothing under another one. Kept. The conversion changes the mesh's shape and the directions of its coordinates, so a cut by a plane (axis) can end up in another place.
What is removed and what is kept is shown under Preflight Check before the run and under Last conversion result after it.
What to do:
The body shows under the clothes (where a setting was removed): set it up again on the converted outfit for the target avatar. You can also widen the outfit a little in the Mesh Editor, or use the shrink blend shapes of the target's body.
Part of the body still disappears after the conversion: a setting that was kept takes effect in an unintended place of the target's body. Delete the component of the setting shown from the output Prefab.
The target avatar has the same body as the source: the settings work as they are. Turn on Keep Body-Hiding Settings under Advanced Settings before converting.
Settings of tools other than Modular Avatar (such as Avatar Optimizer's Remove Mesh), and animations of the outfit that move the body's blend shapes or materials, are not changed by the conversion.
The outfit's gimmicks do not work, or the hair or hat does not fit
Gimmicks and animations may stop working after the conversion.
For head parts such as hair and hats, only the position and size are matched and the shape is not changed, so they may need separate adjustment.
Mesh Editor
FailureCould not save (the mesh in the .omochi does not match the mesh being edited)
The first line is what differs, the second the likely cause and the third what to do.
The Mesh Editor writes your edits back into the original .omochi file. To do that, it pairs every vertex of the mesh in the file with a vertex of the mesh being edited.
When what is in the file has become something other than the mesh being edited, the vertices cannot be paired and the save stops. The file is not written in that case.
The cause is one of the following. The second line of the message says which.
The file was changed after Unity imported it
The file was exported to again from Blender, replaced, or the like, and Unity has not yet read the new contents.
With Auto Refresh off in Unity's Preferences, it is not imported again automatically. What to do: Press Reimport and Continue. If the faces are unchanged, the unsaved edits stay and can then be saved.
If the number of vertices or the faces changed, the unsaved edits cannot be carried over and editing ends. Edit again after the reimport.
The file was imported again after editing started
When Unity imports the file again while you are editing, because you exported from Blender or changed the import settings of the .omochi, the mesh being edited stays the old one. What to do: By the time the save fails, the edit has already been moved onto the current mesh. Check the shape, then press Save again.
If the number of vertices or the faces changed and the edit could not be moved, the message says so. End editing and start again.
The file has no mesh of that name
The mesh may have been renamed in Blender or left out of the export. What to do: Export again with the mesh under its original name, then right-click the .omochi in the Project window and choose Reimport.
A mesh with vertex colors (a bug in old versions)
In old versions, some meshes with vertex colors could not be saved even though the file had not been changed.
An old version gives no cause or remedy; it only shows Save failed: Mesh '…' in the OMOCHI file does not match the imported mesh. What to do: Update MochiFitter to the latest version. If you cannot update right away, select the .omochi in the Project window, turn Weld Vertices (Reduce Size) off in the Inspector and press Apply; saving then works.
The mesh gets more vertices, so start editing again after switching.
If the mesh still does not match after pressing Reimport and Continue, the message says so. Contact support with the message shown and the .omochi file.
Other questions
How do I use a converted .omochi in another Unity project?
The minimum that is needed is the file OutfitRetargetingSystem/Editor/OutfitRetargetingSystem.dll.
Put it in an Editor folder of that project, and the project can read and write .omochi files.
May I sell outfits adjusted with MochiFitter?
Using it to make outfits for sale fit other avatars is not prohibited.
Contacting support
If this guide does not solve the problem, post the following in the questions channel of the Discord server.
What is happening (the error, and at which step it occurs)
The outfit you tried to convert (its URL)
The profiles you used (their URLs)
The zip made with Save Support Information
The results of Narrowing down the cause (whether the same problem occurs when converting to Beryl, with another outfit, and in a new Unity project)
If a message that files of a profile are missing or cannot be read stays after you import the profile again, contact the author of that profile (When importing a profile again does not help).
Save Support Information is in the "Last conversion failure", "Last conversion result" and "Installed Profiles" boxes.
It creates support_date_time.zip in the BlenderLogs folder at the top of the Unity project and also copies a summary to the clipboard.
The zip contains the versions of MochiFitter, Unity and the related packages, the selected conversion, the list of the outfit's meshes, the preflight results and the three latest logs.
Check the contents before sending
The logs contain folder names of this computer, which may include your user name.
Only for the old method (Blender)
Outfit Retargeting (Blender) and BlendShape Addition (Blender) are going to be removed. Unless you have a particular reason, use Super MochiFitter.
The Blender versions are shown after pressing Use the legacy Blender version at the lower right of Mode Selection (until Unity is closed). Back to Super MochiFitter, which then appears under Mode Selection, switches back.
ErrorBlender is not installed.
What to do: Press Download & Install on the screen, or press Back to Super MochiFitter under Mode Selection and use the Super MochiFitter version.
The Blender download stops with an error
If it keeps failing after several tries, you can install it by hand.
Create a folder named BlenderTools at the top of the Unity project and put the contents of the blender zip (the blender-4.0.2-windows-x64 folder) into it.
Start that Blender and install the robust-weight-transfer zip as an add-on.
Press N in the 3D view, press Install Dependencies in the SENT tab on the right, then quit Blender.
For other projects, copying the BlenderTools folder as it is saves the installation.
Download the robust-weight-transfer zip from step 1 above, start the Blender in BlenderTools/blender-4.0.2-windows-x64, and redo steps 3 and 4 (installing the add-on and Install Dependencies).
A message box such as Failed to load generated FBX
An error stopped the conversion partway. Update MochiFitter to the latest version, and if the folder was renamed, restore its name. If that does not help, contact support.
Credits
This guide uses the following avatar and its default outfit as the example.