lfnetwork.com mark read register faq members calendar

Thread: Another way to mesh bodies.
Thread Tools Display Modes
Post a new thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Prev Previous Post   Next Post Next
Old 06-01-2010, 01:13 AM   #1
Master of Puppets
VarsityPuppet's Avatar
Join Date: May 2009
Location: MN
Posts: 1,289
Current Game: Chrono Trigger
Contest winner - Modding  Forum Veteran  Veteran Modder  Helpful! 
Another way to mesh bodies.

Meshing bodies for Dummies

by VarsityPuppet

I don't claim to be any sort of advanced modeler, half the time I don't know what I'm doing myself. I'm just a lazy guy who figures out other ways to do stuff without even learning the basics.

I also would like to apologize in advance for the very little effort I put into making this. There's a reason I don't write tutorials, and that is because I hate formatting forum text to make it look presentable.

Tools you'll need

mdlops (5 or later.. I just use 6)

A word of caution -

I am not here to teach you how to model from scratch. If you want a good tutorial, search this section for what you want.

I did however, find this tutorial helpful in actually trying to combine meshes.



Now, A bit of Reading

Before I explain how to do this, I should probably explain how I perceive that these models seem to work.

Most models consist of a bunch of meshes, or 3D objects, that contain some information or another on making the model work.

I won't go into detail, but basically they can be divided into 3 categories: helpers, bones and skins.

Helpers just help indicate where stuff goes. When you equip a lightsaber for instance, a helper shows where to put that saber on the model (in this case, your right or left hand)

Bones, are in essence, just that: bones. They are magically connected to a seperate mdl file which contains all of the animations. Don't worry about it... that's just how it is. You don't see them in-game, but they are there

Skins on the other hand, are quite visible and such is the point. Skins are connected to the bones by weighting their vertices to various bones. When the arm bone moves in a punching motion, the skin will deform as necessary to follow the bones accurately. This is how most animations are displayed the way they are.

For the lazy readers:

As bones move, the skin moves with the bones so long as it is connected.

Next point: some models have more bones than others. Take for instance the Jedi robe model: it has that flowing cape section as opposed to say... the Heavy armor... which has all the same bones minus the cape part of course.

For the lazy readers:

Models with more bones is better.

Choosing your models:

First and foremost, choose which models you want to combine.

For the sake of example, we'll be combining some armor model and the padawan robe model. For the male of course because I'm sexist :P (jk)

- Extract your resources

So go to K2 - bif - models

extract PMBIM.mdl, PMBIM.mdx, PMBGM.mdl AND PMBGM.mdx (These are the padawan robes and the Heavy armor models, respectively)

then go to k2 - erfs - TexturePacks - swpc_tex_tpa

Extract PMBI01 and PMBG01 (these are the textures that are displayed on these models.

When you extract these files by the way, you'll want to put them all in the same folder, whatever you decide to name it.

If you are using another set of models, I trust that you know in advance which models they are and what textures they use.


Open up whatever version of mdlops you have and decompile both of the models you have in your folder.

- Open Gmax

Open the file in gmax with the nwnmax loader.

Import PMBGM first. This one has some of the skins we need, but not all of the bones we need. We just need to see which skins we want, and how it is divided.

From the looks of things, it seems this model has 3 seperate skins: 2 arms and then the rest of the body. You're going to need to apply some critical thinking here. Which skins are you going to need?

Well, I want the armor torso and legs to show up, so that's a must, but also I'm going to need the arms as they also contain the hands I need.

minimize gmax for now.

Go to your folder and open up the pmbgm-ascii.mdl and pmbim-ascii.mdl.

In pmbgm-ascii, hit Ctrl+F to bring up the find dialog box. Type in "skin". Hit enter.

This should, ideally bring you to the first skin mesh in the model. Torso? That looks promising.

In the line just below it, it says "Parent PMBGM". Change PMBGM to PMBIM. We'll be copying it over into the other notepad file.

You'll want to add it to the end of the file. Just refer to the picture.

Now, do this as many times as necessary to import all of the skins that you need. Don't forget to change the "Parent xxxxx" to the correct model, otherwise, when you import it into gmax, it won't be linked and you'll probably get errors.

Also, make sure you replace the headhook dummy in PMBIM with the PMBGM mesh. We're going to be using the torso for the Heavy armor, so we want the head to show up in the right place... and that might not be the case if we use the headhook for the jedi model.

Occasionally, you'll get an error when you import the model and it is crucial that you fix this. This is usually caused by a missing bone.

If you want to find out which bone is missing, you'll have the check the text you copied over. Under each section, there is a subsection called "weights" If you scroll down from there, it will start listing the vertex weights and which bones they are attached to. The importer will crash if there is a bone missing, so you just have to find the first instance of a missing bone, and add it in... even if you don't need it later.

The bones stopped importing at the lfootT_g trimesh, so just look for the first trimesh that isn't there after that in the ascii file.

Hmmm, looks like we forgot to import neck_g

After you copy over neck_g into the ascii, it's time to try again.

Before you do that, check to see what it's parent is. If it doesn't exist in the PMBIM-ascii file, you'll need to copy that over.

Reload Gmax and try to import the mdl again.

Fortunately it worked this time, so we are in business.

First and foremost, let's get rid of these bones. Select all of the skinned object (use Ctrl + left-click to add to your selection). When you are satisfied with your collection, right click and select "Hide unselected".

It looks a little messy as is, but our job is to fix that.

By the way, I messed up on my own tutorial, which would explain why those partially seen red gloves are there now.

First: delete the skins you don't want. Be careful about doing this: some skins can expand quite a large area, so be ready to Edit -> Undo a lot of your actions.

To make this easy, I'll just show what needs to be deleted.

If you look close, you'll notice the black gloves and the apron thingy are gone. We have no use for those at this point.

All of the meshes that are left, we're going to need some part of those later.

Pull Torso_Geo aside using the moving gizmo. Take note of exactly where it was, so you can move it back when you're done. You'll see that it is quite a large mesh. While that is selected, click Editable Mesh, and select vertices. It's time to delete some verts, but I should mention, that UNDER NO CIRCUMSTANCES ARE YOU TO MOVE ANY VERTICES AT THIS POINT.

Once you've deleted all of the verts that you want, move it back to its original position, after unclicking the Editable Mesh modifier.

Ah, it's starting to take form.

Next, you'll have to trim away at the arms. In this scenario, I want to keep those red gloves, but not the rest of the arm. The solution, is of course to DELETE VERTS!

Hide the robe arms and delete away the verts on the arms you don't want. Make sure you leave enough intact so that the gloves don't show any holes in them when combined with the robe arm mesh.

Unhide the arm meshes, and it's looking pretty good, no? If we were to import this into the game at this point, it would look pretty decent, but there are some things that might clip through the upper section of the robe.

To be on the safe side, you could delete some verts on the armor skin mesh. I usually delete the whole back, because it's easier that way and you won't see it anyways.

Make sure you didn't inadvertently delete any vertices and export the model. You'll want to change the UV map of course, otherwise, the robe will not show up nearly as clean in-game. Unfortunately, the UV mapping is for another time.

Semi-final gmax product

Recompile it with mdlops and throw it in your override folder.


That's more or less how it goes. Mine will look different than yours for now, because I had to fix the UVMap, which honestly is a lot of work in itself. (Reforming the entire texture).

After you've exported your model and saved the ascii somewhere safe, you can move around some vertices so you can run it through Taina's replacer. Just make sure that you do NOT DELETE ANY VERTICES OR MESHES. Check for a tutorial on how to run through that effectively. Basically, it will involve you needing two different ascii models, but that is for another time.

I'm sure I'll have to update this tutorial as I really did give it only like 13% effort, but my main goal was to get this down at least.

Enjoy. If any have anything to add, feel free.

VarsityPuppet is offline   you may: quote & reply,
Post a new thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > Star Wars Gamer > Community > The Star Forge > Knights of the Old Republic series > Holowan Laboratories > Tutorials > Tutorials: Skinning and Modeling > Another way to mesh bodies.

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -4. The time now is 02:53 AM.

Powered by vBulletin®
Copyright ©2000 - 2016, Jelsoft Enterprises Ltd.