HystericalParoxysm
14th Jan 2007, 10:39 AM
:here: Introduction:
Body Shop will allow you to create your own skintones, but it has a few drawbacks:
- You cannot see the entire body, as females are covered by a bra and underwear, and males are wearing a tank top and boxers. This makes doing the texturing for those parts of the body pure stupid guesswork.
- The lighting of Body Shop is dark and muddy, making it hard to judge your shading, contrast, and colour without finishing the project and opening the game.
- Even if you just change a few pixels on one of your textures, it takes a looooooong time to click "Refresh" to see your changes, as it has to reload every one of the textures for the whole skintone.
Because of these drawbacks, you may wish an alternate method for working with skintones, to improve all of the above points and make your skinning easier. You can use Milkshape for this purpose, which alleviates most of the problems you may find with doing skins in Body Shop.
This tutorial will show you how to preview your textures on a Sims 2 body mesh in Body Shop. It will also introduce you a little bit to the use of Milkshape and some of the terminology used in meshes. This makes it a good tutorial for people who have been working on Body Shop recolours for a while and would like to make the transition to meshing... it's a good intermediate step.
Down below I will also explain how to do the same thing for clothing and specific sim faces. Do the skintone part first as it's a good introduction and has all the pretty pictures and stuff.
:here:You will need:
Milkshape 3D (http://chumbalum.swissquake.ch/). Milkshape is a 3d modeling program, the most common used for Sims 2, especially Body Shop meshes. It has a free trial, and is $25-30 to register, depending on how you buy.
Example Bodies and Faces (http://www.modthesims2.com/article.php?t=135300). You will need a Sims 2 body mesh to put your skintone on. And there are some already extracted, which is handy. You will need to download Example_Body_Meshs_DrPixel.zip
SimPE (http://simpe.ambertation.de/). If you want to work with specific sim faces or clothing, you'll need SimPE to export the 3d models for them. You don't need SimPE if you're just doing skintones.
Managed DirectX Extensions (http://sims.ambertation.de/en/download/realdownload/). Again, if you want to work with specific sim faces or clothing, you'll need this too. This is a plugin that you'll need if you want to use SimPE for meshes (which you do). There's a link to it on the SimPE download page under "Needed Software to run SimPE"
Unimesh Plugins for Milkshape (http://www.modthesims2.com/showthread.php?t=122399). If you want to import a specific sim face, you will need to get Unimesh. It's a different way of importing 3D models into Milkshape. We're mainly using this because .obj format faces exported from SimPE seem to lose their mapping - meaning the texture won't look right on it, defeating the purpose of using Milkshape to preview textures. You only need Unimesh if you want to use Milkshape for specific sim faces.
:here: Get a Body Into Milkshape:
1. Get and install Milkshape. It's a standard install. You should be able to handle this yourself. ;)
Get and extract the example bodies from their zip file. Put them somewhere you'll know where to find them. Mine are on my Desktop in Templates, a subfolder of my Sims 2 Projects folder.
2. Run Milkshape. It will have created an icon on your Desktop when you installed it.
3. Now you need to fix your Milkshape settings. By default, they'll be set a little bit wrong.
a. Window - Show Keyframer. Uncheck that option. You'll lose the grey bar at the bottom of your screen. That's used for animations, which we don't need.
b. In the right panel with all the controls, click on the Groups tab. Then look down at the bottom of that tab's controls for Auto Smooth. Uncheck that box.
The triangles (or polygons) that make up a mesh can be made to look smoother by the use of what is called "smoothing" or "normals" - we don't want Milkshape to change the normals on our mesh when we import it, so we'll uncheck that option to keep Milkshape from ruining the mesh.
4. Now we need to import the example body. File - Import - Wavefront OBJ
http://thumbs.modthesims2.com/getimage.php?file=445125
Navigate to where you extracted the example bodies and find the file called AdultFemExample.obj - select it and click Open.
You should now have an adult female body and head showing in Milkshape. Congratulations! You have just imported your first 3d object!
http://thumbs.modthesims2.com/getimage.php?file=445128
:here: Import Your Textures:
5. In order to import a texture, first we need to create a new material which we can apply to our 3d model.
a. Click on the Materials tab in the controls panel.
b. Click New to create a new material. It will call it Material01.
c. With Material01 selected in the list box above (it should be selected already), type a new name into the text input box. This will be the material for the body skin, so let's call it Body Skin.
d. Then click Rename. The text for the material should change in the list box from Material01 to Body Skin, as shown in the screenshot.
http://thumbs.modthesims2.com/getimage.php?file=445158
6. Let's go ahead and create the other materials we'll need to fully texture this sim. You may not need to use all three textures each time, but it's worth knowing how to do so if you feel you need to.
Create two more materials the way you did the Body Skin in step 5. Rename the materials so you know which is which. Call the first new material Scalp, and call the second new material Face.
You don't necessarily -have- to give your materials names, but if you're using more than one like we are here, it can be helpful to keep things straight as you're working.
Your Materials list should now look something like this:
http://thumbs.modthesims2.com/getimage.php?file=445159
7. Now that we have our three materials created, we need to import textures for each of them.
a. Click on the Body Skin material to select it.
b. Then click on the top button that says "<none>"
You'll get an Open dialog box. Here, you need to choose the image you want to apply to the body skin. This texture will likely be in My Documents\EA Games\The Sims 2\Projects\(YourProjectName) - whatever skintone you've exported as your base to work on. Open the normal adult female body skin, afbodynormal~top~stdMatBaseTextureName.bmp
http://thumbs2.modthesims2.com/images4/MTS2_447247_HystericalParoxysm_step7pic.jpg
When you click open, the dialog box will close, and you will see the sphere above the Ambient, Diffusive, Specular, and Emissive buttons go flesh-coloured.
Import the textures for the scalp and the face the same way - click on their names in the materials list, then click on the top <none> and select their textures. For the face I'm using afface~face~stdMatBaseTextureName.bmp and for the scalp, afhair~hair~stdMatBaseTextureName.bmp.
For a full listing of all the skintones used for the different ages and genders, see Tiggerypum's tutorial, "Making a New Skintone for Beginners (http://www.modthesims2.com/showthread.php?t=203339)."
When you've got your textures imported, you should be able to click on any of your materials in the list and see a flesh-coloured sphere displaying the texture.
:here: Apply the Textures to the Model:
8. Now it's time to get the textures on the model. To do this, we will need to tell it which Material to assign to which group of the model.
a. Click on the Groups tab.
b. Then select Example_body in the list of the mesh's groups.
c. Now click Select down below to select that group. You will see the body of the sim go red in your view panels. This shows that the body group is selected.
http://thumbs.modthesims2.com/getimage.php?file=445179
d. Click on the Materials tab.
e. Select the Body Skin material.
f. Now click Assign.
http://thumbs.modthesims2.com/getimage.php?file=445189
If you go back to the Groups tab you'll see that next to Example_body it now says <Mat.: Body Skin>... This means you have successfully assigned the Body Skin material to the Example_body group. Yay!
Click on the Example_body group in the Groups tab and click Select again. It should turn back to normal in the wireframe views - no longer bright red. Remember to deselect your groups after you assign a material to them.
Apply the textures for the scalp and face to the scalp and face groups the same way. Before you assign a material, make sure the only group selected (in red in the wireframe views) is the one you're wanting to assign to.
It probably looks like nothing has happened... but you just need to do one more thing before you can see your textures. :)
Right-click in the 3D view, the pane at the bottom right. Look in the top block of options. Smooth Shaded will be checked by default. Under that, select Textured instead.
http://thumbs.modthesims2.com/getimage.php?file=445190
You should now have a textured sim in your 3D view!
http://thumbs.modthesims2.com/getimage.php?file=445192
:here: Refreshing Textures:
9. Now that you have your skintone imported, you may want to make changes to one or more of the textures. This is one of the places where Milkshape excels over Body Shop for previewing changes for skintones. Where Body Shop may take over a minute to reload all your textures, you can do it in just a few seconds with Milkshape.
Click on the Materials tab. Select the material you wish to refresh. Then click on the top button (it used to say <none>) to get the Open dialog. Select the texture you want to use (often the same file) and click Open. It will refresh your texture on the 3d model.
Unless Milkshape hiccups (which it sometimes does) it should refresh just fine and you shouldn't have to reassign the material to the model.
http://thumbs.modthesims2.com/getimage.php?file=445208
:here: Milkshape's 3D View:
Now that you can view your skintone in 3D, you'll need to be able to move around and zoom in on the parts you want.
Moving in Milkshape can be sort of tricky. There are a couple ways to do it.
The first is using your mouse and keyboard to actually drag the camera view around the 3d model.
CTRL-click and drag to move up, down, left, and right.
SHIFT-click and drag to zoom in and out.
Click and drag to change the angle of the camera.
If you click on the Model tab and click on the Select button, you can select parts of your model by dragging a box around them in the wireframe panes. Then you can right-click on any of the panes (including the 3D view) to Frame Selection and zoom in on that part.
If you get lost and lose your model, don't panic! Right-click in the pane and choose Frame All.
If you would like to be able to view your texturing a little closer, click once in the 3D pane, then right-click in that pane and choose Maximize. That pane will now fill your whole screen (except for the control panel) so you can get a closer look. To get back to the 4-pane view, you can either right-click and choose Maximize again, or just press the spacebar on your keyboard.
The blue background that Milkshape uses as a default is less than ideal for working on skintones. The human eye can be influenced by colours in close proximity, and the blue background next to a natural skintone with a warm hue to it can cause you to overcompensate with saturation and shading. To give yourself a neutral background, you need to change the background colour of the 3D view. To do this, choose File - Preferences. Click the Choose button next to where it says Persp View. It will bring up a colour chooser. Input values of 128 into the Red, Green, and Blue fields. This will give you a truly neutral grey.
:here: Having Trouble?
Milkshape just disappears when you put your mouse cursor over a file in the Open dialog when importing a texture or .obj file...
... Yeah... that's a bug. An annoying bug. Don't know why it does that but it does it to me fairly often, especially when I put my mouse cursor over a file I've just saved in Photoshop.
You can work around it by typing folder names and file names in the text input box and hitting enter, rather than using the mouse. If you start typing a filename ("afface...") it should pop up a list of files in the folder that start with that below where you're typing, and you can use the down arrow on your keyboard to select the one you want without having to type the whole thing.
Milkshape crashes when importing a texture or .obj file...
... Again, a bug, I think. But we're not doing anything with this tutorial that, once you've done it once or twice, you can't redo in about 30 seconds. You still save yourself more time overall than trying to use Body Shop for it.
If you keep experiencing crashes, you can save your imported body and materials as an .ms3d file, Milkshape's file format. You will generally lose the textures associated with the materials when you open the file again, so you may have to re-choose your materials, but you won't have to import the .obj and set up the materials again if you save your work.
The texture applied to the sim isn't right...
If you have a face on the body or some other incorrect texture, one of several things has happened. Check each of these to make sure you haven't made a mistake:
- When importing your textures for each material, you may have used the wrong texture for a certain material, like imported the face texture for the body material. Double-check that you have the right textures associated with each of your materials.
- When selecting and applying your materials to the body, you may have had more than one group selected, or otherwise applied the wrong material to that group. Check the Groups tab to ensure that the right material is associated with the right group.
- If both of the above are okay, check your textures. Maybe you accidentally saved the face texture over your body texture and it's your textures that's wrong.
Body Shop will allow you to create your own skintones, but it has a few drawbacks:
- You cannot see the entire body, as females are covered by a bra and underwear, and males are wearing a tank top and boxers. This makes doing the texturing for those parts of the body pure stupid guesswork.
- The lighting of Body Shop is dark and muddy, making it hard to judge your shading, contrast, and colour without finishing the project and opening the game.
- Even if you just change a few pixels on one of your textures, it takes a looooooong time to click "Refresh" to see your changes, as it has to reload every one of the textures for the whole skintone.
Because of these drawbacks, you may wish an alternate method for working with skintones, to improve all of the above points and make your skinning easier. You can use Milkshape for this purpose, which alleviates most of the problems you may find with doing skins in Body Shop.
This tutorial will show you how to preview your textures on a Sims 2 body mesh in Body Shop. It will also introduce you a little bit to the use of Milkshape and some of the terminology used in meshes. This makes it a good tutorial for people who have been working on Body Shop recolours for a while and would like to make the transition to meshing... it's a good intermediate step.
Down below I will also explain how to do the same thing for clothing and specific sim faces. Do the skintone part first as it's a good introduction and has all the pretty pictures and stuff.
:here:You will need:
Milkshape 3D (http://chumbalum.swissquake.ch/). Milkshape is a 3d modeling program, the most common used for Sims 2, especially Body Shop meshes. It has a free trial, and is $25-30 to register, depending on how you buy.
Example Bodies and Faces (http://www.modthesims2.com/article.php?t=135300). You will need a Sims 2 body mesh to put your skintone on. And there are some already extracted, which is handy. You will need to download Example_Body_Meshs_DrPixel.zip
SimPE (http://simpe.ambertation.de/). If you want to work with specific sim faces or clothing, you'll need SimPE to export the 3d models for them. You don't need SimPE if you're just doing skintones.
Managed DirectX Extensions (http://sims.ambertation.de/en/download/realdownload/). Again, if you want to work with specific sim faces or clothing, you'll need this too. This is a plugin that you'll need if you want to use SimPE for meshes (which you do). There's a link to it on the SimPE download page under "Needed Software to run SimPE"
Unimesh Plugins for Milkshape (http://www.modthesims2.com/showthread.php?t=122399). If you want to import a specific sim face, you will need to get Unimesh. It's a different way of importing 3D models into Milkshape. We're mainly using this because .obj format faces exported from SimPE seem to lose their mapping - meaning the texture won't look right on it, defeating the purpose of using Milkshape to preview textures. You only need Unimesh if you want to use Milkshape for specific sim faces.
:here: Get a Body Into Milkshape:
1. Get and install Milkshape. It's a standard install. You should be able to handle this yourself. ;)
Get and extract the example bodies from their zip file. Put them somewhere you'll know where to find them. Mine are on my Desktop in Templates, a subfolder of my Sims 2 Projects folder.
2. Run Milkshape. It will have created an icon on your Desktop when you installed it.
3. Now you need to fix your Milkshape settings. By default, they'll be set a little bit wrong.
a. Window - Show Keyframer. Uncheck that option. You'll lose the grey bar at the bottom of your screen. That's used for animations, which we don't need.
b. In the right panel with all the controls, click on the Groups tab. Then look down at the bottom of that tab's controls for Auto Smooth. Uncheck that box.
The triangles (or polygons) that make up a mesh can be made to look smoother by the use of what is called "smoothing" or "normals" - we don't want Milkshape to change the normals on our mesh when we import it, so we'll uncheck that option to keep Milkshape from ruining the mesh.
4. Now we need to import the example body. File - Import - Wavefront OBJ
http://thumbs.modthesims2.com/getimage.php?file=445125
Navigate to where you extracted the example bodies and find the file called AdultFemExample.obj - select it and click Open.
You should now have an adult female body and head showing in Milkshape. Congratulations! You have just imported your first 3d object!
http://thumbs.modthesims2.com/getimage.php?file=445128
:here: Import Your Textures:
5. In order to import a texture, first we need to create a new material which we can apply to our 3d model.
a. Click on the Materials tab in the controls panel.
b. Click New to create a new material. It will call it Material01.
c. With Material01 selected in the list box above (it should be selected already), type a new name into the text input box. This will be the material for the body skin, so let's call it Body Skin.
d. Then click Rename. The text for the material should change in the list box from Material01 to Body Skin, as shown in the screenshot.
http://thumbs.modthesims2.com/getimage.php?file=445158
6. Let's go ahead and create the other materials we'll need to fully texture this sim. You may not need to use all three textures each time, but it's worth knowing how to do so if you feel you need to.
Create two more materials the way you did the Body Skin in step 5. Rename the materials so you know which is which. Call the first new material Scalp, and call the second new material Face.
You don't necessarily -have- to give your materials names, but if you're using more than one like we are here, it can be helpful to keep things straight as you're working.
Your Materials list should now look something like this:
http://thumbs.modthesims2.com/getimage.php?file=445159
7. Now that we have our three materials created, we need to import textures for each of them.
a. Click on the Body Skin material to select it.
b. Then click on the top button that says "<none>"
You'll get an Open dialog box. Here, you need to choose the image you want to apply to the body skin. This texture will likely be in My Documents\EA Games\The Sims 2\Projects\(YourProjectName) - whatever skintone you've exported as your base to work on. Open the normal adult female body skin, afbodynormal~top~stdMatBaseTextureName.bmp
http://thumbs2.modthesims2.com/images4/MTS2_447247_HystericalParoxysm_step7pic.jpg
When you click open, the dialog box will close, and you will see the sphere above the Ambient, Diffusive, Specular, and Emissive buttons go flesh-coloured.
Import the textures for the scalp and the face the same way - click on their names in the materials list, then click on the top <none> and select their textures. For the face I'm using afface~face~stdMatBaseTextureName.bmp and for the scalp, afhair~hair~stdMatBaseTextureName.bmp.
For a full listing of all the skintones used for the different ages and genders, see Tiggerypum's tutorial, "Making a New Skintone for Beginners (http://www.modthesims2.com/showthread.php?t=203339)."
When you've got your textures imported, you should be able to click on any of your materials in the list and see a flesh-coloured sphere displaying the texture.
:here: Apply the Textures to the Model:
8. Now it's time to get the textures on the model. To do this, we will need to tell it which Material to assign to which group of the model.
a. Click on the Groups tab.
b. Then select Example_body in the list of the mesh's groups.
c. Now click Select down below to select that group. You will see the body of the sim go red in your view panels. This shows that the body group is selected.
http://thumbs.modthesims2.com/getimage.php?file=445179
d. Click on the Materials tab.
e. Select the Body Skin material.
f. Now click Assign.
http://thumbs.modthesims2.com/getimage.php?file=445189
If you go back to the Groups tab you'll see that next to Example_body it now says <Mat.: Body Skin>... This means you have successfully assigned the Body Skin material to the Example_body group. Yay!
Click on the Example_body group in the Groups tab and click Select again. It should turn back to normal in the wireframe views - no longer bright red. Remember to deselect your groups after you assign a material to them.
Apply the textures for the scalp and face to the scalp and face groups the same way. Before you assign a material, make sure the only group selected (in red in the wireframe views) is the one you're wanting to assign to.
It probably looks like nothing has happened... but you just need to do one more thing before you can see your textures. :)
Right-click in the 3D view, the pane at the bottom right. Look in the top block of options. Smooth Shaded will be checked by default. Under that, select Textured instead.
http://thumbs.modthesims2.com/getimage.php?file=445190
You should now have a textured sim in your 3D view!
http://thumbs.modthesims2.com/getimage.php?file=445192
:here: Refreshing Textures:
9. Now that you have your skintone imported, you may want to make changes to one or more of the textures. This is one of the places where Milkshape excels over Body Shop for previewing changes for skintones. Where Body Shop may take over a minute to reload all your textures, you can do it in just a few seconds with Milkshape.
Click on the Materials tab. Select the material you wish to refresh. Then click on the top button (it used to say <none>) to get the Open dialog. Select the texture you want to use (often the same file) and click Open. It will refresh your texture on the 3d model.
Unless Milkshape hiccups (which it sometimes does) it should refresh just fine and you shouldn't have to reassign the material to the model.
http://thumbs.modthesims2.com/getimage.php?file=445208
:here: Milkshape's 3D View:
Now that you can view your skintone in 3D, you'll need to be able to move around and zoom in on the parts you want.
Moving in Milkshape can be sort of tricky. There are a couple ways to do it.
The first is using your mouse and keyboard to actually drag the camera view around the 3d model.
CTRL-click and drag to move up, down, left, and right.
SHIFT-click and drag to zoom in and out.
Click and drag to change the angle of the camera.
If you click on the Model tab and click on the Select button, you can select parts of your model by dragging a box around them in the wireframe panes. Then you can right-click on any of the panes (including the 3D view) to Frame Selection and zoom in on that part.
If you get lost and lose your model, don't panic! Right-click in the pane and choose Frame All.
If you would like to be able to view your texturing a little closer, click once in the 3D pane, then right-click in that pane and choose Maximize. That pane will now fill your whole screen (except for the control panel) so you can get a closer look. To get back to the 4-pane view, you can either right-click and choose Maximize again, or just press the spacebar on your keyboard.
The blue background that Milkshape uses as a default is less than ideal for working on skintones. The human eye can be influenced by colours in close proximity, and the blue background next to a natural skintone with a warm hue to it can cause you to overcompensate with saturation and shading. To give yourself a neutral background, you need to change the background colour of the 3D view. To do this, choose File - Preferences. Click the Choose button next to where it says Persp View. It will bring up a colour chooser. Input values of 128 into the Red, Green, and Blue fields. This will give you a truly neutral grey.
:here: Having Trouble?
Milkshape just disappears when you put your mouse cursor over a file in the Open dialog when importing a texture or .obj file...
... Yeah... that's a bug. An annoying bug. Don't know why it does that but it does it to me fairly often, especially when I put my mouse cursor over a file I've just saved in Photoshop.
You can work around it by typing folder names and file names in the text input box and hitting enter, rather than using the mouse. If you start typing a filename ("afface...") it should pop up a list of files in the folder that start with that below where you're typing, and you can use the down arrow on your keyboard to select the one you want without having to type the whole thing.
Milkshape crashes when importing a texture or .obj file...
... Again, a bug, I think. But we're not doing anything with this tutorial that, once you've done it once or twice, you can't redo in about 30 seconds. You still save yourself more time overall than trying to use Body Shop for it.
If you keep experiencing crashes, you can save your imported body and materials as an .ms3d file, Milkshape's file format. You will generally lose the textures associated with the materials when you open the file again, so you may have to re-choose your materials, but you won't have to import the .obj and set up the materials again if you save your work.
The texture applied to the sim isn't right...
If you have a face on the body or some other incorrect texture, one of several things has happened. Check each of these to make sure you haven't made a mistake:
- When importing your textures for each material, you may have used the wrong texture for a certain material, like imported the face texture for the body material. Double-check that you have the right textures associated with each of your materials.
- When selecting and applying your materials to the body, you may have had more than one group selected, or otherwise applied the wrong material to that group. Check the Groups tab to ensure that the right material is associated with the right group.
- If both of the above are okay, check your textures. Maybe you accidentally saved the face texture over your body texture and it's your textures that's wrong.