Kitty Corp Meow Mix Forums

Help & Tutorials => Model Tutorials => Topic started by: Kyouma on September 19, 2014, 11:07:54 PM



Title: MMD .pmd/.pmx importing full guide
Post by: Kyouma on September 19, 2014, 11:07:54 PM
This tutorial was made to help those who keeps wondering how do I import all the anime characters
And maybe that way my anime brawl hacks monopoly will be over D:

What you need:
-3DS MAX (Personally, I use 2011 version)
-This pmd editor (https://dl.dropboxusercontent.com/u/102142953/desd/PMX%20Editor.rarl)
-The .pmd importer script for 3ds max (https://dl.dropboxusercontent.com/u/102142953/pmd_import_export_v04-mk64n.ms)
-The detach ID script (https://dl.dropboxusercontent.com/u/102142953/detachbyID.ms)
-A character's boneset (http://forums.kc-mm.com/index.php?topic=35219.0) or A character's .max scene (http://forums.kc-mm.com/index.php?topic=51862.0)
-A default character's .pcs or .pac (http://anonym.to/?http://opensa.dantarion.com/disc/fighter/)
-An MMD model good source 1 (http://citrusmoothie.tumblr.com) good source 2 (http://seiga.nicovideo.jp/tag/MMD%E3%83%A2%E3%83%87%E3%83%AB%E9%85%8D%E5%B8%83%E3%81%82%E3%82%8A?page=1)( but be careful in source 2, it's a japanese site and most of the models has passwords you have to research by yourself, theire mostly in the nico douga video of the model's release)
-Time
-Patience
-The previously said thing

Here we go!

Part 1: Getting the model ready to be rigged

Part 1.1: T posing with pmd editor

The model I used on this tutorial had no bones, so this couldn't be explained with the same model, anyway its the same for any model.
First click in the T icon in the model's window

(https://fbcdn-sphotos-g-a.akamaihd.net/hphotos-ak-xpf1/t1.0-9/10402855_307894249385017_3463230019108975657_n.jpg)

This will open other two windows, one with the model again and a smaller one with many japanese words.
Just select a shoulder bone and while is selected, click on the Z button of the other window, then move the cursor upside to rodate it up, be careful and smooth to rodate it in a position that its the T pose do it with both arms

(https://scontent-b-lax.xx.fbcdn.net/hphotos-xpa1/t1.0-9/10457890_307894256051683_2727364629969652702_n.jpg)

Save the model to another file, this pmd editor will save it as .pmx even if your model used to be .pmd, but it doesnt matter, I'll tell you how to turn it back to .pmd
To save this, click on the part that ends with (F) and click on the option that ends with (S)
Something like this

(https://scontent-a-lax.xx.fbcdn.net/hphotos-xpf1/t1.0-9/10378155_307897166051392_1324791413804285381_n.jpg)

Part 1.2: Getting expresions (optional)

In the same window where you T posed,

(https://fbcdn-sphotos-f-a.akamaihd.net/hphotos-ak-xap1/t1.0-9/10338756_307897139384728_7676061491922414024_n.jpg)

Mess with the list of transformations and move that thing to activate each one, think about what expresion do you want, in this case Ill make a surprise face

(https://fbcdn-sphotos-h-a.akamaihd.net/hphotos-ak-xpf1/t1.0-9/10433838_307897146051394_3976029008304050862_n.jpg)

then save the .pmx
Now close everything and open the pmd editor again, now opening the expresion .pmx you just saved.
We go back to the first two windows, in the model window, click in that circled button and it should open you a small window like its shown:

(https://scontent-a-lax.xx.fbcdn.net/hphotos-xpf1/t1.0-9/10462940_307897156051393_1681207696297636704_n.jpg)

And then click in the last check so the object list will be displayed; go checking/unchecking the objects and select the vertices what is what
go this way until you select all the objects except the face (the face incluides head model, eyes, iris, eyebrows, tonge, lips, and that stuff
once you did it, right click over it and select the option that ends with (P)

(https://fbcdn-sphotos-b-a.akamaihd.net/hphotos-ak-xpf1/t1.0-9/10461973_307897152718060_5469496280959597949_n.jpg)

this will delete the objects, now that we have that expresion head, save it

do this for all the expresions you want; I recomend you to save a neutral face model and then use the expresions on it to save time deleting the objects again and again

Part 1.3: Converting the .pmx into .pmd
In my case, I'll be using an unrigged .pmx model; and since the pmd script for 3ds max only works for .pmd files, this means we must convert the .pmx into a .pmd model. For this, open the pmd editor and open the .pmx model there

(https://scontent-b-lax.xx.fbcdn.net/hphotos-xpf1/t1.0-9/10440273_319880454836033_4205552819706391899_n.png)

Now click on that thing that ends with the (x) in the man menu

(https://scontent-a-lax.xx.fbcdn.net/hphotos-xaf1/t1.0-9/10350603_319881311502614_4944495141320722527_n.png)

And save the model as anything you want, justremember to type .pmd at the end, if you dont do that, it will be exported as .x

(https://fbcdn-sphotos-b-a.akamaihd.net/hphotos-ak-xfp1/t1.0-9/10300437_319881718169240_749119096836217240_n.png)

Part 1.4: Getting the .pmd in 3ds max
(https://scontent-b-lax.xx.fbcdn.net/hphotos-xpf1/t1.0-9/10441390_319882271502518_8979335984721614598_n.png)
(https://scontent-b-lax.xx.fbcdn.net/hphotos-xpf1/t1.0-9/10441390_319882271502518_8979335984721614598_n.png)

uncheck all the option boxes, we only want the model mesh, click on import and select your .pmd

(https://fbcdn-sphotos-d-a.akamaihd.net/hphotos-ak-xpa1/t1.0-9/1512338_319886671502078_968469298201012115_n.png)

this will display the model like this

(https://scontent-a-lax.xx.fbcdn.net/hphotos-xpa1/t1.0-9/10378248_319887798168632_4316429000966461905_n.png)

now run the detach ID script

(https://fbcdn-sphotos-g-a.akamaihd.net/hphotos-ak-xap1/t1.0-9/10472577_319888378168574_8184588085492821660_n.png)

Name the model mesh to something, the MMD models usually has a weird character name, this can cause somehing with the script, so name it to something that makes sense, then select the model mesh and in the script window click in detach

(https://scontent-a-lax.xx.fbcdn.net/hphotos-xap1/t1.0-9/10452316_319888521501893_3357035195958567929_n.png)

The model will end looking like this

(https://scontent-a-lax.xx.fbcdn.net/hphotos-xpf1/t1.0-9/10423781_319888954835183_1301502658532277128_n.png)

Part 1.5: Merging with an existing scene to use the skin wrap (Optional but you still have to see this to know how to merge your mesh with the character you want to import it over)
Thats my secret to rig skirts, I use the skin wrap over the model with the default character Im using; since I'll import Akiho Senomiya over Peach, Ill use Peach's .max file

(https://fbcdn-sphotos-d-a.akamaihd.net/hphotos-ak-xpa1/t1.0-9/10440890_319889198168492_7517257597668337826_n.png)

delete the polygons you dont need, I have a reason to keep the skirt polygon (which will be said in the rig tutorial)
you can delete them all pressing the key h
then it will open you a window with everything in the scene, just select the polygons and then delete them
once you have the clean boneset, with the objects you need,
--------merge part, must read------------
click on the main button, now put your mouse over import without clicking on it, this will let you see the extra import optons, once there, click on merge and select the scene you previously saved

(https://scontent-b-lax.xx.fbcdn.net/hphotos-xfp1/t1.0-9/10152384_319889294835149_1392456618259080860_n.png)

then select all the parts of the model except the one which ends with 001 because thats a nulled object and it can cause crash in the game since its not rigged

(https://fbcdn-sphotos-c-a.akamaihd.net/hphotos-ak-xpf1/t1.0-9/10409331_319890878168324_8430328147052818942_n.png)

the model will show up like this, its not flat white now, and thats the idea because the pmd scrip nulls the shaders of the scene; now right click and select "move", then go to the coordinates section and change the x value from 0 to 20 so the model will not be over the boneset

(https://scontent-a-lax.xx.fbcdn.net/hphotos-xpf1/t1.0-9/10384096_319893461501399_5881583016042586544_n.png)

Part 1.6: Setting the materials (textures) in the model
now open the material editor, its that icon with something like a world it will open the material editor window, if it doesnt show these balls, you should change the view to the compact form

(https://scontent-a-lax.xx.fbcdn.net/hphotos-xpa1/t1.0-9/10406877_319893808168031_4577755449959991454_n.png)

now go to your model's folder and make sure he textures are game-friendly sized (256x256 each one, or maybe smaller like 128x128 or something related to those numbers512x512 is normal for regular models, but not for MMD models because that will increase the filesize alot and cause crash)
once the textures are ready, select and drag any of them to one of the material editor's balls

(https://scontent-a-lax.xx.fbcdn.net/hphotos-xaf1/t1.0-9/10398086_319893861501359_5774742050137547337_n.png)

make sure you repeat the process with every material
you can rename it to the texture's names so you wont get confused later in brawlbox but its not necessar
once the textures "are in the balls", you gotta drag them over the objects they belongs to

(https://scontent-b-lax.xx.fbcdn.net/hphotos-xpa1/t1.0-9/10456829_319894621501283_945043454332279435_n.png)

make sure you have added the correct textures to the objects, you will see the model has objects you wont use suck like tonges, teeh, expresion faces and stuff, you can delete them and keep the objects you will use, thats necessary because it will help to decrease the filesize
If youre using expresions you previously saved, repeat this whole process (its long, thats why not many people puts expresions to MMD imports

Part 1.7: Reducing vertices count

now we have to optimize the model; for this you must select and object; the the detach ID script converts every object into "editable poly", which is necesary,; you must click on the right bar where it says something about modify, then scroll down to where you see whats in the picture and click over the small icon with the red dots

(https://fbcdn-sphotos-h-a.akamaihd.net/hphotos-ak-xpf1/t1.0-9/10348466_319897581500987_5745357536077257347_n.png)

his is the vertex selector, select all the vertices of the object (it defaultly has them selected already, but if it doesnt, just select them by yourself in the viewport)
then scroll to where you see some mofier squares, between them you will see the wield square, click on the check small square on it (no on the button itself, in the small square)
this will wield the model, by default it marks it at 0,1 which will terribly deform the object like in the upper right imagen, you must change it to 0.01, pres enter, and then click on the check thing

(https://scontent-b-lax.xx.fbcdn.net/hphotos-xpa1/t1.0-9/10393831_319898264834252_8138529139906142598_n.png)

now right click on the model, click on "convert to", then to "editable mesh"
once its an editable mesh; go to the modifier list, select pro optimizer, check the square "keep textures" then click on calculate; after that, change the number percentage to the lowest you can but yet keeping the model looking god
once you got the lowest percentage you could get (I recomend to start from 70%), right click and convert to editable mesh again
repeat this process with every object

(https://scontent-a-lax.xx.fbcdn.net/hphotos-xaf1/t1.0-9/1964869_319898731500872_2915296455541354718_n.png)

You must have pro optimized all your polygons for this part; you must be sure that the model doesnt have over 10 000 vertices because that would cause crash in the game
to see how many vertices do you have go to Views > Viewport Configuration... > Statistics > check the boxes: Vertex count and Show statistics in Active view > click ok

(https://fbcdn-sphotos-d-a.akamaihd.net/hphotos-ak-xpf1/t1.0-9/10376284_320068598150552_8461507666641816922_n.png)

You surely have lots of polygons, to make the rigging easier and quicker; you should attach the objects which has the same material, for this:
right click over the object; then go to attach, and then click the object which has the same material, if it coincides in the materials, it will just attach them, but if it doesnt, it will show a window asking you if youre sure to do it

(https://scontent-b-lax.xx.fbcdn.net/hphotos-xap1/t1.0-9/10458363_320068711483874_1732413108647519158_n.png)

Part 1.8: Fitting the character in the boneset
Remember when we moved the whole model to an "x" possition of 20? Now move it to 0 and here comes the part which for me is the longest part of importing: T posing and preparing the model for rigging...
First, go to modify and spread "selection" now click over the dots iconto edit vertices once again, but this time make sure the object is on "editable mesh", this way you will be able to select vertices as you want and modify them as you want
select the whole model's objects and scale/move them to fit the boneset as good as you can

(https://fbcdn-sphotos-h-a.akamaihd.net/hphotos-ak-xpf1/t1.0-9/10469709_320069284817150_3945389805699668326_n.png)

ow that the model is T posed, it may get wrong possitions, fix that selecting the whole model and translating it to fit the model
now make the shoulders fit the boneset and vice versa, people normally modifies the model's chest and expandes it to make it fit the bone's posigion, in my case I rather move teh shoulderJ bones (LshoulderJ and RshoulderJ)
but if you move those bones, make sure they has exactly the same new coordinates

(https://fbcdn-sphotos-h-a.akamaihd.net/hphotos-ak-xpf1/t1.0-9/10463911_320074811483264_787739584119920890_n.png)

To make sure the rigging will go flawlessly, make sure this patron is donein the part where two bones are connected theres a small ball, thats the articulation point
make sure there is one line of vertices on each side separated by one, thats what I call "the oposite sides and the neutral side", the neutral side is the vertices line which crosses through the articulation point, it doesnt need to have the full ring of vertices, just a bit, make sure this patron is repeated on every of them

(https://scontent-a-lax.xx.fbcdn.net/hphotos-xpf1/t1.0-9/10462862_320075721483173_8156617153448201715_n.png)

as you see, even the arm bones must go with "the patron"
since I moved the shoulderJ bones, the hand bones are closer, but not close enough, in this case I have no choice but modifying the model's hand, in this case I will resize it and translate it to match the bones of the hand

(https://scontent-a-lax.xx.fbcdn.net/hphotos-xfp1/t1.0-9/10366150_320075764816502_3190170114106307944_n.png)

its a rule, the model's hand must be bigger than the boneset's hand, translate vertices, rodate bones (dont move them) as much as you must to make them fit as much as you can!

(https://scontent-a-lax.xx.fbcdn.net/hphotos-xpa1/t1.0-9/10438624_320076904816388_8807818710563344512_n.png)

this is something important too, the neck; most imports looks weird when they turns they sight because the neck bone is missplace like this, I dont recomend to do it and deal with the deformity, but since i always edit bones, I will move the neckN bone to be in the middle of the model's neck

(https://scontent-a-lax.xx.fbcdn.net/hphotos-xfp1/t1.0-9/10470937_320076958149716_614448914721155510_n.png)

Part 1.9: Manually T posing (Optional)
Since this model had no MMD bones I could rodate on the pmd editor, Ill have to do it manually; if you could T pose your model on the pmd editor, you wont need these steps, but if you couldnt, then follow them
we start by selecting the whole arm/hand, and just a part of the shoulder, you have to dont select the part of the shoulder which isnt bended

(https://scontent-b-lax.xx.fbcdn.net/hphotos-xpf1/t1.0-9/10448233_320069618150450_6889270033754457241_n.png)

then we rodate it to make the last part we selected look like it hasnt bended, then we translate it to match the rest of the shoulder its barely over after the first rodation, we have to repeat thsi but now excepting the part we just move it

(https://fbcdn-sphotos-c-a.akamaihd.net/hphotos-ak-xpa1/t1.0-9/10309481_320072244816854_4181046463908995763_n.png)

But before that, fix up as many vertices as you can to fix the shoulders

(https://scontent-a-lax.xx.fbcdn.net/hphotos-xfa1/v/t1.0-9/10373990_320072848150127_589327514074537727_n.png?oh=dcf639d4687e5a461b17c014cfc4d951&oe=541702C6)

now rodate the other part of the selection to match it, try to search a refference object to make sure its correctly T posed; on this case I will use the sleeve, you must use your visual senses to make imaginary lines in the sleeve and in the rodation tool, then make sure theyre paralel

(https://fbcdn-sphotos-g-a.akamaihd.net/hphotos-ak-xaf1/t1.0-9/10380756_320073374816741_6728120566014474535_n.png)

once youre sure its ok, move it to match the shoulder
repeat this as many times as its needed to make the arm seem like it has no bending at all, incluiding the hand

(https://fbcdn-sphotos-a-a.akamaihd.net/hphotos-ak-xpa1/t1.0-9/10370371_320073451483400_4618254788856817129_n.png)

I recomend to do the same process in the other side, but if you want to save time, you can select all the vertices of the hand/arm/shoulder/half of the bust, and right click, then detach but before detach, check the box that says "detach as a clone", then select the cloned object and go to skin modifier, then select mirror, once its mirrored, right click, convert to editable mesh
now go back to the original mesh, and delete the vertices of the hand-arm-shoulder-half bust of the oposite side you detached from, if you do it right, it will show no holes on the model because you have cloned the other side to match it, if thats so, right click and attach
if it shows holes, select again but now less vertices
to make sure there arent repeated vertices, right click < convert to editable poly < select all vertices < wield < 0.01 again and convert to editable mesh

(https://fbcdn-sphotos-b-a.akamaihd.net/hphotos-ak-xap1/t1.0-9/1524712_320074694816609_8125512246837705258_n.png)
Part 2: Rigging
Part 2.1: Auto rigging skirts (also works for capes)
Remember that I left Peach's default skirt? this is the reason why; take note of this if you plan on importing a character over Peach or over Zelda; since rigging their skirt is a massacre, this can help your life
first fo to skin modifier, next select skin wrap, now scroll down to a button that says "add", click it and then select the skirt model from the viewport (this wont open a window, you have to select it right infront of your sights)
(https://fbcdn-sphotos-d-a.akamaihd.net/hphotos-ak-xfp1/v/t1.0-9/10372667_320103578147054_6244633883999811666_n.png?oh=0c746571f58598ead4229f1321715d39&oe=5486D888&__gda__=1421947137_5fc7a5449a3fff3c5524fe7b67635050)

it may take a little bit to be finished, but once you can move, scroll down to where you see "convert to sking" and once theres a skin modifier, right click over the skin wrap and deete it, we dont need it, what we need is the skin
(https://fbcdn-sphotos-b-a.akamaihd.net/hphotos-ak-xpa1/v/t1.0-9/10451731_320103598147052_5225499515868789034_n.png?oh=12ca283d52ce69704228d11ab6c00057&oe=54D06BCC&__gda__=1422591860_33fe0a377975c5ef95d7b66a419161af)

Part 2.2: Skinning the model
now that we "stole" the rig from the default skirt, we dont need it anymore and we can delete it
then select all the rest of the objects of the model (press ctrl to multiple select) then go to the skin modifier and select skin
once youre at skin, scroll down to a button that says add; then select all the bones from the scene in the window this will show
(https://fbcdn-sphotos-h-a.akamaihd.net/hphotos-ak-xpf1/v/t1.0-9/10442458_320104758146936_7658075460834247537_n.png?oh=5bdd8ac13ebd51005ac55dd16ee2eb36&oe=54CC297A&__gda__=1418756624_ea4a8a2a37e52a90702ac6a7e8364328)

once you did it, click on "edit envelopes" and check the box that says "vertices", now you can scroll down on the skin thing until you find the weight table icon, its like a tool thing, click it and it should pop up its respective window
(https://fbcdn-sphotos-g-a.akamaihd.net/hphotos-ak-xpa1/v/t1.0-9/10438958_320105088146903_9117636362023719574_n.png?oh=56030dd9a756745ce3813deacb45bfc1&oe=5483349D&__gda__=1422683173_41687bb6417ae044a11de755d698013b)

zoom out enough to select all the vertices of the model and wight them to 1 over the HeadN bone (find it scrolling on the bones list, you can use any other but I like to start with HeadN)
you weight them to 1 in the weight table window, its the 1 on the right side (the left side is .1)
(https://scontent-a-lax.xx.fbcdn.net/hphotos-xap1/v/t1.0-9/10314733_320105641480181_1019432496170524303_n.png?oh=889710b2efe40f6a0eb87326af56d347&oe=54D07286)

this is what happens
(https://fbcdn-sphotos-f-a.akamaihd.net/hphotos-ak-xap1/v/t1.0-9/10433267_320105778146834_1703614054681650332_n.png?oh=7593d7d805f72eb7cc2c5d1762ac7d17&oe=54C9EA53&__gda__=1422333071_a919f8f56a8c6125df7f210d1c71291d)
Part 2.3: Generic bonethree structure
this is a doodle version of the bones we gonna use on its skeletical order, it may differ depending on which character are you using, but its like this on almost all the humanoid characters
(https://fbcdn-sphotos-d-a.akamaihd.net/hphotos-ak-xfa1/v/t1.0-9/10426636_320108374813241_9050709018947751799_n.png?oh=9ca270998a92f468e12e6c0572174821&oe=54859C0A&__gda__=1418436924_bfd91f0f30217b7820fe74bb9e6aaac7)

Well, now compare
(https://scontent-b-lax.xx.fbcdn.net/hphotos-xap1/v/t1.0-9/p180x540/10367722_320116808145731_636577390881695597_n.png?oh=63ba4f863894afdcd863a94ffe1a4e7f&oe=54C0FB61)
Part 2.4: My rigging method introduction: "Bones A and B"
Now Ill teach you how do I rig; I go for the system of "The Bones A and B"
we will place ourselves between two bones, we see every two bones are separated by a ball, which is what causes the bending

(https://fbcdn-sphotos-b-a.akamaihd.net/hphotos-ak-xfa1/v/t1.0-9/10372246_320108641479881_5830054183537220719_n.png?oh=3bb15342361dcdaf88e9dae914341882&oe=54C41CC3&__gda__=1418732533_5de54a1b6a3ed8372ce36fc12aba21ca)

This is how the rig should look like
Remember when we selected all the vertices and weighted them all to 1? well, thats the influence value
what does this mean?
The influence of the bone when its rodated or moved in the model will depend of these values
you sure can see what I am trying to represent with this doodle, a simple view of two bones and its vertices colored by the influences over bone B
these are the values:
Red - 1
Light Red - 0.9
Dark Orange - 0.75
Light Orange - 0.5
Dark Yellow - 0.25
Dark Blue - 0.1
Light Blue - 0.05

(https://fbcdn-sphotos-e-a.akamaihd.net/hphotos-ak-xpa1/v/t1.0-9/10360414_320109804813098_4179008213568654153_n.png?oh=3f5c3904c47473a7f7c800883b3e7be9&oe=549702AC&__gda__=1418923284_abdb4a0df9a684370b2030031c359317)(https://scontent-b-lax.xx.fbcdn.net/hphotos-xfp1/v/t1.0-9/10301953_320108661479879_8935474472839438532_n.png?oh=22ac8f690de735ddecda6f9e1cfe83e9&oe=548CF40F)

Now select RArmJ and start to weightso it looks like this
I think I dont have to remind you to set on 1 everthing in the hand and fingers too
in this part, RArmJ is Bone A and RShoulderJ is bone B
looks pretty similar, doesnt it? this is how the A-B System works
(https://fbcdn-sphotos-h-a.akamaihd.net/hphotos-ak-xap1/v/t1.0-9/10175024_320113801479365_581631950384177771_n.png?oh=97c433af76cd97c78ea9669c49100990&oe=54980B6C&__gda__=1422881317_3a0beae06b9e2887acfc5b7bf16f65ef)

RShoulderJ is the Bone B and it does look like this, compare it with the doodle pics I previously showed you
(https://fbcdn-sphotos-b-a.akamaihd.net/hphotos-ak-xpf1/v/t1.0-9/10415556_320114078146004_5655014702383483941_n.png?oh=360cae7cd351f16b6a2a138db66ccab9&oe=5486B8AD&__gda__=1422427335_e82b3ec379194abee9a8be0a03082e5b)

you can rodate the bone to see how did the rig go, for this for example, I selected RShoulderJ and rodated it, after that pressed ctrl z so the bone went back to its original rodation after that
(https://fbcdn-sphotos-g-a.akamaihd.net/hphotos-ak-xpf1/v/t1.0-9/10462895_320114194812659_247646104950224896_n.png?oh=490253ef6ad3bb1f4e205025a69f6748&oe=54D09F36&__gda__=1421996791_4ddd438d9530bb7a4e6c373ce02f77ba)

(https://fbcdn-sphotos-a-a.akamaihd.net/hphotos-ak-xap1/v/t1.0-9/10390189_320114731479272_2449808897343462875_n.png?oh=4d181b05f3d2c6da845f0a8201214ca2&oe=54CA8400&__gda__=1421994716_6e6b23e5f70af2fee49631131af4a078)(https://fbcdn-sphotos-c-a.akamaihd.net/hphotos-ak-xap1/v/t1.0-9/10390081_320115098145902_2803644280448709088_n.png?oh=269f34ce25850fbdd8a029958121ebbd&oe=548B11CD&__gda__=1422448401_eed9b8ca1d95ba758b1bded7f4dfa757)(https://scontent-b-lax.xx.fbcdn.net/hphotos-xfp1/v/t1.0-9/10302242_320115398145872_5194421359956463422_n.png?oh=0a99d97b7d15b10dfaf26201263a2948&oe=5495D5C1)

Part 2.5: Finishing the rig
Just keep rigging using the method I explained in the previous part of the tutorial
this is how HipN should look llike, on this case, HipN is like a big Bone B and the Leg bones are like two Bones A separated by the vag
(https://scontent-a-lax.xx.fbcdn.net/hphotos-xpf1/v/t1.0-9/10473183_320172031473542_3066497887188687034_n.png?oh=ac7bc2c2e38e3fa2dc5b32e140c616c1&oe=5484B22D)

This is LLegJ, which is one of the two Bone As
(https://scontent-a-lax.xx.fbcdn.net/hphotos-xpf1/v/t1.0-9/10390955_320172404806838_4333009758152282633_n.png?oh=f417b647999bebbe8bfbcb36427a0e61&oe=548CE408)

keep using the method for the knees, on this case, RLegJ is bone B and RKneeJ is Bone A
I recomend you to use the frontal viewport to select the ring of vertices that it uses and then set to 0 the influences that arent needed there using the Side viewport
(https://scontent-a-lax.xx.fbcdn.net/hphotos-xpa1/v/t1.0-9/10447860_320172554806823_2406152879765202598_n.png?oh=8e109a2684126e84c4309eaa273bdbc9&oe=5490350C)

Part 2.6: Exporting the .dae from 3ds max
now go to the srtarter button, and click on export
select the Autodest COLLADA .DAE option
3ds max doesnt have this option integrated, you must install the plugin
find the plugin on this page
http://usa.autodesk.com/adsk/servlet/pc/item?siteID=123112&id=10775920 (http://usa.autodesk.com/adsk/servlet/pc/item?siteID=123112&id=10775920)
download and install the one of yor version
note: if you dont have the plugin installed, save the scene file and close 3ds max, then install it and do this

(https://fbcdn-sphotos-d-a.akamaihd.net/hphotos-ak-xpf1/v/t1.0-9/10300097_320174174806661_2779430387669778178_n.png?oh=0945f74da4fff6acf1983375cb9a459a&oe=548D7452&__gda__=1417926456_e1803f4d78ae3f409bf9bac64169cc07)

then save the model .dae; this will pop up some windos, just click ok on them
(https://scontent-a-lax.xx.fbcdn.net/hphotos-xpf1/v/t1.0-9/10464017_320175274806551_7437738049999017723_n.png?oh=a425fdd4e905e20084df0959eb3501b8&oe=5482E9CC)
Part 3: Brawlbox work
Part 3.1:importing the textures
you should have the default files of the character youre making the import over
on my case I have a default FitPeach00.pcs and FitPeachMotionEtc.pac
you can get all the default character files here
http://opensa.dantarion.com/disc/fighter/ (http://anonym.to/?http://opensa.dantarion.com/disc/fighter/)

now open the .pcs with brawlbox v.067b (newer versions sometimes corrupts the textures, thats why I use this one for importing textures)
http://forums.kc-mm.com/Gallery/BrawlView.php?Number=27797 (http://forums.kc-mm.com/Gallery/BrawlView.php?Number=27797)
and import the textures
(https://fbcdn-sphotos-e-a.akamaihd.net/hphotos-ak-xap1/v/t1.0-9/10426343_320176968139715_6978943175591700301_n.png?oh=6102d5ea0737017f5499f801bec26069&oe=54918BBF&__gda__=1419208035_39a5c13c2bf788ed78fa9186bf95d079)

set them to CMPR so the filesize will be reduced, and remember they shouldnt be bigger than 256x256, but if you can make them smaller, the better
import all the textures and save the .pcs somewhere
(https://fbcdn-sphotos-b-a.akamaihd.net/hphotos-ak-xpf1/v/t1.0-9/10473183_320177004806378_503147759135840742_n.png?oh=34d04fac511f88ca3f9cf78806992c63&oe=5483D146&__gda__=1418332039_10cf008d5244af6e746ffa94a38196a3)

Now get brawlbox v.068c (there are newer versions now, but I like this one for importing)
http://forums.kc-mm.com/Gallery/BrawlView.php?Number=32211 (http://forums.kc-mm.com/Gallery/BrawlView.php?Number=32211)
and open the .pcs you just saved, then go to the first model data folder and right click over the mdl0 thing (that gray thing) and click on replace, now go to 3ds max folder > export >your imported character.dae
and check these boxes once you selected it

(https://fbcdn-sphotos-h-a.akamaihd.net/hphotos-ak-xpa1/v/t1.0-9/10365865_320177824806296_2668443428596737774_n.png?oh=9064d3bd2d5a08a6d6fb4223840ae39b&oe=54D0AE89&__gda__=1419000113_ad478b0cb6910331a67e235a1ab551d4)

there it is, our pretty girl! she sure looks more cute here than in 3ds max ewe
(https://fbcdn-sphotos-f-a.akamaihd.net/hphotos-ak-xfp1/v/t1.0-9/1958310_320177851472960_1506372185429909605_n.png?oh=cdbfb0c13f68f2b4b92dead102ca7fcc&oe=54CC459B&__gda__=1422095872_d1afc7b637ccd0aa4ec95dc8a41740d6)

Part 3.2:Testing the rig
time to test the rig, for this right click again, but now click on preview
zoom out the model, and spread the upper and lateral windows of brawlbox moderl viewer to see what you see on this image, click over bones, so they will not show and you will be able to see the model alone, now go to the left window and click on load, then select the fighter's motion file
(https://fbcdn-sphotos-d-a.akamaihd.net/hphotos-ak-xap1/v/t1.0-9/10427355_320178528139559_6176720033475438844_n.png?oh=6b3a9ddf20a7d01b1a47147aaf76ce34&oe=54C54B08&__gda__=1421931988_9f7c6a51f0acfb3410901eaa5ee1383a)

now select any animation (I recomend the wait animation) and see how did the rig go
well,, [censored].. I sensed the skirt was too short to be rigged normally, plus I think I forgot to rig the hands, but dont worry, we are gonna fix that and see the last steps to see our import in brawl
(https://fbcdn-sphotos-a-a.akamaihd.net/hphotos-ak-xpa1/v/t1.0-9/10245302_320178864806192_2833898836311877298_n.png?oh=04e032a833d4c241918a973361693acd&oe=548CF1D6&__gda__=1417941358_698c3f12fe926e17e985dbc13c68593c)

Part 3.3:Fixing the rig
As you remember, the import's rig was wrong, the skirt was wrong rigged because its too short for peach's skirt bones, in this case, I will rig them over the legs, take note of the other of the weight since you can aply it over any other character who has no skirt bones but you rmodel dos
its more like rigging the legs again
(https://fbcdn-sphotos-g-a.akamaihd.net/hphotos-ak-xpf1/v/t1.0-9/10345573_320334471457298_7864969660072615745_n.png?oh=411424b3fd08effbbb1c8f98b227e3d1&oe=54905294&__gda__=1418514686_8acdb51d11c796c29179768f33424226)

another thing we have to see is the filesize of the previous attempt to the import
(that one with the wrong rigged skirt, save it as .pcs so we can see the filesize)
every character has a filesize limit of 200kb bigger than the original one, except peach, for some reason, peach's .pcs filesize limit is 640kb, in this case, the filesize is too [censored]ing big so I will have to reduce the texture's dimensions

(https://fbcdn-sphotos-e-a.akamaihd.net/hphotos-ak-xpa1/v/t1.0-9/10356328_320334661457279_6272905680307222651_n.png?oh=6f7795902b9064ef17963dd34818bb3e&oe=54C7C43E&__gda__=1422372230_dd2620b7286794e3ea79fb038637604b)

once you have corrected the rig, you have to export the .dae from 3ds max again and open brawlbox 68 again and re import the .dae and test the rig witht he motion file again, this time it looks better; the neck and the shoulders just looks weird because of the bones I moved before rigging

(https://fbcdn-sphotos-c-a.akamaihd.net/hphotos-ak-xaf1/v/t1.0-9/10370812_320334894790589_4790648503558277945_n.png?oh=e8300db97e6c0635b1b9f8cb32ee5484&oe=5487929E&__gda__=1422621231_f61f79e923646b215cdcb407fde63a5e)

I have pro optimized its hair polygon once again and reduced the texture's dimensions so the filesize now is smaller so now we open the .pcs with brawlbox 67 to edit the materials and in my case, the bones

(https://fbcdn-sphotos-d-a.akamaihd.net/hphotos-ak-xpf1/v/t1.0-9/10371406_320338294790249_7065043161316137309_n.png?oh=93162618d57a3a52dfd4176dc0e32dca&oe=548C680A&__gda__=1418541920_7486f795874e8c874526b5d71ae88632)
Part 3.4:Material work
lets edit the materials; remember when I told you that the balls in the material editor in 3ds max could be named the same as the textures? well if you did it that way, the material's name in brawlbox will be the same as the textures so you will se them easier
in this case, I will put rim lighting to the bag and the hair textures
this is something important for peach models: the first material must have the first shader, in this case, the first material in the list is the bag texture, so the first shader must be the rim shader because ill add rim material to the texture

(https://fbcdn-sphotos-b-a.akamaihd.net/hphotos-ak-xpf1/v/t1.0-9/10473747_320354261455319_1643218681641037876_n.png?oh=b4ac4cc5af8d31254639da067c51c61d&oe=54873E22&__gda__=1419180616_1b3d33d1541f0a85c0c5b256d61dab6c)

every kind of material must have a shader, and if the material is repeated, they can have the same shader, there is no need to add more, in this case, since the shader0 will be the rim one, you replace it with the shader of the rim material

(https://scontent-b-lax.xx.fbcdn.net/hphotos-xpa1/v/t1.0-9/10351577_320371061453639_8474539231077438734_n.png?oh=5860d61405675b6a148effeafa95ff67&oe=549083A9)

now replace the material with the material of the rim shader
before doing that, I recomend to copy the texture's name and pasting it once the material is replaced so you wont misspell something (and sometimes materials just has weird names lol)

(https://fbcdn-sphotos-f-a.akamaihd.net/hphotos-ak-xfp1/v/t1.0-9/10325622_320371728120239_9007901957017228555_n.png?oh=8f3bc6fe464308909c0de658d0ab3f09&oe=548A535C&__gda__=1422004181_07fecb7996b79098cb241f569504d98d)

the rim material has 2 texture refference, the first is the texture's name and the secon dis named "Edge" (a texture you must also add to the textures folder in brawlbox)

(https://fbcdn-sphotos-d-a.akamaihd.net/hphotos-ak-xpa1/v/t1.0-9/10314739_320372578120154_2736380718500838082_n.png?oh=d2e75fe04187872e544ac738707e468d&oe=548754D2&__gda__=1418469994_7f1164b4ee9c9f8a759f82943a95315c)

this is important for rim materials: you must scroll down to where it says has texture matix and change it to yes, it will stay as no if the texture is of a polygon wich is rigged to a single bone, but dont worry, at least try it

(https://fbcdn-sphotos-a-a.akamaihd.net/hphotos-ak-xpa1/v/t1.0-9/10365962_320372821453463_556075262974904448_n.png?oh=581bccda528c3088fc3da3d1e88c0a23&oe=54978146&__gda__=1418215803_6d4a928afb7a38533f2149937a6f7770)

once you did it, go back to the material, and scroll up to where it says cull mode, change it to cull none, if you dont do this, the model will be transparent on the inside or the outside

(https://fbcdn-sphotos-g-a.akamaihd.net/hphotos-ak-xfa1/v/t1.0-9/10361333_320372858120126_7601942259852840585_n.png?oh=8faa97ca09dc84c88ec48c30b275394f&oe=54C39D61&__gda__=1418557271_1a636790c4cbb9a68a9595578e315fec)

now the next material is something that wont have rim lighting so it needs another shader, right click over the mdl0 and then add new shader ,then change it for the shader of the "normal material", I have added a material that will fix the transparent materials (you must use it if your texture is transparent, if you use brawlbox's defail materials, it will show up black)

(https://fbcdn-sphotos-e-a.akamaihd.net/hphotos-ak-xpa1/v/t1.0-9/10301427_320373764786702_5628392073413508505_n.png?oh=bfe34eed75ad6ecaa9a9f27109c1b6ef&oe=54C5489D&__gda__=1422441509_33e3194210867a753b27ab5f2a2b1a73)

once you have fixed the materials, go to the mdl0 and on the right window click on ad auto metal materials, this will give to your model the metal textures when it grabs the metal boxitem; just keep on mind that this will increase your filesize for a bit, if you didnt mess with the bones, youre done and now you can save it

(https://fbcdn-sphotos-c-a.akamaihd.net/hphotos-ak-xpa1/v/t1.0-9/10474234_320373801453365_8245221323408549070_n.png?oh=dbd0dfdad61db2138b3d1b8c851117ac&oe=5487E310&__gda__=1419240360_15713cbffa3e93437c9302c15b9f5e60)

remember to set the LZZZ before you save it as the .pcs, and change it to "None" for saving the .pac
the .pac must be bigger than the .pcs so dont worry

(https://fbcdn-sphotos-c-a.akamaihd.net/hphotos-ak-xpf1/v/t1.0-9/10458805_320377198119692_7910398202297781297_n.png?oh=1ce121270691c35cf4f1e6db5ef2c9c1&oe=548A34D7&__gda__=1418192573_60c3a33d2df2e22b074620c140e77794)



Part 4: Finished! Testing in the game!
ITS DONE!!

(https://scontent-b-lax.xx.fbcdn.net/hphotos-xpa1/t1.0-9/10411802_320377478119664_643119793575210193_n.png)
(https://scontent-b-lax.xx.fbcdn.net/hphotos-xap1/t1.0-9/10348373_320377484786330_1896109883147995215_n.png)
(https://scontent-b-lax.xx.fbcdn.net/hphotos-xap1/t1.0-9/10006293_320377491452996_439194706707365444_n.png)

This tutorial is so long that even getting to this point feels like a success lol, here is the final product:
(http://i.imgur.com/IdtnSFz.png) (http://forums.kc-mm.com/Gallery/BrawlView.php?Number=204440)

(http://i.imgur.com/Ni9hFfL.png) (https://www.facebook.com/pages/Gamidame_K/259408547584779?ref=hl)


Title: Re: MMD .pmd/.pmx importing full guide
Post by: Ashley and Red on September 20, 2014, 06:03:29 AM
Ohh, good work I must say. It is the 1st tutorial of pmd importing, and it is well written :) I have a quedtion: Does this applies to Maya too? Because I can only rig in Maya


Title: Re: MMD .pmd/.pmx importing full guide
Post by: Rosetta-Hime on September 20, 2014, 07:03:57 AM
The link is broken for the PMD editor. :(
But very nice tutorial!


Title: Re: MMD .pmd/.pmx importing full guide
Post by: Kyouma on September 20, 2014, 07:49:13 AM
ah, the link is not broken, I think I just mistyped it, at the link you can notice it ends with 0Editor.rarl <- thats the error
its this https://dl.dropboxusercontent.com/u/102142953/desd/PMX%20Editor.rar

Post Merge: September 20, 2014, 07:51:53 AM
Ohh, good work I must say. It is the 1st tutorial of pmd importing, and it is well written :) I have a quedtion: Does this applies to Maya too? Because I can only rig in Maya
theres a MMD tutorial out there but its outdated alot; I dont know about maya so I guess you could try getting the model ready to rig and export it as an fbx or obj to rig it in maya  or something


Title: Re: MMD .pmd/.pmx importing full guide
Post by: Ashley and Red on September 20, 2014, 07:35:51 PM
just a note: I imported succesfully into maya, now let's see if the rig works


Title: Re: MMD .pmd/.pmx importing full guide
Post by: Kyouma on September 20, 2014, 08:47:52 PM
was that similar to how I wrote it?


Title: Re: MMD .pmd/.pmx importing full guide
Post by: Ashley and Red on September 20, 2014, 09:53:18 PM
Yes and no. The steps are similar, except.for:

I don't know how to decrease the.vertice number.in Maya

Instead of.directly importing the pmd into Maya, you should import it in Blender (use any pmd/pmx/mqo importer) and then export as .dae or .fbx. Import normally in Maya, then.

Tools are the same, but some have different names


Title: Re: MMD .pmd/.pmx importing full guide
Post by: Kyouma on September 20, 2014, 11:11:19 PM
oh, well try it as I said previously; import it and optimize it on 3ds max and then export it to get it in maya; but its interesting to see its almost the same method indeed


Title: Re: MMD .pmd/.pmx importing full guide
Post by: E-scope12 on October 01, 2014, 09:24:43 AM
Are you going to import any Danganronpa 3D Models?


Title: Re: MMD .pmd/.pmx importing full guide
Post by: mahoujin on October 26, 2014, 10:43:06 AM
nice job man, exelent tutorial.


Title: Re: MMD .pmd/.pmx importing full guide
Post by: DarkDeity on December 04, 2014, 11:41:31 PM
awesome guide man i will DEFINATLEY have to put this to use. 

quick question though, you said personally that you use 3ds max 2011 but would the current 3ds max work or no?

[also as a bit of a side post/question..your icon..who is she? i could SWEAR that i may have seen her somewhere before and its literally on the tip of my tounge its driving me nuts that i dont remember ^^"]


Title: Re: MMD .pmd/.pmx importing full guide
Post by: Kyouma on December 05, 2014, 02:28:54 PM
I guess it should also work in the newer version; you use scripts that works on any 3ds max version
and that girl is not stocking from panty and stocking; she has no name and is a character from the video "Me!Me!Me!" by teddyloid


Title: Re: MMD .pmd/.pmx importing full guide
Post by: DarkDeity on December 06, 2014, 10:26:04 PM
ah ok

and ah alright. i never heard of either thing you mentioned. probably got her confused with someone else ^^'


Title: Re: MMD .pmd/.pmx importing full guide
Post by: Maydelcore on December 07, 2014, 04:25:11 PM
All images broken.


Title: Re: MMD .pmd/.pmx importing full guide
Post by: Kyouma on December 07, 2014, 04:38:29 PM
phucking chit...
Ill fix this in some time; replacing all them images will sure be tired


Title: Re: MMD .pmd/.pmx importing full guide
Post by: ZX_BraveSol_ZX on January 03, 2015, 01:40:49 AM
For anyone still trying to follow this tutorial but finding the images are still broken, you can find them all right here https://www.facebook.com/BrawlerKyouma/photos_stream?tab=photos_albums (https://www.facebook.com/BrawlerKyouma/photos_stream?tab=photos_albums)
Gamidame fix the first post already you lazy fgt


Title: Re: MMD .pmd/.pmx importing full guide
Post by: DarkDeity on May 25, 2016, 01:01:06 PM
can anyone link me to an old version of 3ds max so i can do this? i dont wanna use the current being that it seems to be able to download the trial even i still need to put my card info in and...well if this pulls the same crud that amazon primes trial pulled on me, i know it wont give me a PROPER warning on it and i cant afford the monthly fee of like....almost 200 dollars.


Title: Re: MMD .pmd/.pmx importing full guide
Post by: Shranux on May 02, 2018, 06:03:45 PM
The images of the guide is missing.


Title: Re: MMD .pmd/.pmx importing full guide
Post by: Maydelcore on May 02, 2018, 07:22:52 PM
The images of the guide is missing.

And the Facebook page including the images is lost as well.


Title: Re: MMD .pmd/.pmx importing full guide
Post by: Russell_SSB on January 13, 2019, 04:40:50 PM
Is there a way to do this, but with stages?


Title: Re: MMD .pmd/.pmx importing full guide
Post by: Kyouma on February 18, 2019, 10:36:31 AM
yep, just open the stage in pmd editor, go to export, and change the format to pmd


Title: Re: MMD .pmd/.pmx importing full guide
Post by: Russell_SSB on March 26, 2019, 02:18:41 PM
yep, just open the stage in pmd editor, go to export, and change the format to pmd
Thanks! :)