Hi there! You are currently browsing as a guest. Why not create an account? Then you get less ads, can thank creators, post feedback, keep a list of your favourites, and more!
Admin of Randomness
retired moderator
Original Poster
#1 Old 22nd Mar 2006 at 6:16 AM Last edited by tiggerypum : 19th Dec 2006 at 11:10 PM.
Default Beginning Clothing/Body Meshing Tutorial - Using MeshTool/OBJ
Beginner Clothing Mesh Tutorial – Using MeshTool and Obj Format


This is a total rewrite of the MeshTool tutorial first created by WDS BriAnna over a year ago. Too many things have changed in SimPE. Thank you BriAnna and Windkeeper for helping get so many of us started! And thank you Snowstorm for the tips on how to gather the mesh pieces.

Meshing is DIFFICULT. There are a lot of steps. Even experienced meshers sometimes have meshes not show up right, explode, or do other fun things. This is a very complete tutorial, don't rate it poorly just because it didn't work the first time you tried. Unless you really don't want to see any more tutorials on site.

This tutorial will guide you through ALL the steps involved in modifying a body mesh for Sims 2. You must always start with a game mesh as your base.

This uses the simplest of tools – MeshTool, to allow for the changes to the mesh. Because of this, you cannot add or delete points on the mesh, but you can move them. You can change the width of sleeves, make a skirt a bit longer or shorter, or give the sim larger or smaller proportions. Your modified mesh will get fit and fat in the game.

Meshtool appears to NOT work correctly with Maxis meshes that were released with Nightlife and above. You'll need to use the Unimesh Tutorial instead. Hopefully someone will be able to fix this. Also you will need Unimesh if you want to add or delete points on your mesh.

While the modifications allowed with this are fairly simple, 90% of the steps you will learn here to modify your mesh are the same used with other tools to modify meshes.

To follow this tutorial you will need:
Meshtool: http://www.modthesims2.com/showthread.php?t=45457 SimPE (.58) or higher http://sims.ambertation.de/ Note that SimPE is regularly updated/improved, so please always get the newest one, unless otherwise indicated here. SimPE .58 actually had a fix for body meshes.

If this is your first time getting SimPE, make sure you download and install all the stuff they list at: "Needed Software to run SimPE". If you don't, you'll get errors or blank screens when you try to do parts of this tutorial and be unable to complete your project!

A 3D editor that can modify obj files and will not change the order of the vertices. Most commonly people use Milkshape http://chumbalum.swissquake.ch/ ($25 to register after 30 days), although some have successfully used Maya (combined with Milkshape) and some have used Wings 3D with Hellborn’s Vertice Mapper. http://www.modthesims2.com/showthread.php?t=57446

Basic knowledge of Bodyshop (tutorials for that can be found here: http://www.modthesims2.com/forumdisplay.php?f=249 and of your 3D editor (basic tutorials for that can be found on the web)

And you will need time and patience. There are a lot of steps to modifying a body mesh. Even experienced meshers sometimes have to redo part of their work, so take your time and relax.

Goal:
Modify the women’s long gown to no longer have the hanging decoration on the back. And learn all the steps needed to make your own mesh file and get it working in the game.

Part I – Create a Temporary Texture for Testing

1) Run Bodyshop and choose an outfit you’d like to modify.
(Create Parts/Start a New Project/Create Clothing/Formal) In this example, we’re going to use the formal woman’s gown, and take that odd hanging thing off the back of it. We’re going to pick a name we can find, and as this is only a temporary texture we’ll be using, let’s name it “MeshTutorialTemp”. Import it into your game, use any tooltip and category you wish, I’m going to leave it as a formal. Close Bodyshop.

It is possible that nightlife and ofb meshes cannot be edited using this method, if you want to edit one of those meshes please go try the Unimesh Tutorial



Part II – Finding the Parts of the Mesh

2) Run SimPE.

3) Open the texture you just exported in Step 1. It will be in your Saved Sims folder (My Documents/EA Games/The Sims 2/Saved Sims) and will be named with a set of numbers at the beginning, and then the filename you gave it. For example: 7f61a2a4_MeshTutorialTemp.package

4) Look for the property set (it will be dim, in the second column). There you will see the name of the mesh. In this case afbodydresslongloose_grayline. The important part of this is the ‘afbodydresslongloose’, you can ignore the ‘grayline’ part.



5) Go to your desktop and make a new folder for your project. For example, My Documents/TutorialDress

6) Go to SimPE and use the menu File – New

7) Use the Finder Tab (it should be on the right edge or the bottom of the screen, if you can’t see it, try the menu Window – Resource Finder) and put in the name “afbodydresslongloose” and hit the Start button. SimPE will chew on this for a while, there will be a green bar updating at the bottom of the screen. This was really slow on my system, now might be a time to get up and stretch or grab a glass of water.



8) We’re going to look for our mesh parts in 4 files; The GMDC from the Sims03.package, the GMND from the Sims04.package, the SHPE from the Sims05.package, the CRES from the Sims06.package.

Scroll down until you see the Sims03.package file. Choose the GMDC by double clicking on Geometric Data Container: afbodydresslongloose _tslocator_gmdc. You do not want the LOD version. Wait for a bit (the gmdc is slowest to load) and the green bar will do it’s thing twice.



9) Now you should see the Sims03.package open, with the gmdc we clicked highlighted. Right click on it and choose ‘Extract’ and save it to the folder you made (TutorialDress)



10) Click on the ‘Finder’ tab again, and look for Sims04.package, and find the Geometric Node: afbodydresslongloose _tslocator_gmnd. Double click on it.



11) Now the Sims04.package will open. Right click on the highlighted gmnd, and extract it to the folder you made (TutorialDress)



12) Repeat steps 10 and 11 two more times looking for Sims05.package with Shape: afbodydresslongloose_untagged0_shpe, and Sims06.package with Resource Node: afbodydresslongloose_cres. Extract them to the same directory.

Part III – Building Your New Mesh Package

13) In SimPE make a new package using menu File – New

14) Right click on the empty window with the heading ‘Type’ and select ‘Add’. Select one of your files, then right click and add again, until all 4 files are shown.



15) Save the file. Use menu - File - Save As
Leave the filetype at the first selection (DBPF Package (*.package;*.cache;*.template))
Name your mesh file something like:“MESH_yournick_agesexmeshname_date”
for example: MESH_Tig_afgown_mar2006
Save this file into your “My Documents/EA Games/Sims 2/Downloads” folder.

16) Fix Integrity – it’s in menu Tools – Object Tools – Fix Integrity



17) A box will pop up. Type in a unique name for your mesh, for example, the filename. Click on Update. Then click on OK.



18) Save your mesh file. (menu File - Save)

19) Save your new Resource Node (CRES) and Shape (SHPE) files to your project folder by Right Clicking on each and choosing 'Extract'. Give them the name ‘modifiedcres’ and ‘modifiedshape’, so you can tell them from the originals.



Part IV – Attaching Your New Mesh to the Temp Skin

20) Open your bodyshop package from your saved Sims folder. (see step 3, it’ll be named something like 7f61a2a4_MeshTutorialTemp.package)

21) Right click on the packed files window and use ADD, and add your modifiedcres file. Right click again and use ADD and add your modifiedshape file.



22) Go to the 3D ID Referencing File (3IDR).
Click on it in the left window, click on it again in the right window.
In the plugin view tab, you will see a button that says Package. Click on the Package button. A window will pop up.

If you don't see any information at the bottom half of the screen (and thus no Package button) look for the 'plugin' tab at the very bottom or right side of the screen and click on it. If you can't find it still, go the the Menu 'Windows' and select 'plugin'.



23) Drag your shape and resource node from the popup window into the list on the left. You will now have two shapes and two resource nodes. Close the pop up window.



24) Click on the resource node at the top of the list and delete it by clicking delete. Click on the shape at the top list and delete it.



25) Move your new shape and resource node from the bottom of the list up to the top by clicking on the name, then clicking the UP button. When you’re done, the Resource Node should be the first entry, and Shape the second.



26) Click the Commit Button



27) Delete the Resource and Shape from the Packed Files list by right clicking on them and choosing delete. A line will go through them. Then SAVE.



28) Now is the time to test to see if you still have a working package. Start up Bodyshop. Click on Create Parts - Create New Clothing. Look for the dress in the category you chose (most likely formal). Your recolor will have a ‘*’ in the corner. Click on it. If the dress shows up on the mannequin, then so far so good. If you see nothing, or it changes to a different outfit, you might need to try repeating Part III or Part IV over again. You should now quit bodyshop, all you needed to do was click and see the texture on your mesh. Without any changes to the mesh, it’s hard to know for sure if you’re viewing your new mesh, but so far it looks good.



In the future when you check your mesh this way, your new shape will show up on the mannequin, although the thumbnail (the small picture) will be unchanged. So you’ll be looking for this same thumbnail.

Next it's time to edit your mesh. Go to the next message for the rest of this tutorial.
Advertisement
Admin of Randomness
retired moderator
Original Poster
#2 Old 22nd Mar 2006 at 8:17 AM Last edited by HystericalParoxysm : 25th May 2006 at 8:55 AM.
(this is the second part of the body mesh editing tutorial by Tiggerypum)

Part V – Editing Your Mesh (finally!)

29) Open your mesh file with SimPE.



30) Click on the Geometric Data Container (GMDC), make sure the settings are set to XYZ, and click the Export button.



31) Choose the Maya Object Exporter (.obj) and name your file something like Body1

32) I’m going to take you all the way through the Milkshape edit, just so you can get started and see where everything is. If you are using a different editor, skip to step 47. (Well, after you edit your mesh)

Remember that with this OBJ format, you cannot delete or add vertices to your mesh! You can only move them - and you cannot move them past joints (like make a short skirt long) because your sim will not animate correctly.

Start up Milkshape.

33) Click the Groups tab on the right and make sure that autosmooth is NOT checked



34) Use File – Import – Wavefront OBJ to read in your body1.obj file



35) You will see your mesh in the windows with different views. The mesh will be laying down. If you don’t see 3 windows, you can change that by going to the Windows Menu and selecting Viewport – 3 Window (2 left, 1 right).



I’m going to right-click on the big window and select ‘Wireframe’ (top of the list) and right-click again and select ‘Projection - Right’



36) Now move the view of the mesh so you see the top of the dress by holding the CTRL key and pressing the left mouse button and dragging it in the big window.

37) Now zoom in by holding the SHIFT key and left clicking and dragging in an upward motion, until you get a good view of that thing on the back of the dress.



38) Click the Select button in the Models Tab. Make sure ignore backfaces is unchecked. Make sure vertex is pressed. To select points click and drag over them. To select more points, shift-click drag. To unselect points, shift right-click drag. I’m going to select the pieces on the part that is hanging down first.



39) Now I’m going to have all the selected vertices collapsed down to the same spot – making most of the faces disappear. I’ll use menu Vertex – Snap Together.



40) Now I want to move the points (it looks like one, but it’s the whole set) up to where the rest of the points are at the top. Click the Move button, and then slide the point over to the left with the mouse.



41) Now all the points are very close to each other, so I’m going to try and select that whole top section (my intent will be to collapse them all, but I better check what I selected before I do that). So click select, and select that block of points.



42) Now check if points you didn’t want got selected. Unclick the Select button. Right click on the window with the mesh and select ‘Projection – Bottom’ (which will show you the back because the model came in laying on its back, not upright). Right click on the window and choose ‘Frame Selection’. Now we can see that I selected some points that were not on that center thing – be sure to look at the very edges, it looks like I’ve selected 4 points I don’t want.



I’m going first make sure that the Select Button is selected, and then hold SHIFT and right-click and drag over the 4 points I don’t want selected to unselect them.

43) Now that it looks like I only have that center piece, I’m going to use menu Vertex – Snap Together to bring them all together in one spot.

44) I want to check carefully how the mesh is going to look. I’m going to unclick the Select Button, and then right click on the window and select Smooth Shaded, Projection 3D, Frame all, and then the menu Edit – Select None. Now use the mouse to move the mesh around and check how it looks. Looks good.



45) I’m happy with this, so I’m going to save it. I’m going to go to File – Export – Wavefront OBJ and I’m going to put the name ‘body2’ in for my filename. Even if you want to make more changes to your mesh, this is the point at which to save it, and test it. If you want to edit more, you can import body2.obj and make more changes and save body3 and test again. But for now, we’re just doing this one thing, so I’m exporting out ‘body2.obj’



46) Now you can close Milkshape. If you wish, you can also save your file in Milkshape format (I’d name it body2, again, this one will have a .ms3d extension, so it will not effect your body2.obj file)

Part VI – Putting Your New Shape Into Your Mesh Package

47) Open Miche and Delphy’s Sims2MeshTool. (click ‘Run’ if your computer asks)

48) Click on ‘Load 3D File’ and load your new obj file (body2.obj) Click OK on the info box.



49) Click on ‘Load Sims 2 Mesh’ and then find the original gmdc file you had saved, long ago at the beginning. You might need to change the filetype from ‘simpe’ to ‘5gd’ so you can load it. It will have a long funky name, like AC4F8687-1356E054-1C0532FA-FF300D1E.5gd. It will be the only 5gd file you have in your working folder.

There are also options that you might need to try or change, depending on what program you edited your mesh with. In this case, with Milkshape, I didn't change any of them.

50) Click on ‘Save File’ and give it a name like ‘newmesh1’ (this way you if you make further changes, you can use newmesh2, etc). Close MeshTool.

51) Start SimPE and open your mesh file. (for example Downloads/MESH_Tig_afgown_mar2006)

52) Right click on the Geometric Data Container and select REPLACE. Choose your new gmdc (named ‘newmesh1.simpe)

SimPE will pop up a box saying ‘Resource Changed, should SimPE reload it’. Click Yes.

53) Now SAVE your new mesh file. Quit SimPE.

54) Now test if your new mesh works in bodyshop and in the game!



I am not sure if the Milkshape rounding error still happens, I did not notice it on my test mesh, but maybe I didn't look carefully enough - if you notice a tiny gap at the top of the neck, go back and edit your mesh - select all the vertices on the top of the neck with the select tool, and then hit move and move them upwards just a tiny bit.

If your work did not show up in bodyshop, or does not look like you expected - there is a Frequently Asked Questions / InfoCenter forum here at MtS2 that you should check, many of the basics are covered there. You might also try the tutorial again, and can ask for help (be as specific as possible) here in this forum.

Part VII - You're done! You rock!

Now you can go back to body shop and create new outfits for your modified mesh. Simply start a new project and recolor the 'temp' outfit, and it will use your new mesh. Once you've made a new recolor, you can delete the original (numbers)MeshTutorialTemp.package.

You can further refine your mesh (and it might be necessary, for other kinds of mesh edits) by adjusting the UV Map for your outfit. You can learn more about that, and find links to tutorials here

You can share your new mesh by putting your mesh file (from your Downloads folder) and at least one recolor file (from your Saved Sims folder) together and zipping them. (for example, MESH_Tig_afgown_mar2006.package and 7f61a2a4_MeshTutorialTemp.package)

If you wish to share your new mesh here at MtS2, please look at the creator guidelines in the downloads area, take the time to make a nice recolor for your new mesh, and get some good in game screenshots of your work to show it off.

I hope you enjoyed this, and have fun making your own creations. It does get easier each time you do it! And if you found this tutorial helpful, you can scroll back up to the end of the first message and click that little 'thanks' button, I'd appreciate it.
Guest
#3 Old 22nd Mar 2006 at 12:25 PM
That is really helpful Im normaly lost without a doubt One question any way that a print out version can be made so that i can go back to it while i am modding im often losting adresses of web pages
Admin of Randomness
retired moderator
Original Poster
#4 Old 22nd Mar 2006 at 2:34 PM
Not yet, going to give it a bit of time for all the dust to settle and any unclear spots to be refined. But you can print it these pages as they are, or you can tell your browser to 'save' these pages to your hard drive, so you can look through them if you're on the web or not. There's a lot of pictures, it will be challenging to create a small download.
Blenderized to Pieces
retired moderator
#5 Old 22nd Mar 2006 at 7:55 PM
HI Tiggerypum - click FILE and SAVE PAGE AS. Put the title of the page as the name of the HTM file. the save feature will place all the associated files in a subfolder.
Admin of Randomness
retired moderator
Original Poster
#6 Old 22nd Mar 2006 at 11:03 PM
Yes senicynt, that is indeed how anyone can save an html file to their hard drive for further reference. I'm not going to at this time build a separate download (which people will then click on again to download), nor will I likely make the 'download' a set of html files, although I could.

The point is, that ability is already available to everyone, and they can use it without burning additional bandwidth and using additional hard drive space on the mts2 servers; and without me having to remake and reupload a new 'download' every time I update something in this tutorial (which will again burn bandwidth and my time for no real gain)
Test Subject
#7 Old 25th Mar 2006 at 5:05 PM
Hi,

Englisch is not my first language, so forgive if i'm not clear.

I have a question about point 15.
Is it right that the format name is that line under where you can wright the file name in the popup screen "save package". I couldn't find "MESH_yournick-agesexmeshname-date"
There are three things i can choose

1. DBPF Package (*.package;*.cache;*.template)
2. Disabled DBPF Package (*packagedisabled;*simpedis)
3. All files (*.*)

I took the first one.

I'm also stuck at point 23. But maybe that is because of what i did at 15.

I hope someone will help me out

Greetings Sanchi
Admin of Randomness
retired moderator
Original Poster
#8 Old 25th Mar 2006 at 5:40 PM
It believe you did step 15 correctly, and I have tried to expand that set of directions to be clearer. You make up the filename, and it should have saved it out as a package.

At 23? Maybe you missed something in step 22? I illustrated the 3 spots to click, but I realize the text is very brief. I'll try to expand that text and I hope that helps.
Test Subject
#9 Old 25th Mar 2006 at 7:11 PM
Thank you for replying so quickly.
I've seen what i did wrong, It was at 22. I had to click on 3D ID Referencing File by "All resources"
And now i can follow the rest.

Thanks again
Test Subject
#10 Old 25th Mar 2006 at 7:52 PM
its really confused
Admin of Randomness
retired moderator
Original Poster
#11 Old 25th Mar 2006 at 8:04 PM
eacz, what you posted isn't really any sort of question that can be answered.
If you're lost, maybe this message from the InfoCenter will help you figure out what you'd like to do - http://www.modthesims2.com/article.php?t=133120
Test Subject
#12 Old 26th Mar 2006 at 7:43 AM
I'm having trouble at step 28. When I upload the outfit, the mannequin's fingers (one on each hand) get all deformed-looking and stretched out. I decided to ignore it and go on, but whenever I clicked on the Geometric Data Container, a little pop-up comes up. It says "File or assebly name Microsoft.DirectX, or one of it's dependencies were not found." That came up once before, too. Is there any way to fix it?
Admin of Randomness
retired moderator
Original Poster
#13 Old 26th Mar 2006 at 8:46 AM
Lillerzini, exactly which dress did you use, and which EPs do you have? Maxis changed the bones in the fingers and added an extra assignment (now we're getting technical) to some of the nightlife meshes (not sure about ofb meshes).

If you try the *other* tutorial that's almost identical to this one that uses Unimesh. (you can still use the same meshfile you built). You'll see that the whole first message of instructions is identical. The 2nd message explains how to edit it with Unimesh instead of Meshtool - please try that and let me know if that solves the problem. I'm also asking a programmer to check and see if indeed there is something in meshtool that needs updating.

http://db.modthesims2.com/showthread.php?t=142305

Thanks
Test Subject
#14 Old 26th Mar 2006 at 12:48 PM
Thank you tiggerypum really!!!
Test Subject
#15 Old 26th Mar 2006 at 3:43 PM
I need help with number 30 because when i click on it it brings up a window that says error file or assemblies of direct.x were not foundor one of its dependicies were not found.
But i installed dirext.x 0.9 already

I remember a year ago I was standing in the crowd
waiting for my chance to break through, my chance to live again.
Now it seems I've found some friends who finally understand
what it takes to make this dream come true, we'll be here till the end.
Admin of Randomness
retired moderator
Original Poster
#16 Old 26th Mar 2006 at 5:07 PM
bjdavila, I have never heard of that error before. Please go to the SimPE website and make sure you've installed all the stuff you might need - I know there's something about direct x and framework....
Test Subject
#17 Old 26th Mar 2006 at 6:11 PM
The first dress I used was just a regular TS2 dress, the second was an apron from Open for Business and the third was from Nightlife. I have all of the expansions.

Thank you for the help! I'll go try out the other one.
Test Subject
#18 Old 27th Mar 2006 at 6:23 AM
Very articulate. I've only played around with milkshape a couple times in passing, and SimPE ... well... normally that would be unforgivingly beyond my understanding... Good Job! Kudos! Although... *shuffles her feet* ... I'm pretty sure I've followed everything step by step... but when I check everything out in Body Shop for the last time everything is all wacked out and stretched all over the place <(T,T)>... Except for the head naturally since it wasn't part of my madness. <(O,o)> I've tried starting from scratch again... But maybe I'm missing something *re-reads tutorial* I'll just try try again <(X_X)> ... maybe you know how to fix the problem... Or maybe I'm a wackjob <(^,^)>
Admin of Randomness
retired moderator
Original Poster
#19 Old 27th Mar 2006 at 7:22 AM
I am not sure where you might have run into problems, you're using milkshape I take it... is part of the mesh laying on the floor? If so, the XYZ wasn't checkmarked when you exported your mesh. And you only collapsed the vertices right, you did not delete them or add any? I hope your next time through works better. If it doesn't the part to repeat is the 2nd message, I'm going to assume you actually got all the right pieces in the first part. (you are making sure not to get the LOD versions, right?)
Test Subject
#20 Old 27th Mar 2006 at 8:49 AM
<(V,V)> XYZ..... XZY.... it really all looks the same to me... Thank you so much for bringing it to my attention more though... That was indeed the problem. Which also explains why in your window the model was lying flat and standing in mine <(^,^)> so we've effectivly killed two problems with one big blunder. Now maybe I can be on my way to making Hinata Hyuga <(O,O)> hah ... Never hurts to dream. Thanks so much again.

*Edit* haha I actually even typed XZY twice up there... sheesh... :jaw:
Test Subject
#21 Old 29th Mar 2006 at 5:50 PM
I can't find the export button. What can I do?
Admin of Randomness
retired moderator
Original Poster
#22 Old 29th Mar 2006 at 8:49 PM
Step 30? Did you click on the Geometric DATA Container in the top windows? The bottom of the screen should show the plugin view, which is slightly obscured by the popup in my screenshot. If your GDMC is highlighted and you don't see that blue box at that bottom of the screen, look for a tab at the very bottom labeled 'plugin' and click it. Let me know what you had to do to resolve this, so I can update the tutorial with more details as needed.
Thanks!
Guest
#23 Old 1st Apr 2006 at 4:43 PM
Excellent Post, this guide is very helpful. It seems now I am spending more time in mesh, than in the game itself.

One Question, how may people find it hard to work with the XYZ order than a XZY, or is it just me?
Test Subject
#24 Old 2nd Apr 2006 at 5:44 AM
Yes it is a little harder to rotate the model around in XYZ haha but as I found out... if you use XZY is moves everything out of place.... and off the Body Shop screen haha I guess Maxis likes it better as XYZ lol damn complicated people <(^,^)>
Test Subject
#25 Old 2nd Apr 2006 at 5:57 AM
Maybe its just my way of doing things... but in step 7 where you use the Rescourse Finder option I found it easier to just open the Sims03. - 06.package files from their folder (Default: C:\Program Files\EA GAMES\The Sims 2\TSData\Res\Sims3D) then you can select Geometric Data Container.... Geometric Node... Shape... and Resource Node on the left-hand side (one for each of the coresponding files) and find the files that way... I dunno haha maybe I'm wrong but it didn't take nearly as long (and my computer SUCKS) I also just sorted them out by name and it made it that much easier to find what I was looking for.... Just a suggestion <(^,^)>
Page 1 of 21
Back to top