Chapter 5. Modeling in 3ds Max: Part II

Building models in any 3D package comes down to creating and arranging vertices so that the appropriate polygonal shapes and organization of faces are sent to the renderer. The difference between a mesh shaped like a box and one shaped like a drum is how the vertices are organized. In recent releases of 3ds Max, the functionality and stability of the Polygon Modeling tools have been some of the most addressed areas. When using the Editable Poly toolset, or the Edit Poly modifier, the sub-objects of a mesh can be finely controlled to create almost any mesh object conceivable.

In 3ds Max, you can directly affect geometry objects and you can transform two-dimensional objects into three-dimensional geometry. Extruding, beveling, lofting, and lathing are just some of the ways to create geometry from splines. In this chapter, the Editable Poly toolset, the Lathe and Bevel modifiers, and the Loft compound object are covered while creating a low-polygon tank. We will also examine the ShapeMerge compound object, the Snapshot tool for creating copies of animated objects, and the Boolean Subtraction tool.

Topics in this chapter include:

  • Setting Up the Scene

  • The Editable Poly Tools

  • Lofting the Barrel

  • Lathing the Wheels

  • Using Snapshot to Create the Tracks

Setting Up the Scene

Using reference materials will help you efficiently create your 3D model and achieve a good likeness in your end result. The temptation to just "wing it" and start building the objects is often strong, especially when time is short. This temptation should always be suppressed in deference to a well thought-out approach to the task. Sketches, photographs, and drawings can all be used as resources for the modeling process; you can place them in a scene as backdrop images and model over them. Existing, similar models and even video clips or screen captures can be added to a scene as background images.

Creating Planes and Adding Materials

There are two common approaches for adding backdrop images for modeling: using the viewport's Background Image feature and placing the reference images on crossing plane objects or thin boxes. In this exercise, the crossing boxes technique is used as the starting point to build a low-polygon tank.

  1. Open or reset 3ds Max.

  2. In the Top viewport create a tall, wide box running along the X- axis.

  3. In the Parameters rollout of the Command panel, set the Length to 0.1, Width to 400, and Height to 100.

  4. With the box still selected, click the Move tool (

    Creating Planes and Adding Materials
    Creating Planes and Adding Materials

    Note

    Right-clicking on the spinner arrows to the right of an entry field immediately sets that field to its lowest possible, non-negative value.

    The box will move to the origin.

    Creating Planes and Adding Materials
    The crossing boxes setup

    Figure 5.1. The crossing boxes setup

  5. Create another box in the Top viewport. This one should run primarily along the Y- axis.

  6. Set the Length to 150, Width to 0.1, and Height to 100.

  7. Move this box to the origin as well. The Perspective viewport should look similar to Figure 5.1.

Adding Materials

Materials are covered in more depth in Chapter 7, "Materials and Mapping." For this exercise, you only need to know enough about the Material Editor to get the reference images to appear on the faces of the boxes. For now, the image maps must be in the same folder as the project file. Chapter 7 will show you how to assign paths where 3ds Max can look for the required support files.

  1. Click the Material Editor button (

    Adding Materials

    The top-left sample sphere has a white border. This is the sample slot where you will make the first material. Your Material Editor might display fewer sample slots.

    WHY CHOOSE BOXES INSTEAD OF PLANES?
  2. Expand the Maps rollout and click the Diffuse Color button currently labeled None.

    WHY CHOOSE BOXES INSTEAD OF PLANES?
  3. Double-click Bitmap at the top of the Material/Map Browser that opens.

    WHY CHOOSE BOXES INSTEAD OF PLANES?
  4. In the Select Bitmap Image File dialog box that opens, navigate to the location of the Chapter 5 files from the companion CD and select the Tank Front.jpg file. A thumbnail image of the file will display in the Preview window. Click the Open button to add the first tank image to the material.

    WHY CHOOSE BOXES INSTEAD OF PLANES?
  5. In the Material Editor's horizontal toolbar, click the Show Map in Viewport button. This causes the image map to be displayed in all viewports using the Smooth + Highlights display.

    WHY CHOOSE BOXES INSTEAD OF PLANES?
  6. With the shorter box selected, click the Assign Material to Selection button in the Material Editor toolbar. The tank front image will display on the face of of the box.

    WHY CHOOSE BOXES INSTEAD OF PLANES?
  7. In the sample slot area, select the sample slot to the right of the current slot. Its boundary turns white to indicate that it is the current material.

    FREEZING AN OBJECT WITH REFERENCE IMAGES
  8. Repeat Steps 2 through 5, this time choosing the Tank Side.jpg file in the Select Bitmap Image File dialog box.

  9. Select the longer box, and then click the Assign Material to Selection button. Your Perspective viewport should look like Figure 5.2. If the images do not appear in the viewport, right-click on the viewport's title and choose Smooth + Highlights from the pop-up menu to change the viewport rendering mode.

  10. Close the Material Editor.

    The scene with the reference images applied to the boxes

    Figure 5.2. The scene with the reference images applied to the boxes

The Editable Poly Tools

The Editable Poly toolset available in 3ds Max 9 is very comprehensive and offers almost limitless potential for creating models. Using the proper tools and techniques, both low-polygon models, suitable for games or background objects, and smooth organic-looking objects are well within the capabilities of a skilled artist or modeler. In addition to moving and rotating the editable poly sub-objects, you will often use the following tools in polygonal modeling; you also had the chance to experiment with these tools in Chapter 4.

Weld Vertices

Two adjacent polygons can share a vertex or each have its own collocated vertices. Welding combines any selected vertices, within the threshold distance apart, as a single vertex.

Chamfer Edges or Vertices

This creates a new surface between two or more adjacent polygons. The angle of the new polygon is one-half the angle between the original polys. This creates a smoother transition between the adjoining surfaces.

Bridge Borders

This builds polygons that span the distance between two borders on the same editable poly object.

Cap Borders

This closes the selected border by creating new polygons.

Extrude Polygons

Polygons are moved along the axis of their normal, creating additional vertices, edges, and polygons to connect them back to previously adjacent polys.

Bevel Polygons

This is similar to Extrude, with the additional option to scale the relocated poly.

Inset Polygons

This creates a new polygon by creating a new set of edges inset from the current polygon's perimeter.

Hinge from Edge

This pivots the selected polygons about a user chosen edge. New polygons are created to span the gap.

Attach

This attaches two or more editable polys to each other. The result is a single editable poly consisting of multiple, noncontiguous elements.

Cut

This creates a new edge on the surface of a polygon.

Connect Edges

This connects the selected edges by subdividing them the inserting edges at the newly created endpoints.

This chapter focuses on low-polygon modeling, and Chapter 6, "Organic Poly Modeling," addresses the tools and techniques used in organic modeling. In this exercise, the Vertex and Polygon sub-object levels are mainly used to form the tank's body and turret. In the later exercises in this chapter, lofting, the Lathe modifier, and the Snapshot tools are used to complete the tank.

Building the Tank Body

To begin creating the body of the tank, follow these steps:

Building the Tank Body
  1. Continue with the previous exercise or open the Tank1.max file from the companion CD.

    Building the Tank Body
  2. Right-click on the title of the Front viewport and change its Rendering mode to Smooth + Highlights. Right-click on it again and choose Edged Faces to display the scene objects' edges as well as their surfaces. Do the same to the Left viewport and turn on Edged Faces in the Perspective viewport; only the Top viewport should display the scene in wireframe.

    To construct the tank, you need to build the tank's body by making a box, converting it to an editable poly and then editing its sub-objects.

  3. Create the box in the Top viewport to represent the volume of the tank's body between the treads. The Length, Width, and Height values should be approximately 76, 310, and 33, respectively.

  4. Change the number of Length Segments to 3, Width Segments to 5, and Height Segments to 2. You want enough segmentation to account for the major changes in the body's structure, but not so much that manipulating the model becomes unwieldy.

    Building the Tank Body
  5. Move the box into the proper location, as shown in Figure 5.3. Make any necessary changes to the box's parameters so that it matches the volume of the tank body.

    Building the Tank Body

    One situation that must be addressed is the fact that the box obscures the view of the background images. This is resolved by changing the box's properties so that it is displayed in See-Through mode.

  6. With the box selected, right-click in the viewport and choose Object Properties from the Quad menu.

    Building the Tank Body

    In the Object Properties dialog box that opens, check the See-Through option in the Display Properties section and then click the OK button. The box becomes transparent in the viewports, and the edges remain visible, as shown in Figure 5.4. The keyboard shortcut for this feature is Alt+X.

  7. Right-click again and choose Convert To → Convert to Editable Poly. The box is no longer a parametric object. It is now a collection of vertices, edges, and polygons, and the Command panel automatically switches to the Modify tab.

  8. In the Command panel, change the name of the box to Tank Body.

The box moved into the proper location

Figure 5.3. The box moved into the proper location

The See-Through option makes the box transparent.

Figure 5.4. The See-Through option makes the box transparent.

Forming the Body

  1. Maximize the Front viewport and zoom in to the front half of the tank.

  2. In the Selection rollout, click the Vertex button (

    Forming the Body
  3. Drag a selection region around the vertices. Instead of clicking directly on a vertex, use a selection region because doing so will select all the vertices within the region and not only the vertex that is clicked on directly.

    Forming the Body
  4. Move the selected vertices until they are at the top of the leading edge of the tank.

    Forming the Body
  5. Select and move the two rows, one row at a time, to match the perimeter of the front of the tank.

    Forming the Body
  6. Continue forming the tank body by moving the vertices along the top of the tank. In Figure 5.5 the box's See-Through mode is turned off for clarity.

    The vertices of the front and top of the tank have been moved.

    Figure 5.5. The vertices of the front and top of the tank have been moved.

  7. Move the middle, horizontal row of vertices to follow the line at the top of the skirt that covers the top of the track. Move the bottom row of vertices to follow the bottom of the skirt. The vertical edges, when possible, should match the edges of the skirt panels.

    The vertices of the front and top of the tank have been moved.

Creating the Skirts and Refining the Model

The basic shape of the body has been roughed in. The next step is to extend the body to encompass the track skirts. The polygons along the side of the model need to be extended and the sloped top surface need to be created.

  1. Creating the Skirts and Refining the Model
  2. Select the tank body object if necessary and click the Polygon button (

    Creating the Skirts and Refining the Model
  3. In the Perspective viewport, select all of the polygons on the right side of the tank.

    Creating the Skirts and Refining the Model

    Several of the Editable Poly tools have two methods of implementing them: direct manipulation and a dialog box. Clicking on most tool buttons allows the user to click and drag on the selected sub-objects in order to manipulate them manually. Clicking the box-shaped Settings button (

    Creating the Skirts and Refining the Model

    Clicking the Apply button in a Settings dialog box applies the dialog's current values to the selected sub-objects and then previews the same parameters applied to the newly created and selected sub-objects. Clicking the OK button in a Settings dialog box applies the dialog's current values to the selected sub-objects and then exits the dialog box.

  4. In the Edit Polygons rollout, click the Settings button next to the Extrude button to open the Extrude Polygons dialog box.

    Creating the Skirts and Refining the Model
  5. Extend the Extrusion Height value until the polygons reach the inside edge of the skirt shown in the tank's front reference image, and then click the OK button. (See graphic on bottom left.)

  6. Deselect the top row of polygons, and then click the Extrude Settings button again. The selected polygons initially extrude to the same amount as the previous extrusion. Reduce the Extrusion Height value until the polygons extend to the outside of the skirt. (See graphic on bottom right.)

  7. Render the scene, and you will see the shelf you just created that runs the length of the tank as shown in Figure 5.6. This is the top of the skirt. The small vertical surface above it needs to be collapsed to form the slope at the edges of the tank body's top surface. Vertical edges and their corresponding vertices must be added to the polygons to achieve an acceptable result.

    Creating the Skirts and Refining the Model
    The second extrusion has created a shelf along the tank's top surface.

    Figure 5.6. The second extrusion has created a shelf along the tank's top surface.

    Note

    You may find yourself turning See-Through mode on and off or hiding/unhiding the background images throughout the modeling process. Alt+X is the shortcut to toggle the See- Through mode.

  8. Zoom in to the front-left edge of the model.

    The second extrusion has created a shelf along the tank's top surface.
  9. In the Edit Geometry rollout, click the Cut button.

    The Cut tool places vertices on a model and creates the required edges to sub-divide the polygons. You need to be aware of the Cut tool's cursor appearance. A cursor that looks like a square over a cross indicates that the vertex will be placed on the surface of a polygon. A large cross indicates that it will be placed along an edge. A smaller cross uses an existing vertex as the end point for the new edges.

  10. Place the cursor at a vertex on the top or bottom of the shelf where there is no corresponding vertex on the opposite edge, as shown in the left image in Figure 5.7.

  11. Click and then move the cursor away from the vertex, and you will see the new edges forming as shown in the middle image in Figure 5.7.

  12. Place the cursor over the edge in the middle of the shelf, as shown in the right image in Figure 5.7, then click to create the new vertex and edges.

    Creating the vertical edges needed to slope the top surface

    Figure 5.7. Creating the vertical edges needed to slope the top surface

  13. Continue moving back along the tank's left side. Create vertical edges and corresponding vertices wherever the top surface of the tank changes shape, usually to accommodate the tapered edges of the vehicle where the top meets the side.

    Creating the vertical edges needed to slope the top surface
  14. Switch back to the Vertex sub-object level and zoom into the front-left section of the tank again.

    Creating the vertical edges needed to slope the top surface
  15. In the Edit Vertices rollout, click the Target Weld button. Using Target Weld, a selected vertex is moved and then welded to another specific vertex on the object.

  16. Select a vertex along the top edge of the tank body. A rubber banding line connects the vertex to the cursor.

    Creating the vertical edges needed to slope the top surface
  17. Move the cursor over the vertex directly below the currently selected vertex and click to complete the weld.

  18. Continue welding the vertices of the vertical edges down the length of the tank.

    Creating the vertical edges needed to slope the top surface

Creating the Track Well and Making the Model Symmetrical

The left side of the tank body is nearly finished. In this section, the bottom of the tank is opened—using Booleans—so that the tracks and the model can be made symmetrical.

  1. Creating the Track Well and Making the Model Symmetrical
  2. Exit any sub-object mode if necessary.

  3. Arc Rotate the Perspective viewport so that you can see the bottom of the tank.

  4. In the Command panel, click Geometry → Box and check the AutoGrid option at the top of the Object Type rollout.

  5. Make sure the 3D Snap Toggle (

    Creating the Track Well and Making the Model Symmetrical
  6. Click the vertex where the skirt meets the first flat poly at the bottom of the tank, and then click again on the vertex at the opposite corner of the last flat poly on the left at the rear of the tank. Drag and click to give the box some height. The box should project downward, from the bottom of the tank, equal to about half the tank body's height. Your scene should look similar to Figure 5.8.

    Make a box that will be used to delete part of the model using the Boolean functions.

    Figure 5.8. Make a box that will be used to delete part of the model using the Boolean functions.

  7. Using the S shortcut key, turn off the 3D Snap Toggle. Then move and adjust the box to completely envelop the volume that will be the track well, as shown here.

    Make a box that will be used to delete part of the model using the Boolean functions.
  8. Select the tank body, and then choose Create → Geometry → Compound Objects → ProBoolean, as shown here.

    Make a box that will be used to delete part of the model using the Boolean functions.
  9. Select Subtraction in the Parameters rollout, and then click the Start Picking button in the Pick Boolean rollout.

    Make a box that will be used to delete part of the model using the Boolean functions.
  10. Click the box object in the viewport. The box will be deleted, taking the shared volume of the tank with it. Click the Start Picking button to turn it off.

    Make a box that will be used to delete part of the model using the Boolean functions.
  11. The object is now a Boolean. Convert it back to an editable poly using the Quad menu; there is no need to maintain the data required to edit the object at the Boolean sub-object level.

    Make a box that will be used to delete part of the model using the Boolean functions.
  12. Select and extrude and move the vertices of the polygons on the underside of the tank to match the front reference image.

    Make a box that will be used to delete part of the model using the Boolean functions.
  13. Exit any sub-object mode.

    The tank is a symmetrical object; however, rather than repeat the modeling process on the opposite side of the object, we will instead apply the Symmetry modifier. The Symmetry modifier maintains a symmetrical balance between both sides of an object.

  14. With the tank body object selected, choose Symmetry from the Modifier List drop-down list.

    Make a box that will be used to delete part of the model using the Boolean functions.
  15. In the Symmetry modifier's Parameters rollout, choose the mirror axis that the object should mirror about. 3ds Max will choose the side of the object that is mirrored about the Mirror axis. If it chooses the wrong side, check the Flip option. Uncheck Slice Along Mirror; this will create a row of edges that aren't needed for this project. Your model should look similar to Figure 5.9. In the figure, the backdrop images have been hidden for clarity.

    Make a box that will be used to delete part of the model using the Boolean functions.

Making the Exhaust Vents

The last feature to add to the tank body is a series of exhaust vents at the rear of the vehicle. A simple box is created and then the Editable Poly tools are used to inset and isolate the polygons that are then hinged from one edge.

  1. Continue from the previous exercise or open the Tank4.max file from the companion CD.

    Making the Exhaust Vents
  2. Zoom in to the back of the tank.

  3. Select Create → Geometry → Standard Primitives → Box, and check the AutoGrid option if necessary.

  4. Create a box centered on the rear faces of the tank with a Length, Width, and Height of approximately 18, 70, and 7. Give the box 3 length segments, 4 width segments, and 1 height segment.

    Making the Exhaust Vents
  5. Convert the box into an editable poly.

    Apply the Symmetry modifier to model the right side of the tank.

    Figure 5.9. Apply the Symmetry modifier to model the right side of the tank.

  6. Enter the Polygon sub-object level to select all twelve polygons on the rear surface of the box.

    Apply the Symmetry modifier to model the right side of the tank.
  7. Click the Settings button next to the Inset button in the Edit Polygons rollout.

    Apply the Symmetry modifier to model the right side of the tank.
  8. Set the Inset Amount to 0.85, choose By Polygon in the Inset Type area, and then click the OK button. By Polygon insets each polygon separately, rather than the entire selection as a single object.

    Apply the Symmetry modifier to model the right side of the tank.
  9. The exhaust vents need to pivot away from the tank as if they are hinged from the top edge. Select the top row of inset polygons and then click the Settings button next to the Hinge From Edge button in the Edit Polygons rollout.

    Apply the Symmetry modifier to model the right side of the tank.
  10. Enter an Angle value of 30. Click the Pick Hinge button in the Hinge Polygons From Edge dialog box and then click any of the top edges of a selected polygon. All the selected polygons are pivoted about the same axis as the edge you select.

    Apply the Symmetry modifier to model the right side of the tank.
  11. Click the Apply button. Apply pivots the selected polygons about the chosen hinge edge and leaves the dialog box open. However, the previous polygons are still selected and have been hinged again.

  12. Select all of the polygons in the next row. The previous polygons revert to their hinged state before the Apply button was clicked while the newly selected polygons hinge at too great an angle. They also hinge from the same edge as the previous hinge operation.

  13. Click the Current Hinge button, and then select an edge at the back of the middle selected row of polygons.

    Apply the Symmetry modifier to model the right side of the tank.
  14. Repeat Steps 11 through 13 on the remaining row of polygons. Click the OK button to close the dialog box and then exit the Polygon sub-object level.

    The exhaust vent is currently a separate object and should be just another part of the tank. The two objects are combined using the Attach feature of the Editable Poly tools. Attach adds the components of one object to another, leaving a single object with the combined features of both. Each object becomes an Element sub-object of the newly formed entity. Exit the sub-object selection level by clicking at the top of the Modifier Stack or using the 6 shortcut key.

  15. Select the tank body object. In the Modifier Stack, click on the Editable Poly entry. Changes made to the object below the Symmetry modifier are then passed up to the modifier, maintaining the symmetrical balance of the model.

  16. In the Edit Geometry rollout, click the Attach button.

    Apply the Symmetry modifier to model the right side of the tank.

    Note

    If more than one object must be attached, or if the objects to attach are difficult to select in the viewports, click the Settings button next to the Attach button. This opens the Attach List dialog box where the objects to attach are selected by name.

  17. Click on the exhaust vent. The vent will become part of the tank body object.

    Apply the Symmetry modifier to model the right side of the tank.
  18. Click the Attach button again to turn it off. Click Symmetry in the Modifier Stack to leave the Editable Poly level.

Modeling the Turret

The turret must be able to rotate independently of the body, so it needs to be modeled as a separate object. We will start the modeling with a two-dimensional spline, convert it into an editable poly, and then use the Editable Poly tools to form the turret.

  1. Modeling the Turret
  2. In the Command panel, select Create → Shapes → Splines → NGon and then drag in the Top viewport to create the shape.

  3. Set the Radius value to 35 and the number of Sides to 5.

  4. Rotate the ngon so that the point faces forward and the flat edge is parallel to the rear of the tank.

    Modeling the Turret
  5. Move the shape up to the top of the tank body object and rename it to Tank Turret.

  6. Convert the shape into an editable poly and then access the Polygon sub-object level.

    Modeling the Turret
  7. In the Edit Polygons rollout, click the Settings button next to the Bevel button. Bevel is similar to Extrude, but it has the additional capability to scale the selected polygon.

  8. Set the Height to 2 and the Outline Amount to 21 to create the initial extrusion and bevel, and then click the Apply button.

    Modeling the Turret
  9. A second application of the same Bevel settings is applied to the new, currently selected polygon. Set the Height to 18 and the Outline Amount to −10 to create the next level of the turret's height. Click the OK button to apply the bevel and close the dialog box.

    Modeling the Turret
  10. The rear of the turret needs to be extended and raised so that it does not impact the rear of the tank body when it rotates.

  11. Select the polygon at the rear of the turret. Using the Move Transform gizmo, move the polygon toward the rear of the tank and raise it slightly using the background images as references. The edges of the adjacent polygons extend to maintain contact with the poly being moved.

    Modeling the Turret

    Note

    The current sub-object level, or the top level, of an editable poly can quickly be accessed from the tools 1 quadrant of the Quad menu or by using the number keys along the top row of the keyboard as shortcut keys (not the keys in the numeric keypad). The shortcuts are 1 = Vertex, 2 = Edge, 3 = Border, 4 = Polygon, 5 = Element, and 6 = Top Level.

  12. Exit the Polygon sub-object level and use the Cut tool to add a horizontal edge dividing the rear polygon. Right-click to discontinue creating edges and then click the Cut button to turn it off.

    Modeling the Turret
  13. Switch to the Vertex sub-object level. In the Front viewport, use a selection region to select each group of vertices at the rear of the turret and move them into place.

    Modeling the Turret
  14. Switch to the Left viewport and then select the vertex at the leading point of the turret.

  15. In the Edit Vertices rollout, click the Chamfer button.

    Modeling the Turret
  16. Click and drag in the Left viewport to chamfer the selected vertex and create an additional polygon.

    Modeling the Turret
  17. Use the Move tool to relocate the new vertices appropriately.

    Modeling the Turret
  18. Exit the Vertex sub-object level.

Creating the Access Hatch

The tank's crew needs to enter the tank from an access hatch on the top surface. This is also where the vehicle commander will sit to examine the battlefield. To create this feature, the ShapeMerge compound object is used to project the edges of a two-dimensional shape onto a three-dimensional surface, creating new edges and polygons on the 3D surface.

  1. In the Top viewport, drag out a donut shape. Set the Radius 1 value to 10 and the radius 2 value to 15.

    Creating the Access Hatch
  2. Move the donut in the Z-axis above the turret, so that the shape's edges will be projected onto the top of the turret.

  3. Select the tank turret object, and then select Create → Geometry → Compound Objects → ShapeMerge.

    Creating the Access Hatch
  4. In the Pick Operand rollout, click the Pick Shape button and select the donut in the viewport.

    Creating the Access Hatch
  5. New edges appear on the top surface of the turret in the shape of the donut. Click the Pick Shape button to turn it off and then convert the turret back into an editable poly.

  6. Select the donut shape and then delete it.

  7. Select the outer ring of polygons and extrude them 1.5 units. Select the inner circle of polygons and extrude them 0.75 units. Exit the sub-object level when you are done. Save your work.

    Creating the Access Hatch

The main form of the low-poly tank model is now complete. The body has a sloped top and exhaust vent, and the turret has the crew's access hatch. In the next exercise, the Loft compound object is used to model the tank's barrel.

Lofting the Barrel

You can make a simple three-dimensional object by extruding a single two-dimensional shape perpendicular to the shape's orientation using the Extrude modifier. You can quickly complete building boxes, tubes, and even simple 3D text can quickly using the Extrude modifier. In contrast, the Loft compound object also builds 3D models by extruding one 2D spline along a second 2D spline. The first spline, called the shape object, becomes the cross section of the new 3D as it follows the second, path object. Tunnels, roller coaster tracks, fancy 3D text, and any object that needs to maintain a shape along a path are excellent opportunities to use the Loft compound object.

The Loft compound object has many features and only a few restrictions. The shape object can be complex, consisting of several noncontiguous splines and even nested splines. A new shape object can be selected at any point along the path, and the cross section automatically transitions from one shape to the next. Any 2D shape can be used as the shape object, but only shapes consisting of a single spline can be used as the path object.

Creating the Barrel Shapes and Path

To begin this exercise, several shapes are made to represent the different cross sections found along the length of the barrel.

  1. Creating the Barrel Shapes and Path
  2. Hide all of the objects in the scene.

  3. In the Top viewport, create three circles, each with a radius of 2.75. Create three more circles, one with a radius of 3.75, one with 4.0, and one with 4.5.

  4. From smallest to largest, rename the last three circles created to Barrel, Barrel Aim, and Barrel Evacuator.

  5. Align each of the smaller circles with one of the larger circles using the Align command. The X, Y, and Z Position check boxes should be checked, as well as the Center option for both the current and target objects.

    Creating the Barrel Shapes and Path
  6. Select one of the larger circles, right-click and convert it to an editable spline from the Quad menu.

    Creating the Barrel Shapes and Path
  7. In the Geometry rollout, click the Attach button and select the corresponding inner circle. The inner circle will be made a spline component of a two-spline, noncontiguous shape. Click the Attach button to turn it off.

  8. Repeat Steps 6 and 7 for the remaining two pairs of circles.

  9. Create an ellipse object overlapping the outer circle of the barrel aim object and then attach this ellipse to the barrel aim object. Turn off the Attach tool when you are done.

    Creating the Barrel Shapes and Path
  10. Access the editable spline's Spline sub-object level, and then select the outer circle.

    Creating the Barrel Shapes and Path
  11. Similar to the Boolean operation used earlier in this chapter, spline Booleans can attach, subtract, or display the area of overlapping splines. With meshes, two separate objects are combined to form a single compound object. When using shapes, two separate spline sub-objects of the same shape are combined.

  12. In the Geometry rollout, make sure the Union button is selected before clicking the Boolean button.

    Creating the Barrel Shapes and Path
    Combine the two splines using the Spline Boolean tools.

    Figure 5.10. Combine the two splines using the Spline Boolean tools.

  13. Click the ellipse-shaped spline as shown in the left image in Figure 5.10. The two splines are combined as a single spline as shown in the right image in Figure 5.10.

  14. Exit the Spline sub-object level.

  15. Unhide the box that shows the side view of the tank.

  16. Click the Line tool in the Create → Shapes panel and turn on AutoGrid mode at the top of the Object Type rollout.

  17. Click just inside the turret to place one end of the line.

  18. Click again at the opposite side of the barrel and right-click to terminate the Line tool.

    Combine the two splines using the Spline Boolean tools.

Lofting the Barrel

The shape or the path objects can be selected when the Loft tool is initiated. When the shape is selected, an instance of the path is moved to the shape; when the path is selected, an instance of the shape is moved to the path. The path is already located properly, so this object is used as the base for the barrel loft operation.

  1. With the line already selected, select Create → Geometry → Compound Objects → Loft.

    Lofting the Barrel
  2. In the Creation Method rollout, click the Get Shape button.

    Lofting the Barrel
  3. Place the cursor over the Barrel object—it changes when it is over a valid shape object—and then click.

    Lofting the Barrel

    The shape is lofted along the path.

    Lofting the Barrel
  4. The Loft object is too dense for our needs; the barrel is not going to be bent or twisted, so the number of segments is higher than necessary. Expand the Skin Parameters rollout. Decrease the Shape Steps value to 2 and the Path Steps value to 0. Shape Steps defines the number of subdivisions between each vertex of the shape object, and Path Steps defines the number of subdivisions between each vertex of the path.

    Turn on See-Through mode for the barrel. Look closely to the right end of the path in the Front viewport. You should see a yellow cross at the end of the line. The cross indicates the location along the path at which the shape object is placed. The Path field in the Path Parameters rollout sets the percentage or distance along the line where the cross is located. Any shape object placed at the current location of the cross extends to the end of the path unless another shape is placed farther along the path. Only one shape can be placed at any one location along the path.

    Lofting the Barrel
  5. Increase the Path value, in the Path Parameters rollout, until the yellow cross is even with the first, wide portion of the barrel.

    Lofting the Barrel
  6. Click the Get Shape button and then click the Barrel Evacuator shape. The new shape is applied to the path at the current location of the yellow cross, but the cross section transitions from the start of the barrel rather than the immediate transition shown in the reference image.

    Lofting the Barrel
  7. Change the Path value to 0.01 units lower than its current value. The Get Shape button should still be active; if it is not, click it and then click the Barrel shape again. There is a 0.01 transition distance between the cross section shapes, but this will not be noticeable.

    Note

    The Get Shape button stays active while the Path value is changed. You do not need to turn it on and off while changing the cross sections of a loft.

  8. Increase the Path value to the end of the wider section of the barrel, as shown in the following image, and then click on the Barrel Evacuator object.

    Lofting the Barrel
  9. Increase the Path value a small amount, and click the Barrel shape again. The evacuator cross section ends after only a short span, and the barrel's standard diameter begins again.

  10. Increase the Path value until the yellow cross is near the end of the barrel, where the aiming point is located. Click the Barrel shape.

  11. Increase the Path value a small amount, and then click the barrel aim shape. The Aim Point section of the barrel will appear, but it will be rotated improperly and there the barrel will be twisted as shown in Figure 5.11. These will be fixed shortly.

    The Barrel Aim cross section is rotated improperly.

    Figure 5.11. The Barrel Aim cross section is rotated improperly.

  12. Increase the Path value until is approximately 98 percent along the path, and then click the barrel aim object again.

  13. Increase the Path value a little more, and then click the Barrel shape again. The barrel will extend to the end of the path. Click the Get Shape button to turn it off.

    The Barrel Aim cross section is rotated improperly.

Fixing the Rotation of the Shapes

Each spline has one vertex designated as the first vertex, which defines the direction of the spline. Open splines can have the first vertex at either end point, but not in the middle. Closed splines can have the first vertex at any vertex. Shapes that consist of several spline sub-objects have a first vertex for each spline.

Each cross section of the barrel cleanly transitions to the next, except for the transitions that include the barrel aim shape. To make the transitions, the designated first vertex is matched on each spline used as a shape object in the Loft. This is done so that when the circles are used exclusively, the first vertices will match well because all of the circles will have four vertices and each of their first vertices will be in the same relative location. When the Boolean operations were executed on the Barrel Aim object, the first vertex was relocated so that it no longer aligns with the other shapes.

The Shape and the Path components maintain a relationship with the Loft compound objects. This ensures that any changes made to either are reflected in the Loft. In this section, you will refine the spline shapes so that their vertices match up better.

  1. Select the Barrel Aim shape, and then access the Vertex sub-object level. The first vertices are shown in yellow, and all others are shown in white.

    Note

    If you do not see the vertices, choose Customize → Preferences → Viewports and uncheck Show Vertices as Dots

  2. Select the vertex at the top of the ellipse—it turns red to indicate that it is selected—and then click the Make First button in the Geometry rollout. Deselect any vertices, and the top vertex will turn yellow, indicating that it is the new first vertex.

    Fixing the Rotation of the Shapes
  3. Exit the Vertex sub-object level, and then select the Barrel object and access its Vertex sub-object level.

    In addition to designating the top vertex as the first vertex, you will also add additional vertices to match the number found in the barrel aim object. Although this step isn't absolutely necessary when lofting, it adds to the result in this case.

  4. Select the top vertex of the outer ring and make it the first vertex.

  5. In the Geometry rollout, click the Refine button and click in two places—once on each side of the first vertex to correspond to the extra vertices created when the ellipse was added to the Barrel Aim outer circle. Turn off the Refine button and exit the Vertex sub-object mode.

    Fixing the Rotation of the Shapes
  6. Select the barrel evacuator object and make the top vertex of its outer ring the first vertex, similar to Steps 1 and 2.

  7. Select the barrel loft object and rotate it 90 degrees counterclockwise, so the aim point is at the top of the barrel.

  8. Rename the Loft01 object to Barrel Loft.

Lathing the Wheels

In the previous chapter, you used the Lathe modifier to create knobs for a chest of drawers. Here, you will use the Lathe modifier to create the wheels for the tank.

Lathing the Wheels
  1. Continue with the previous exercise or open the Tank7.max file from the companion CD. Unhide all hidden objects.

  2. In the Front viewport, create a box primitive with a Length and Width of 22 and a Height of 17. Increase the Length and Height Segments to 2. In the Left viewport, move the box over the track area of the background image. This is a temporary stand-in object that is the approximate size of the tank's lower wheels.

  3. Click the Line tool in the Create panel, and turn on the AutoGrid option. Draw a line and then modify the vertices until the shape is similar to the line shown in Figure 5.12. The shape should be open on the bottom.

  4. Delete the reference box.

  5. Select the spline and apply the Lathe modifier.

  6. Choose X in the Direction section and Min in the Align section. These parameters cause the line to be revolved around its X- axis and place the pivot point near the bottom of the shape.

  7. If necessary, check the Flip Normal option to expose the opposite side of the object's faces.

    Draw the line to be lathed to create the wheel.

    Figure 5.12. Draw the line to be lathed to create the wheel.

  8. Expand the Lathe modifier in the Modifier Stack and choose the Axis sub-object level.

    Draw the line to be lathed to create the wheel.
  9. In the Left viewport, drag the Y-axis handle of the Move Transform gizmo downward to reposition the Lathe axis and expand the radius of the wheel. Be sure not to leave a noticeable hole at the center of the wheel.

    Draw the line to be lathed to create the wheel.
  10. Exit the Axis sub-object level and rename the object to Wheel Lower.

  11. Move the wheel to the front of the track. Make seven instanced clones of the wheel and place them over the existing wheels in the background image.

    Draw the line to be lathed to create the wheel.

    Note

    The rear drive sprocket has a different design than the other wheels. Feel free to lathe a different shape to create that object.

  12. Select all of the wheels and click the Mirror tool (

    Draw the line to be lathed to create the wheel.
  13. In the Mirror dialog box, choose Instance in the Clone Selection area. Decrease the Offset amount until the instanced wheels reach the tracks on the opposite side of the tank. Click the OK button to close the dialog box.

    Draw the line to be lathed to create the wheel.

Using Snapshot to Create the Tracks

The tracks are a series of identical tread objects that are linked together to form a continuous belt. To quickly make all of the track treads, a single tread is made and then it is animated following the path that defines the path for all of the treads. The Snapshot tool is then used to create instanced clones of the tread at a user-specified increment of time. You don't need to know the proper time increment; the value can be "walked-in" by undoing and reapplying the Snapshot tool until the clones are made properly.

Creating the Tread and Path

In this section you will create a single tank tread, using splines and the editable poly's Extrude function. The tread is then copied many times to form a continuous belt of treads.

  1. Continue with the previous exercise or open the Tank8.max file from the companion CD.

    Creating the Tread and Path
  2. Hide all of the tank objects in the scene. Leave the background panels in place.

  3. Zoom into one of the tracks in the Left viewport.

  4. Use the Rectangle tool to make a rectangle that roughly follows the perimeter of one of the treads. Use the Line tool to draw a spline that follows the perimeter of the tread shoe. Make sure that the second spline is closed. You may need to move the Tank Front Reference image box back, behind the construction plane, to see your new objects.

    Creating the Tread and Path
  5. Convert one of the objects into an editable poly and then attach the other object to it.

  6. Rename this object Tread.

  7. Select both polygons and bevel them with a Height of 0.7 and an Outline Amount of −0.4. Click OK to apply the bevel and close the dialog box.

    Creating the Tread and Path
  8. Select the inner polygon and bevel it with the same settings as the previous bevel. Exit the Polygon sub-object level.

    Creating the Tread and Path
  9. Mirror the tread to the other side of the track, choosing Copy in the Clone Selection area. Attach the new editable poly to the tread object.

    Creating the Tread and Path
  10. In the Front viewport, draw a line that represents the path that the treads follow. Be sure to close the spline by placing the last vertex point over the first one and clicking the Yes button in the Close Spline dialog box that opens. Edit the path as necessary.

    Creating the Tread and Path
  11. Rename the line to Tread Path.

Animating the Tread

The Tread must be animated following the path that you just drew. To do this, the Path Constraint is applied to the tread and the path is assigned as the object to follow.

  1. Select the Tread object.

  2. Click the Motion tab (

    Animating the Tread
  3. Expand the Assign Controller rollout and select the Position entry in the Controller window.

  4. Click the Assign Controller button (

    Animating the Tread
    Animating the Tread
  5. Select Path Constraint from the list and click the OK button. The dialog box will close, and the Path Constraint parameters will appear in the Motion panel.

  6. In the Path Parameters rollout, click the Add Path button and then select the tread path object in the viewport.

    Animating the Tread
  7. The path name will appear in the Target window. Check the Follow and Allow Upside Down options in the Path Options section. The Follow option causes the animated object to change its orientation to match the angle of the path segment at its current location. The Allow Upside Down option prevents the tread from flipping to maintain an upward orientation when the path returns the treads to the starting point.

    Animating the Tread

    Note

    You can no longer move the Tread object using the Move Transform gizmo. The position of the tread is now constrained to the location of the path.

  8. Move the path to the right until the tread is centered on the treads in the background image.

  9. The tread is now animated so that it follows the path over the available length of animation. Drag the Time Slider, which runs along the bottom of the viewports, to the right until the tread is visible along the top section of the path. As you can see, the tread is oriented improperly; it is rotated vertically instead of horizontally.

    Animating the Tread
  10. Select the tread and rotate it exactly 90 degrees to lay it flat along the path.

    Animating the Tread
  11. Drag the Time Slider back and forth and watch the tread object in the viewports; it maintains a constant orientation match to the path as it follows it from start to finish.

Creating Tread Clones with Snapshot

The Snapshot tool creates clones of selected objects at any designate interval of frames. This section uses Snapshot to create many identical treads.

Creating Tread Clones with Snapshot
  1. The Snapshot tool is located on the Extras toolbar. Right-click on a blank area between any tools on a toolbar, and then click Extras on the context menu that appears.

  2. With Tread selected, click and hold on the Array tool to display the flyout buttons. Release the mouse over the Snapshot tool to open the Snapshot dialog box.

    Creating Tread Clones with Snapshot
  3. In the Snapshot section, choose Range and make sure the From and To values are 0 and 100, respectively. Set Copies to 80, and choose Instance in the Clone Method section. These settings mean that over the course of the 100 frame animation, instance clones of the tread are created every 1.25 frames for a total of 80 clones (100/80=1.25). Click OK.

    Creating Tread Clones with Snapshot
  4. The clones will be created and then the dialog box will close.

    Creating Tread Clones with Snapshot
  5. If the gap between the Tread clones is incorrect, Undo the Snapshot command and then initiate it again. The last settings used in the Snapshot dialog box are retained and just need to be tweaked.

  6. Apply a Cap Holes modifier to any of the Tread clones. Cap Holes creates a surface at the back of the tread objects. Without Cap Holes, the treads would not appear in a rendered scene as they pass under the tank wheels. This is because, with no surface on the under side of the treads, the normals of the visible faces would face the wrong directions and would not be rendered.

    Creating Tread Clones with Snapshot
  7. Hide the tread and tread path objects, as well as the background image boxes; they are no longer needed.

  8. Unhide the tank body, tank turret, barrel loft, and wheel.

  9. Copy the Tread clones, as instances, to the opposite side of the tank.

  10. This completed low-poly tank project, with lights and a camera, can be opened as Tank Complete.max from the companion CD.

Creating Tread Clones with Snapshot

Summary

This chapter explored many of the tools used to create models with lower polygon counts. After setting up the scene with background images, some of the tools within the Editable Poly toolset were used extensively. The Extrude and Bevel tools were used to add or change the topology of polygons, and the Cut tool was used to add edges to surfaces. Booleans for mesh objects and splines were both briefly used to display just a bit of their capabilities, and the Symmetry modifier was used to maintain the model's symmetrical form. The Loft compound object displayed its abilities to extrude one shape along another's and change the cross section entirely at any point. Finally, the Snapshot tool was used to create many instanced copies of a single animated object.

In the next chapter, we will continue exploring the Editable Poly tools while creating a smooth, more organic model.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset