Skip to content
Learn MikuMikuDance – MMD Tutorials – Free 3D Animation Software

Learn MikuMikuDance – MMD Tutorials – Free 3D Animation Software

Download Free Animation Software – Let's Learn How to Do Everything!

  • Step-by-Step MMD instructions
  • DOWNLOADS
  • Troubleshoot, Fix MMD
  • Site Contents
  • Reggie Replies Q&A
  • Homework!
  • What IS MMD?
    • Download MikuMikuDance Newest Latest Version of MMD
  • “HOW TO”
    • Raycast RAY-MMD Effect Tutorials
  • BONUS PAGES
    • Why convert PMD models to PMX?
  • HALL of CHAMPIONS
  • Tutorial Categories
  • About
    • Privacy Policy
  • Toggle search form
  • Create color morphs in MMD models using PMXE
    Create MMD model color morphs using PMXE Making Models
  • create credible characters for your projects
    How to create credible characters for your projects. MMD Tutorials
  • Watch the video as I create this MMD animated GIF using GIMP 2.6
    Make MMD Animated GIFs using GIMP 2.6 – MikuMikuDance Animated GIFs
  • ObjectLuminous Haku and Teto
    Using The ObjectLuminous Effect in MikuMikuDance Accessory Manipulation/Adjust
  • New version of ffmpeg cover
    FFMPEG – Final Frontier For Video and Audio File Processing Background AVI
  • Free Download MikuMikuDance MMD
    Free Download MikuMikuDance 3D animation software Intro to MikuMikuDance
  • A better MMD followcam in PMXE with physics and IK bones Animation Shortcuts
  • Download the latest version of MikuMikuDance - MMD 9.32
    Download the latest version of MikuMikuDance! Download MikuMikuDance

Editing Model Materials in PMDE for MikuMikuDance PMD and PMX Models

Posted on April 8, 2014May 15, 2018 By KillerBeer 5 Comments on Editing Model Materials in PMDE for MikuMikuDance PMD and PMX Models

A feature article by KillerBeer What are materials in MMD models? What is their purpose? How can I divide materials into smaller parts and what could be gained from that?

Manipulate models in PMDE more efficiently by using materials

I'm a material girl! Editing Model Materials in PMDE on LearnMMD.com
I’m a material girl!

As you possibly know, an MMD model is divisible into “materials” – blocks of vertices sharing the same texture file or – in case of textureless stock models – the same color. Each material consists of group of vertices linked to each other in a reticular network. Each triangle – facet – made of three neighboring vertices defines a piece of texture or a solid colored surface that is seen between them.

As an exercise, we will try to cut a piece of this pie.
As an exercise, we will try to cut a piece of this pie.

Open PMDE and load any model. In PMDView window’s lower toolbar, select “Wire+ (P)” mode and “green cloud” button allowing to see all vertices at once. Select any vertex (an astrolabe tool must appear around it) and drag it aside by astrolabe’s arrows. You can see that it drags a bunch of ribs after it, skewing facets that these ribs participate in, but other vertices and further-residing facets stay untouched. If you select *several* vertices, then those facets whose all three vertices were selected will move unskewed. Now, if you manage to select *all* vertices in a material (which is actually easy if you use PMDView’s “Vert/Mat” panel) and weight it to a free-moving bone, you’d be able to move that bone as a separate piece, not linked to the main part of the model in any visible way. (Actually, this is not true. There are models where this conceptual rule does not work – see below. But with PMDE, it is in your power to *make* it so).

But the fact that the material is a separate solid piece of the model does not make it *smallest* possible piece. In fact, PMDE allows you to granulate models’ materials into smaller pieces, which sometimes can be quite useful. That’s what we will be doing today.

Sometimes it may look like a single vertex, but in fact it's not
Sometimes it may look like a single vertex, but in fact it’s not

In PMDView’s upper toolbar, select the triangle button of the “Range” group. It means that, unlike in three other modes, we will be selecting not vertices themselves, but facets that they construct. Shift-click a group of triangles and see them turning red.  Now drag them by the astrolabe. Again, you can see some unselected facets trying to follow your selection, distorting the model. Some of facets, though, will be cut clean. That’s because where you can see vertices that comprise facet’s border, each of them is in fact a *pair* of vertices, one of them that gets selected by your ministrations and moves with selection, and another stays in its place. Now press Ctrl-Z, annulling your movements but keeping selection intact. Press Ctrl-X (the shortcut for EDIT->Selected face->Adjacent to the surface selection extension). It will make all facets connected to your selection with shared vertices to cascade-join it. If you try to move your selection now, the whole piece will be clean-cut.

Or maybe not. In some models (stock ones actually being a stark example) materials themselves can have vertices shared between them. Since Ctrl-X does not spread across materials’ borders, you can select a whole material and still get some dragging facets from neighboring materials. If that prevents you from doing what you want, you can “separate” such a material into a new one with EDIT->Selected face->Removed to a new material by separating the vertices. The old material these facets were taken from will become empty and can be erased.

Now, the piece you selected may be either less or more than what you want to make a separate part. The fact that you cascade-merged some facets to your selection does not mean that the whole material automatically is selected. In models imported from some unknown sources, rather than created straight in PMDE, a material may already consist of disjointed conglomerates of facets, and they may or may not match what you have in mind. If you need a bigger part than you already got, keep Shift-clicking and Ctrl-X’ing more segments until you get what you want. Make sure that you *did* get what you want – drag the selected part aside and check for pieces or separate facets (you may not notice them from certain angles but unselected green dots usually provide a clue) that were left behind. Add them to selection and Ctrl-Z shifted part back into position, then check it again.

You may cut out unwanted pieces by singling and alienating certain facets
You may cut out unwanted pieces by singling and alienating certain facets

The other kind of situation is when Ctrl-X’ing gets you too much of the material that you want separated. Sometimes it may be just few extra segments, or it may be a large chunk of the material (or maybe even the whole of it). If you feel that you’re mostly done with the selection and only need few facets disconnected, you may simply Ctrl-click them out. Sometimes, though, it may be more convenient to make a surgical cut at the border and then to attempt the selection again. Select the facet immediately bordering with the part you want separated and then command EDIT->Selected face->Separation of the shared vertex. Now select the part again and see if Ctrl-X gets you too far. You may also try to drag the selected part aside and check if the facet connected with your selection by a single vertex rather than a rib tries to follow your movements; if so, you’ll have to separate it too.

Keep in mind that when you’re done with this sub-material and start to select the *next* one, these singled facets will stay lone wolves and you’ll have to pick them up specifically.

That is how much you have missed on the first draft
That is how much you have missed on the first draft

On the other hand, sometimes you just can’t get an approximately close piece with a convenient Ctrl-X tool. You may happen to deal with a model where it gives you all or nothing. In such case, you’ll have to select your shape manually. Just press Shift+LMB and keep hovering over the model until all necessary facets are selected. Drag the selection to sides to ensure that nothing is left behind. Those trailing bands of distorted facets will be easy targets to spot and determine whether you need them or not. Keep in mind that, unlike Ctrl-X’ing, when you’re selecting facets manually, a facet not selected explicitly won’t get co-opted automatically even when all three neighboring facets – and therefore all three its vertices – already *are* selected. Thus, some small facets may be forgotten and unnoticed no matter how closely you inspect your selection. To avoid that, drag it somewhere far and then inflate it by dragging small cubes on astrolabe’s axes to the right. On a bigger (and most possibly skewed) shape, those small runaways will be noticed more easily.

Finally, you have selected the piece exactly as you wanted it. If by dragging it aside you only see sharp edges without sticking “petals” from the main body, command EDIT->Selected face->Is taken to a new material; in case that you used methods not completely separating selected and unselected facets, choose EDIT->Selected face->Removed to a new material by separating the vertices. Both commands create a new material with all parameters identical to its parent. Immediately afterwards, exclude it from processing by “Vert/Mat” panel and inspect the space the sub-material just was. It may happen that despite all your efforts, you still missed some small piece. If so, you can Ctrl-Z it back, restore the previous selection (or at least a part of it) with EDIT->Select the previous state and do the selection again quickly. After that, proceed to the next piece. Hint: if you start from eliminating simple shapes first, selecting more complex ones that stay on screen at that point would be much easier.

In the beginning, it was all a single solid material
In the beginning, it was all a single solid material… now it is ready for rigging!

And now, when all your model is broken into tiny pieces, you ask yourself: what was the point of all that? Did all that tedious work serve any actual purpose other that demonstrating your supreme prowess in PMDE-wielding? The answer is simple: weighting. Leaving only relevant parts of the model on screen with “Vert/Mat”, you may boldly brush your model with red, not hand-picking vertices one by one and not risking to tip some wrong vertex and then search for your mistake for hours.

Gradient tool allows for a really smooth weighting, but only when unobstructed
Gradient tool allows for a really smooth weighting, but only when unobstructed

More than that, when only a single operational piece is present on screen, you can take full advantage of the gradient weighting tool (“>>>” button in the Weighting panel), which would be almost useless otherwise, as it runs through models’ vertices indiscriminately. With it, though, you can achieve smoothness of motion that simply couldn’t be reached with regular means. Even though the process described in this article may look excessively complex, selecting a part of the model by facets first is much less error-prone than going straight to weighting (where selecting by vertices is the only option).

Just out of curiosity, I took and re-rigged the turret model that served as a case study in the previous post. Last time, weighting it from a single chunk of a material took a couple of days. With breaking it into sub-materials, all was done in an hour. The more thorough the preparation – the more it pays in the end!

Models used for illustration: Miku by Animasa, Cube dispenser  and GLaDOS are from Valve’s Portal game, ripped by SKaa3w


– SEE BELOW for MORE MMD TUTORIALS…


— — —


– _ — –


Visit the LearnMMD.com Homepage! Plenty of Mikumikudance instruction and info!

More MMD Tutorials...

Create MMD model color morphs using PMXE

How can I add my own color-changing morphs to an MMD model? How do I ...read more

ALMorphMaker Adds AutoLuminous Morphs to your Model!

What is the ALMorphMaker plugin? How can I put AutoLuminous morphs on a model? How can ...read more

Keep the Center-Bone when adding Mother-Bone to an older model

I added a mother bone to my model but where did the Center bone go? ...read more

PMXEditor PMXInfo Analyzing Optimizing MMD Models

Have you ever downloaded or made your own model and opened it up, only to ...read more

PMXE 0254f a Newer PMXE in English - More Complete Translation - Tools Reconfigured

What's the deal with the new PMXE 0254f? I can no longer do this and ...read more

Convert SFM/GMOD Models Into MMD Flawlessly!

How do I convert SFM/GMOD models to MMD? From where do I get SFM/GMOD models? Is it ...read more

Fixing Broken Models, KillerBeer, PMDE/PMXE tutorials, Weighting Bones

Post navigation

Previous Post: The K Lite Mega Codec Pack 995 – The Ultimate HD Video compressor!
Next Post: How to Use the Half-Lambert Shader in MMD

Related Posts

  • Position Model Parts in PMDE using a placeholder .x Model image Making Models
  • Use PMXEditor INFOfile to optimize MMD models
    PMXEditor PMXInfo Analyzing Optimizing MMD Models Fixing Broken Models
  • PMD Editor Basics, now in English – Modify Your MMD Models! Nuts & Bolts
  • Oomary’s guide to mastering MMD Hair Physics Fixing Broken Models
  • PMXE 0254f a Newer PMXE in English – More Complete Translation – Tools Reconfigured KillerBeer
  • LearnMMD.com _ MikuMikuDance MMD Tutorials
    Convert SFM/GMOD Models Into MMD Flawlessly! Haztract

More Related Articles

Keep the Center-Bone when adding Mother-Bone to an older model MMD Tutorials
Pose characters in PMX Editor and export as OBJs for Poser .OBJ Object Files
About changing models skirts using PMD Editor PMXE KillerBeer
Download and Configure the OldTV MME Effect for MikuMikuDance Customize MME effects
Using Texture Transparency hides MMD model problem areas MMD Tutorials
Build Accessories and Stages with PMXE Primitives Make your own Accessories

Comments (5) on “Editing Model Materials in PMDE for MikuMikuDance PMD and PMX Models”

  1. sgggggggggggg says:
    December 10, 2021 at 9:35 am

    EDIT->Selected face->Is taken to a new material

    There is no such option?

    Reply
  2. Raven says:
    October 19, 2017 at 8:49 pm

    this is nice but how do I merge vertex’s or materials so that objects like the shirt and chest can be moved together rather than separately

    Reply
    1. KillerBeer says:
      October 19, 2017 at 10:58 pm

      First, in order to move several materials at once you don’t actually need to merge them. Simply select/check all parts you need to move in “Vertex/Masking” panel (shown at the top picture), then “Select all” in PMDEView window, and they will move together any way you will (beware, though, that their bones will *not* move unless you select them properly, so before moving chest or any other bodypart that was in the original model make sure you really know what you want and what you’re doing. And always keep a backup, too).

      Second, merging materials is possible if needed, but again, you must know what you’re doing. If they are parts of the material you’ve previously split for rigging and/or moving, they are safe to merge again (unless you’ve changed their other properties). Otherwise, they will most probably have different color/texture/edging/whatever settings (there’s a reason they were made *separate* materials in the first place, after all), so if you try to merge them, settings of the first material in the merged group will override all others’, which will most surely ruin your model’s looks. You must check their features in the materials list before trying anything funny.

      Anyway, if you want to merge few materials, you can do it by shift-clicking them in the Material panel’s list if the main PMDE window, then right-clicking on the group and selecting “Join” (or “Binding materials”, depending on the translation version you use) command.

      Reply
  3. 5magmacubes says:
    June 15, 2015 at 10:09 am

    THANK YOU! now I know how to get this model’s arms to have different textures

    Reply
  4. RedRose206 says:
    March 10, 2015 at 1:58 pm

    Thank you so much! I have been trying to do this for a month and couldn’t figure it out.

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Download the latest version of MikuMikuDance!
See the MMD Step-by-Step instructions page!
Learn how to make your own MMD motions!
LearnMMD.com
  • When you add background AVI files, you can motion trace!
    Loading Background AVI Files into MMD (2021 Edition) Add Background Pictures and AVI
  • Make WAV files for MikuMikuDance Using Your Music Files Music and WAV Files
  • Miku virtual idol starts our Brave New World Random Thoughts & Visions
  • The Croquis Effect.
    How to Use the Croquis Effect in MikuMikuDance ARIZONA
  • A girl named Miku Hatsune… Random Thoughts & Visions
  • Adjusting the Physical Operation Tab settings in MMD 9.10 Functions-Copy-Paste-Expand
  • ShapeMosaic effect distorts naughty bits and faces.
    MME ShapeMosaic effect counters Wardrobe-malfunctions and more! MMD Tutorials
  • Kaito and the SpotLight Effect.
    Using the SpotLight Effect in MikuMikuEffects ARIZONA

Copyright © 2022 Learn MikuMikuDance – MMD Tutorials – Free 3D Animation Software and Instructions..

Powered by PressBook Premium theme

Go to mobile version