Tutorials:Simple Meshing for 3D Studio Max Part 1

From SimsWiki
Revision as of 16:09, 24 September 2012 by Bufu (Talk | contribs)

Jump to: navigation, search
Tutorials by Category

CAS | Patterns | Objects | Building | Worlds | Modding | Modding Reference 

Contents


  • Note: Screenshot are currently not all as good as they should be, im working on sorting this out asap, some details (and evn screenshots) got lost in the process of making this guide.


Simple Meshing 3D Studio Max.


Learning Curve:


  • Creating simple objects in 3D Studio Max.
  • Mapping simple objects in 3D Studio Max.
  • Importing from and Exporting to MilkShape 3D.



Things you need to read:


  • Guides on how to use s3oc/s3pe and/or TSRW, located around various The Sims modding sites (wiki's).
  • Few basic tutorials from 3D Studio Max would not hurt either, even though i explain almost everything these tutorials can learn you even more.



Overview:


I wanted to write this guide to show you how much you can do with 3D Studio Max, this program you can easily get lost in the nearly limitless options. This guide will cover a few simple ways of creating an object, these are the simple ground layers used to creating more complex Meshes and Textures. Since this is a guide on Simple meshing, UV mapping and textures are also in this format. For more detailed guides on this move on to part 2 or even 3 of this guide.

  • note:+ Part 2 & 3 are still in the making and will be posted as soon as they are done.


The way an object is created in this guide is similar to other guides i found on other modeling programs, even in more complex 3D art scenes this is still a very much used way to shape and mold object into 3D scene's. 3D Studio Max is capable of much more then this as you may notice during this guide, and these will be explained on simple object in the next guides.
For the duration of these guides I am using 3D Studio Max 2013, but can also apply for the larger parts to lower version of 3Ds Max.

Creating a reference Scene.

Export Milkshape.jpg

The Sims uses objects in a certain scale, in order to make sure our objects are in the same scale we want to get an exported object into our 3Ds Max. In order to do so you must have read up on the guides from the programs you downloaded to export and import objects into The Sims 3. All you need to do is get an object that is more or less similar to what you want to model, we are going to use the same table as most starting tutorials, the infamous "TableEndClub".

Importing from MilkShape 3D:


The settings are rather simple for this, first of all you don’t need any extra tools for this to work all export option are already included in Milkshape 3D and 3Ds Max. When you have the object loaded into Milkshape 3D you simple do the following: “File -> Export -> Wavefront OBJ…” and save it to your work folder named something like “Cloned_low_Detail_Mesh”.

  • Hint you can also export\import other formats exporting from and to Milkshape, I suggest playing around with it a little bit. I found .OBJ to be the cleanest format though, some other formats may export more scene related things.

Import 3Ds Max.jpg


Now for the import part to create our reference scene, this is very easy in 3Ds Max go to the top left button with the 3Ds max sign on it (it’s the same menu as file in Milkshape). There select “Import -> Import”, now in the next menu navigate to the work folder and select you exported files (this file should just show up as “All Formats” is on by default, if not select the drop down menu of “Files of Type:” and select either the “.OBJ” format or “All Formats” option).



Import Settings 3Ds Max.jpg

When proceeding you get a new screen with all kind of options you can select, these settings make up what you import to 3Ds Max. We need to pay attention to this screen for a minute to make sure we select all the right options.

On the picture I highlighted all options that need to be checked, keep in mind that leaving other switches on might create another end result than we have in this guide.

We want to flip ZY-axis, this is a common setting used for exporting/importing to/from Poser like programs, not checking this may result in a flipped object that you need to rotated to get correct again.

We also want to import Texture coordinates and Normals (Import from file).

  • Hint A small word of warning though before we move on, this concerns scaling in 3Ds Max, and can make things very complicated if you don’t know how to scale. We are not going to scale the imported objects as I know what I am doing, and I don’t always need to see the end result in 3D up close. The unit conversion from The Sims 3 to 3Ds Max is rather harsh by default, and if not scaled the object can’t be viewed up close in 3D very well. If you want to use scaled objects try playing around with the “Unit/Scale” settings on the “OBJ Import Options”, and keep checking in Milkshape how it turns out against the reference size object there.

Save As.jpg

Now we are basically done already, you can look around a little bit now to make sure your import has worked out correctly.
You need to see a solid object now in your perspective viewport (bottom right by default).

Saving you first Project as a reference Scene:


The next step is fairly easy, and is very much needed so you can load this scene with in a single click and don’t need to import things again. To do this go to the 3Ds Max icon on the top left corner of the program and select "Save As -> Save As”. Then navigate to your work folder and give it a common name.

Repeat these steps for all Exported meshes you want to replace, so when you are working on something you can always start again from this point if needed.

Making an Model.


Making a model is our next step; we are going to make a simple model that is more or less the same as the object we imported. We will only make a low-detail one, as the high-detail one is simply the same model but then with added detail levels.

Before you start to model you always need to figure out which details you want to go into what model, and which you want molded into your textures. I usually just make flat surfaces on low-detail models, at the most i do raised areas when i want a second level of detail. If this doesn't make any sense to you at this point, don't worry about it.

For now we don’t need much detail for doing a low-detail model, so start by loading your low-detail scene so we have a object to scale to. You can directly save this scene under a new name like “Modeling_New_end_Table” if you want, this creates an extra fail save.

Creating Simple Objects


Simple objects can form the basis of many models, making one or more objects collide into each other can make a whole other object then the primitive basic one was. This is the most used way of modeling to get object made in a quick workflow, but it’s not the most perfect way of making objects.


Make Object.jpg

The simple objects often have overlapping areas as the objects are hanging inside each other. For the end result this does not really matter, as you won’t see these overlapping areas.

In 3Ds Max these objects are called “Standard Primitives” and can be found on the right hand tool bar if you dint change the 3Ds Max layout.

We are going to start out by using a box to replicated an evenly sized table top, simply select the option “Box” to start making one.


Make Object 2.jpg

You will directly see a parameters box pop up and some other options, we won’t be using these but you can experiment with it for your own use.

You can now click in an active view port to create your box around 2 axis’s, after doing the 2 axis you will be able to set a 3rd created the 3D aspect of the object.


Make Object 3.jpg

  • Hint Objects are created around the Length and Width axis first, regardless of witch viewport you use to make the object in. Keep this in mind when making an object if you intend to use the "Parameters" tab to edit your box after placing it.


Drag it to any height you want (moving the mouse up and down looking at the perspective viewport), just make sure the width and length are the same as I did more or less. It should be more or less the same size as the object we imported.
To clear the box creation mode right click in the active viewport.

Now we are going to move our box to the right position, and then scale it to size a bit more were needed.
Use the front viewport to select your box if it’s not already selected, pressing the key “W” makes the move tool active so you can move the box in that front viewport up to the top of the table we have as reference.
As you can see I totally zoomed in to make the finally move on top of the bottom line of the reference table top

  • Hint You can also select lines, points and other geometry to move something, just hover over it until your mouse icon changes to 4 arrows. To change the axis constrain press “F8”, although sometimes you need to press it twice to get the correct direction, this way can be faster than finding the tool around the object its control point.
Make Object 4.jpg


Now we will fine tune the table top later on, we first need to rename it and create the legs and other detail first. Go to the edit model toolbar and enter the name “Table Top” as shown, after this go back to making a box and create a box around a leg of the reference object like you did with the table top, this time to match the height as much as possible as well. Start working from the top viewport and use the perspective view as a reference view don’t worry about moving outside of the top of the screen for the height the mouse button will appear on the bottom again as soon as you scroll out.
Repeat this action until you have all 4 legs and the use the move tool to fine tune the left position over the reference model.



Make Object 5.jpg

Or you can select you first leg, and press the “Shift” key while dragging it across the screen to another leg. Once you release the mouse button a “Clone Option” menu will pop up, in this menu you need to select the “Copy” to object function and name the object “leg_2”.

Rename the one leg you haven’t renamed yet if you cloned them all, or rename them all if you made separate boxes. Then quickly scale them a little bit if needed and also move them a bit. For scaling use the “Tools -> Scale” menu, it works the same as the move tool. Or find the button on the top tool bar 2 icons over from the move tool to the right.

You can see now we already create a large portion of the table in a matter of seconds (if you don’t count the reading part, in my case writing ….).


Make Object 6.jpg

I don’t want a center piece like this table with a drawer in it, i want to have 3 boards spread from bottom to top instead. To get this done we are going to start by making a box that is going to make up the same size later as the bottom board the reference object has.
You should be able to do this without help from here on out, so I’m going more into the creating 3 boards out of the one board. You just learned how to drag clone an object making the legs this time we are going to use another tool to make all the copy’s at once at the place we want them to be.

Create, scale and move a box to form the bottom board and call it “Board”, then use the “Tools -> Array” tool and see the new configuration window pop up.
Again select the “Copy” option and now let’s duplicate this thing around an axis for a set amount of centimeters (in my case). Click the “3D Array Dimensions” and enter a count of 3 then set a value of “0,55” on the Z–Axis, now click "Preview" and watch what happens. If you like what you see click “Ok” if not fine tune it to your taste and click “Ok”.


Make Object 7.jpg


Now that we have the object we want we can start grouping and fine-tuning the scaling where needed.
If you did it all correct you will get the following preview in your perspective view.
Colors may vary, as they are generated randomly when making objects.


Make Object 8.jpg



Grouping simple objects:


alt text

Now to create a solid object with matching sizes, first we need to take one element and convert it to something workable in this case it’s going to be an element called “Editable Polygon”.

With this element, or modifier witch ever you want to call it, you can modify the object on the area you want to. And you can merge other objects into your Mesh to create one solid Group/Mesh to export and or texture map.

To do this select one object, let’s start with the table top for example. And right click in your active viewport to open a drop down menu, and then select “Convert to Editable Poly” from it and watch the edit toolbar change. Once you done this rename your object to “End_Table”, and enter the vertex select level.


alt text

Select one of the top vertexes and start moving it around to match that side of the reference object, keep selecting and moving around vertexes until you table top is the same size and shape as the reference object.

We will merge another object to this, once we have the correct size for this object.

Now you only need 2 viewports to make this object the correct size, but feel free to use this stage to test around with the movements in 3Ds Max a bit.

I found the movement to be slightly off from most modeling tools i used, i had a few little issues with the perspective viewport but i learned to love the way you move around in 3Ds Max its gives a nice and smooth handling.


alt text

Now let’s merge a leg to our table top and make that the correct size.

You may have noticed that the reference objects has slightly sloped legs, we are not going to replicate that, and we want the top shape of the legs and nothing else.

There are 2 ways of making this merge happen, both are done in the objects editable mesh settings under the tab “Edit Geometry” the options we are looking for is “Attach” and “Attach List” (the box behind it).

The first is selection based you can use a viewport to select the object you want to merge with. The second is based on a list indeed, you get a list of object names and select our leg from that menu to merge with you table top.

It’s up to how you merge the leg(s) to your object, proceed with the leg you merge to match the top size of the reference legs.


alt text

Once you are done with the one leg, move onto the second leg and rinse and repeat this around for all legs.

  • Hint Is a certain object in your way? Select that object and use the right click menu on an active viewport to use the option “Hide Selection”. The object is now hidden until you unhide it true this same menu.


Now you can use the same learned craft to complete the initial object, attach all remaining objects and scale them to size after that, if you did the same as me the next picture will be more or less the same with the reference object hidden.


alt text

We are almost done as well with this object we need to prepare it for texture mapping and exporting.

To finish the object we are first going to rename it to “Group_01” and then we want to add a few extra lines.

  • Note: This next step is not really needed for simple objects with low detail like this one, 3D Studio max has an automated tessellation when using "Editable Mesh" objects. Just for the sake of showing the option i used it in the guide. The object will just work and show up perfectly without it.


As you can see reference object has some extra diagonal lines in the object.
We are going to do this to, it’s a simple operation called “Tessellate” and can be found in the “Edit Geometry” tab.

For this option to show up as usable you need to be in “Face”, “Element” or “Polygon” selection mode and you need to select all Faces/Elements/Polygons ("Ctrl+A") for it.

The box behind it is the one we want, depending on your version of 3Ds Max the menu may be different, but option should be the same. Set the same as my screenshot to get a similar end-result.

The end result should be similar to the following, if you have the same as me move on to the texture mapping part of this guide.


Object Grouping 6.jpg

Be sure to make a saved scene of the progress so far.
Next up is mapping the sides to make a wood grain fit in The Sims 3.

Creating a simple mapping:


alt text
alt text

Now to create a simple mapping to form the basis of our texture, from here on out you can do without our reference object you can either delete it or keep it on hide for the entire process. In 3Ds Max you have a ton of modifiers to pick from to shape and mold the outcome of you model, I haven’t tested all of them yet in combination with The Sims, but I reckon that those making a solid object will work as long as you collapse them into the Mesh.

The one we are going to use now is called “Unwrap UWV”. This modifier can select object faces and vertexes in order to create a texture mapping that suits you; the way this is being done is much like the UV mappers currently used by most tool for modding The Sims. The plus side here is that you can create simple base textures as well, this saves you using other programs to create “fake” shadows and highlights.

Let’s get to it and assign this modifier to our object, look at the screenshot were to find it. Now we this mode has similar button to the editable mesh one, but as you can see only 3 selection mode, and a grey 4th if your using 2013.


alt text

First we need to setup rendering and bitmap sizes, in order for this to come out properly we need every bitmap size to match the exported examples. The size we want is 256Wx512H Pixels, we need to set this both to render settings and to bitmap size in the “Edit UWVs”. For the “Render Setup” press “F10” (see screenshot where to find the settings you need to change), as you can see I set a render preset as well. If you do this now you won’t have to do this later.

  • Note: The render preset is only needed for 3Ds Max 2013, cause else you can’t render the Occlusion mapping that we need. Don’t worry about loading things at this point we have our backup object already and are going to save this scene later under a new name.


Now close the setup menu when done.


alt text
alt text

Go into the face selection and select all faces on the object using “Ctrl+A”, once this is done click the “Open UV Editor” box and be amazed by a new epic window (2011 and up got major improvements here, screenshots may be of from here on out, but option names are still the same). Now we need to do 2 things, as you can see we have 1 big red square now. We need to flatten this mapping a little so we can work with it, and then apply a texture to see how our grains are turning out.


To do this go to “Option -> Preferences” on the “Edit UVWs” screen, or press “Ctrl+O”. Now you will see a settings window where we are going to change a few things before we move on. We need to set the bitmap size here we want to work with, so we can scale our mapping accordingly. I also turned on the grid with black lines and a grey background, and told the editor to tile my bitmaps.


With all faces still selected go to “Mapping -> Flatten Mapping”, now a settings box will open here I only changed the “Face Angle Threshold” to a value of “75,0” this created for me a proper base mapping to work with. If you like to mess around with the setting to create your own mapping feel free to do so. (Sorry about the 512x512 background I failed ><.)

Editing that simple mapping:


alt text

Then I moved the easy to map areas to the top by the all getting its own part on the texture mapping.

The screenshot should show you all option on how to get the arrangement I made.

Also I moved the legs and sides of the tables to the bottom of the mapping, ill arrange them later to match the wood grains.

You can see the objects themselves are spaced from each other, but in between the groups are still large empty areas.

This will sort now as well, and we will flip over some faces to match the wood grains we need.

Also I kept the feet ends out of the bitmap for now, as you won’t be seeing much of these anyways.

  • Hint: If you do need to rotate check the “Quick Transform” tab to the right.



Ok now for the grain alignments, let’s say we have a wood texture with grains going from the top of the map to the bottom.

For the table top and boards this isn’t a big issue, but for all sides and legs it is.

If you look at our alignment the feet are currently having the grains from left to right projected, so we need to rotated them 90 degrees to get the pattern to go from top to bottom (read the hint above, don’t worry about moving them outside the texture map).


alt text

Now the sides are a little bit more complicated, the easy way is to select a part of the table top in your 3D viewport, and then looking in the editor how the face is turned.

When you see the grain is going true that face you need to make the side align the same way.


alt text

Bluntly said on the texture map you want the left and right side to be in the same orientation as the top/bottom half.

This way the grain falls over the edge into the bottom section like as if it was a proper board.

In the next picture you can see the rotated faces as a reference to how you might want it (yes I changed the line colors for this ><).

Now we have the objects aligned we need to scale them to match an equal size to what we have on the object. Currently everything is kind of torn slightly too much to the map size. You can see the table top is not square anymore, we want to slightly change this back same goes for any parts that are outside the dark lines square that makes up the texture map.

Every single face needs to be inside the texture map when you are finished.

The next picture is a view of how the texture map should look once you are done scaling things, the size doesn’t have to be spot on as mine, but do try to fill up most of the texture mapping area’s to ensure you got as much as possible detail on each part you created.

I used the table top sizes to scale my sides that I rotated, and I increased the leg size by the amount of spare space I had left after moving around the table tops.

And in the spare spots I made the feet top and bottoms fit, also scaling them up a little bit more to fill up the holes.

Baking simple map textures:

Personal tools
Namespaces

Variants
Actions
Navigation
game select
Toolbox