Site icon Learn MikuMikuDance – MMD Tutorials – Free 3D Animation Software

Japanese MMD mod allows Automatic Breathing action in MMD models

How can I make my MMD model have automatic breathing? How do I modify my PMX model so she can breathe automatically?

Automatic Breathing…
How to make a Vocaloid breathe!

This article will teach you how to use a Japanese MMD mod which allows a MMD model to automatically replicate breathing. To add the mod is actually very simple but to help fully understand this wonderful mod, we are going to break this article into several sections.

You do not have to read this entire article to be able to use the mod, but we are deliberately writing it this way so that you can fully understand what this mod actually does, how to add it to a MMD model, how the mod works as well as enough information for you to be able to figure out why it might not be working on a model to which it has been added.

The sections are:

1. How to add the mod to a MMD model.
2. What the mod actually does and how it works.
3. Trouble shooting tips.

You will only have to read section 1 to add the mod to a model. Also, the Luka model pictured at the top of this article has had this mod added to her and you can download this model to see exactly how this mod works when added to a model correctly.

SECTION 1: How to add the mod to a MMD model.

The model to which the mod is added must be a PMX model. It cannot be added to a PMD model due to major differences between the bone structures of these two types of models. It is relatively easy to convert a PMD model into a PMX model; if you do not know how to do this please see this tutorial:
MMD Tutorial PMD to PMX Conversion

The PMX model to which the mod is to be added must have the bones listed immediately below.

mother (also known as “master” or “root”)(全ての親)
upperbody2 (上半身2)
shoulderP (both left and right)(右肩P/左肩P)

The bones bordered by the orange rectangles must be added to a model in order for the mod to function correctly. Only add these bones if the model doesn’t already have them…

If the model that you are converting does not have these bones, these should be added using the PMD/PMX Editor’s semi-standard bone plugin BEFORE adding the mod.

Models with more advanced PMX bone systems such as those normally associated with (a good quality) TDA style model will have these bones. If your model does not have these bones, these can usually be added using the Semi-standard bone plugin.

However, a word of caution with regards to the semi-standard bone plugin: the plugin makes it very easy to add a more advance bone structure to a model that does not originally have these bones. However, the plugin’s algorithm is rather generic and does not always lead to desirable results with some of the more advanced bone structures; so use this plugin with caution.

If you are adding this mod to an edit that you are working on, we highly recommend that you only add this mod as the last step unless you have a full understanding of bone orders and bone deformation hierarchy.

The mod can be downloaded here:
https://bowlroll.net/file/113422

You will only need this file from the auto-breathe mod package:
フルオートブレスユニットv130.pmx

There is a plugin associated with this mod which aids the installation process but the use of this plugin is not covered in this article.

The plugin can be downloaded here:
https://bowlroll.net/file/119354

READ THE STEPS BELOW AND FULLY UNDERSTAND WHAT IS REQUIRED BEFORE ATTEMPTING TO ADD THE MOD.

STEP 1: Load your model into the PMD/PMX Editor

STEP 2: MERGE the bone structure model (フルオートブレスユニットv130.pmx) into the model. This will add an additional set of bones to your model; these will appear at the bottom of the bone list in the bone tab.

After merging the mod, a whole ton of bones will be added to your model. Most will be under the model, but some with be embedded into or near the torso of the model.

ADVERTISEMENT


STEP 3: Identify this bone in the bone list:
ブレス親 (lit.: “Blessed Parent”)
This screen capture of the PMDe bone tab after the mod was added on the Luka model shows the location of the “Blessed Parent” bone. All the bones above it in the bone list will need their Deform hier. value altered. The Gr Parent field is used to bind the controller bones to the model. Please read the rest of the instructions for details.

ADVERTISEMENT


STEP 4: For ALL the bones above this bone, change their Deform hierarchy to “2” with the following exceptions:

a). For any bone that has an existing Deform hierarchy value that is higher than “0”, add “+2” to its value. So for example if the existing value is “1” you will use a value of “3”.
b). DO NOT change the Deform hierarchy value of the “mother” and “view cnt” bones. These must remain “0”. Also these bones should be listed at the top of the bone list in the PMD/PMXe’s bone tab display.

For most MMD models, the bones most likely to have a Deformation hierarchy value that is greater than “0” will be:

a). Bones at the end of an IK chain. Usually the leg IK chain; also on some models at the end of a hair IK chain.
b). The eye bone structure.

STEP 5: Locate the controller bones in the bone list (they should be in the section marked “breathborn” towards the bottom of the bone list).

Note the last few character’s: “ブレス”; these are the mod’s equivalents of the model’s structural bones. The first characters identify these bones.

Example:

UpperBody bone: 上半身
UpperBody controller bone: 上半身ブレス

This printout of the Luka model’s bone list shows the full list of the auto-breathe engine’s controller bones. To bind the auto-breathe engine to the model, simply associate these bones to their equivalent in the main body structure.

For the mod to work you must locate the named structural bone and bind them correctly to its equivalent controller bone. Note that your model might not have all the equivalent bones in the controller bone list. This is OK. Just find the equivalent structural bones that you do have.

To bind the controller bone to its equivalent structural bone, simply enter the bone number of the controller bone into its equivalent structural bone’s Gr Parent field.

So for example to link 上半身ブレス to 上半身 enter the bone number of 上半身ブレス into the Gr Parent field of the 上半身 bone. Once you press enter, the PMD/PMX Editor will display the name of the parent bone immediately to the right of the field input box as confirmation that the link is established.

STEP 6: If you have done all the steps correctly, then save the model (under another name) and then load it up in MMD. The mod should work automatically and you should be able to see your model “breathing”. The breathing characteristics can be modified using the facial controls which were provided for the purpose.

The following video (which is in Mandarin) shows exactly the steps as required if you need to see exactly what needs to be done:

https://youtu.be/aL2fD_LYKUU

SECTION 2: What the mod actually does and how it works.

Put yourself into a relaxed stance and breathe in deeply, then breathe out again. Pay attention to what your upper torso does when you do this. Notice exactly what is happening to your chest cavity and shoulders. The mod is designed to replicate exactly what your body is doing when breathing.

How the mod works is that the mod itself is a perpetual motion machine. The bulk of the bones in the mod are devoted to these functions. To make the mod work with a MMD PMX model, only three steps are actually required.

1. Add the mod to the model.
2. Change the bone deformation hierarchy – this forces MMD to calculate the positions of the bones in the models standard structure before calculating the positions of the mod’s controller bones.
3. Bind the mod’s controller bones to its corresponding bone in the model’s structural bone frame work. This allows the mod’s perpetual motion engine to drive the model’s structural bone system allowing the automatic breathing motion to work.

A very simple and elegant solution to an otherwise extremely complex set up.

SECTION 3: Trouble shooting tips.

1. My model doesn’t breathe when I load it!”

First, make sure that Physics are set to “ON”. The mod’s engine does not function when physics is turned off in MMD.

2. The mod is for PMX models only. You cannot add it to a PMD model.

3. The mod assumes a correctly structured PMX bone structure.

a. The model to which the mod is to be added should have the requisite bones required for the mod to work (and these bones need to be correctly bound to their corresponding bones as described above).
b. Many existing DA model edits have really badly organized bone structures – so be forewarned. Adding the mod to these types of models will most likely lead to poor results. To fix these types of models will usually a major repair/re-structuring exercise.

If you want to add this mod to a DeviantArt sourced model, add it to only either a top quality DA edit or original model.

With most Japanese edits and original models, there should be no issues provided that the model conforms to the basic requirements for the mod.

4. If after adding the model the model behaves “odd” in MMD, check:

a. The bone Deform hierarchy – simply compare the original model’s bones to the modified model’s. Make sure that the values are correct, especially the leg IK and eye structure bones.

On many models the leg IK bones have a Deform hierarchy value of “1”; on the modified model these should be “3”, unless the value on the original was “0” in which case it must be “2” in the modified edit.

b. The eye structure usually has “1” for the eye controller bone and “2” for the L/R eye balls.

In the modified edit these should read “3” and “4” respectively – unless these were originally “0” in which case the correct value should be “2”.

5. “My modified model is behaving in bizarre ways all by itself!”

On the modified model, make sure that the “after ph” toggle (to the right of the Deform hier. field) is not “ON” unless it was “ON”, on the original model. It will be extremely rare that this toggle is “ON”. If this toggle is “ON” it will force MMD to treat the bone as being under the MMD physics engine’s control and this could result in unexpected behaviors.

6. “My modified model crashes MMD!”

This could happen if the modification process was seriously messed up or that the model to which it was added to has a seriously flawed bone structure to begin with. As we have indicated, not all MMD models will be compatible with this mod.

7. “I added the mod to a ripped model of [character name] and it doesn’t work!”

Ripped models from games are usually poorly rigged or were original built to use a different bone structure than the one used for MMD. As such we do not recommend that the mod be used with this type of model.

8. The mod was made for models to be used in MMD; as such the mod may not work in MMM. There is no fix for this.

9. Cautionary note about adding an upperbody2 bone using the semi-standard bone plugin.

Many early MMD models do not have this bone as standard (such as the default Animasa models bundled with MMD). Wherein it is possible to add this bone using the semi-standard bone plugin, very often this might not work elegantly without further weighting adjustments. What this means in practice is that model’s upper torso mesh may break when the torso is placed into some positions and this will be glaringly obvious.

10. ABSOLUTELY DO NOT mess with the positions of the bones used to create the auto-breathe mod. The mod’s engine is delicate; moving these bones can break it.

11. If you are converting a 3DCG model (which have 3 upper body bones) to use this mod; for best results, treat the model’s upperbody2 bone as the upperbody bone and the upperbody3 bone as the upperbody2 bone for the purpose of binding the mod to the model.

12. “Can I add the mod to a chibi?” (See video below):

 

 

CREDITS AND ACKNOWLEDGEMENTS

睡犬(^ーωー^)Zzz

For making this wonderful mod for MMD.

This mod can be downloaded at:
https://bowlroll.net/file/113422

The associated plugin can be downloaded at:
https://bowlroll.net/file/119354

Maddoktor2.deviantart.com

For helping with this article by making a complete conversion of one his model edits to use this mod. He also helped point out some of the possible pitfalls, provided all the screenshots, proof read the drafts for this article, researching compatiblity with different model types and even converting Tda Chibi Miku Append to use the mod.

The Convergence Luka Append model that he modified with this mod can be downloaded using the link provided below. Also be sure to check out his DA gallery. There are tons of top notch model edits and stage conversions that can be downloaded there.

Convergence Luka Append v2: http://fav.me/db001i7

vasilnatalie.deviantart.com

For helping clarify the function of the Deform Hierarchy variable. Do check out his DA gallery and his articles here on LearnMMD if you want to really gain a good technical understanding of the technologies underlying MMD. His handle on LearnMMD is “Bandages”.

your-math-teacher.deviantart.com

For suggesting that I write this article for LearnMMD.com in the first place as well as providing a translation of the video with which this article could not have been written in the first place

七夜魔影 (Video hosted by YouTube)

For making the Mandarin language video tutorial showing how to use this mod.


– SEE BELOW for MORE MMD TUTORIALS…


— — —


– _ — –


Exit mobile version