Lesson 7: Making a Mouse
Now that you have used some of the curve and surface
construction tools, you can further develop your modeling techniques by
constructing a computer mouse. This lesson gives you more practice applying
some of the modeling functions you have just learned, and also introduces
you to text and beveling.

Initial Setup
Starting from an empty scene, you can construct the
curves and surfaces needed to build the mouse.
Start a New file and set up views.
- From the File menu, select New to start a new
file. If prompted, click Yes to delete all objects,
shaders, views and actions.
- In the perspective window, use the tumble tool to display a more 3D
view.
Building a Rounded corner
You start by constructing a rounded corner using a
partial circle and the Boundary function.
Draw a quarter circle.
Select Objects
Primitives
Circle-
.
Change Sweep to 90, and Sections to 4.

- Click Go. Press and hold the Alt key to temporarily turn
on Grid snapping and click in the Top window at the origin.
Tip: Using grid snap ensures that you place
CVs at the grid intersection points.

Rotate and scale the quarter circle.
With the circle still active,
select Xform
Rotate
and enter 0 0 -90. This rotates the circle 90 degrees around the
Z-axis.
Select Xform
Scale, and enter 2 to scale the primitive to twice its size.

Copy the quarter circle.
- With the primitive still active, from the Edit menu, select
Duplicate object-
. Set
the Rotation to 90 degrees around the X-axis.

- Click Go.
Copy the new quarter circle.
With the primitive still active, from the Edit menu, select
Duplicate object-
. Click
Reset and set the Rotation to 90 degrees around the
Z-axis.

Click Go. You now have three quarter circles, their ends joined.
Dolly into the Perspective window to see the curves.
Build a boundary surface using these three curves.
Select Surfaces
Boundary surfaces
Boundary-
.
Set Boundary Curves to Three, then turn Create History
off.

- Click Go. You are prompted to: select the first apex boundary
curve; followed by: the second apex boundary curve; and finally:
the curve opposite the apex. The order in which the curves are picked
determines the isoparms of the surface. Pick them in the order shown below.
The resulting surface should appear like the rounded shape.

Delete the construction curves.
Select Pick
Object and click-drag a pick box around the surface and the curves.
The surface is unpicked and the curves picked. From the Delete menu,
select Del active to remove the curves.
The Back Edge
You construct the back edge of the mouse by creating
a mirror copy of the corner, then skinning between them.
Move the boundary surface.
Select Pick
Object and click on the boundary surface.
Select Xform
Move, and type 4 to move the surface 4 units in the X direction.
Dolly into the Perspective view to see the new position.

Mirror copy the surface.
- From the Edit menu, select Duplicate object-
.
Press Reset to clear any existing values. Set Translation
along the X-axis to -8.0, and Scaling along the X-axis to
-1.0.

- Click Go. The -1 scaling factor creates a mirror image
of the geometry along the X-axis.

Skin together the ends of the corner surfaces.
Select Surfaces
Skin-
. Set the Number
of Spans to 4.

Click Go. In response to the system prompt, click on the last
isoparm of the first boundary surface, then click on the last isoparm of
the second boundary surface, as shown in the following image.

Note: If you accidentally skin the wrong
edges together, use Del active from the Delete menu to delete
the new surface, and try building the surface again.
Construction of the side edges
You are now going to duplicate curves from the existing
surfaces to create new curves for skinning.
Duplicate the end isoparms of the right corner.
Select Curve Edit
Create
Duplicate
curve. Click on the end isoparm of the right corner surface as shown
below.

Move the new curve.
Select Xform
Move and enter:
r 0, 5, 0, to move the curve relative to its current position. Dolly
and tumble in the Perspective window to see the curve better.

Copy the duplicated curve.
With the duplicated curve still active, from the Edit menu,
select Duplicate object-
.
Press Reset to clear any previous settings. Set the Translation
for the Y-axis to 8.0 and for the Z-axis to -0.5.

Click Go to copy and translate the curve along the Y- and Z-axis.
Create two skinned surfaces along the edge of the mouse.
Select Surfaces
Skin. Click on the end of the right corner, then the first duplicated
curve to build a skin surface. Click on the two copied curves to create
a second skinned surface.
Click on Surfaces
Skin again to complete the first skin. Click on the two copied curves
to create a second skinned surface.

Mirror-copy these surfaces to the other side.
Select Pick
Object and click on the first skin surface to add it to the active
set.
From the Edit menu, select Duplicate object-
.
Click Reset to clear the previous settings. Set the X-axis Scaling
to -1.

Click Go. This mirrors the two patched surfaces across the X-axis,
to create the opposite side of the mouse.

Center the geometry around the axis.
Select Pick
Nothing, then Pick
Object. Click-drag a pick box around all the geometry.
Choose Xform
Move and enter 0, -6.5, 0 to move the surfaces in relative
mode. Click Yes to remove history. This centers
the geometry in the Top view. You may wish to track and dolly in various
view windows to see the entire model.

Delete the construction curves.
Select Pick
Nothing, then Pick
Component-
. Turn all
options to Off, then click on the button next to Curves to
turn this on.

Click Go.
Click-drag a pick box around the whole model to pick the curves. From
the Delete menu, select Del Active to remove them.
Finishing the top of the mouse
To create the back edge of the mouse, you copy the
front edge using rotation and translation factors. You then create a skinned
surface for the top of the mouse.
Copy the front edge of the mouse.
Select Pick
Object. Click on the three surfaces that represent the front edge
of the mouse.
- From the Edit menu, select Duplicate object-
.
Press Reset to clear the previous settings. Set Translation
for the Y-axis to 13.0, Translation for the Z-axis to
-0.5, and Scale for the Y-axis to -1.

- Click Go to create a copy. The back edge of the mouse is copied
to the front, creating the other edge of the mouse.

Create a skinned surface for the top of the mouse.
Select Surfaces
Skin. In the Top window, click on the top isoparms of the side surfaces,
labeled 1 and 2 in the diagram below, to create the first surface.
Re-select Surfaces
Skin and click on the top isoparms labeled 3 and 4 to create the second
surface.

This completes the top surface of your mouse.

Constructing the bottom edge
The bottom edge of the mouse is created using the
bottom isoparms of the edge surfaces as reference. By duplicating these
isoparms and attaching them into a single curve, you can create a construction
curve for the bottom edge.
Hide the two top surfaces.
With Nothing picked,
select Pick
Object.
Click on the two top surfaces to make them active. From the Object Display
menu, select Invisible to leave only the side and end surfaces visible.
Tumble the Perspective window.
- From the Layouts menu, select Perspective to make the
Perspective window fill the screen. This makes it easier to pick curves.
Tumble the view around so you can clearly see all of the bottom edge curves
of the model as shown below. You need to be able to select these curves
to complete the next step.

Duplicate the ten base curves of the mouse.
Select Curve Edit
Create
Duplicate
curve and click on the base curves as indicated above. The
curves that need to be selected and duplicated are as follows: 4 corner
edge curves, 4 side edge curves (each side being comprised of 2 curves),
1 front edge curve and 1 back edge curve.
Note: You may need to tumble the view
to easily pick the required isoparms.

Tip: If at any time you pick the wrong
isoparm, select Delete
Active and start again.
Turn on the CV control for the curves.
The duplicated curves remain active. Select Display
Control -
. Turn all the
options off then turn CV On. Click Go and close this
window.
Template the side surfaces of the mouse.
Using Pick
Object and your mouse, click-drag a pick box around the entire model.
This picks all the surfaces (and unpicks the duplicated curves).
From the ObjectDisplay menu, select Tgl template to template
all geometry, except for the duplicated curves. Now you can continue working
with the duplicated curves without affecting the other geometry.

Reverse the direction of some curves.
You are about to attach the curves together. First, you must ensure
they are all traveling in either a clockwise or counter clockwise direction.
If any are traveling in the wrong direction, use Object Edit
Reverse
Reverse
direction to correct them. Use the start box and the U direction icon
to assist you.
Attach all the curve pieces.
Select Object Edit
Attach 
Attach -
. Set Type
to Connect.

Click Go.
Starting from the bottom corner, click curve 9, as shown in the following
illustration.
Click curve 8.
Next, click the new curve formed by 9 and 8, and then click 7.
Click the new curve formed by 9, 8 and 7, and then click 6.

Work your way around the curves. Attach the curves together sequentially
so that the end of one curve is attached to the start point of the next.
After all curves have been attached, you should attach the curve to
itself, to close it.
Create the bottom curves
Copy the new curve.
- Select Layouts
All windows
All
(Studio) to return to four window views.
With Nothing picked,
select Pick
Object
and click on the new curve.
- From the Edit menu, select Duplicate object-
.
Press Reset to clear any previous settings. Enter a Translation
of -0.5 along the Z-axis. Click Go.

Pick the CVs belonging to the curve.
With nothing
picked, choose Pick
Point types
CV. In
the Right window, click-drag a pick box around the curve so that all the
CVs on the duplicated curve are selected. You may have to draw 2 or 3 pick
boxes to make sure you don't pick any CVs on the first curve.

Move the CVs down using grid snap.
Select Xform
Move. Press the Alt key (or the appropriate hot key) to temporarily
turn on grid snapping.
In the Right window, use the right mouse button to click-drag downwards
to the grid line that represents the -1 horizontal position on the Z-axis.
The CVs of the curve should snap down to this grid line and flatten out.
Tip: If you use the wrong mouse button,
from the Edit menu, select Undo.
Note: This method of "flattening"
a curve is very powerful. When you move CVs using grid snap, they usually
snap to the same point. But, by combining grid snap and the right mouse
button constraint, you can flatten the curve.
Copy the new flattened curve.
With nothing picked, select
Pick
Object.
Click on the new curve.
Select Xform
Local
set Pivot
and enter a 0, 0, 0 to move the pivot in absolute mode. It is now
at the center, ready for scaling.
From the Edit menu, select Duplicate object-
.
Click on Reset, and then enter a Z-axis Translation of -0.5,
and a Scaling factor of 0.9 in all directions.

Click Go. This new curve will be used to create the beveled
edge surface on the underside of the mouse.
Create the bottom surface of the mouse.
Select Surfaces
Skin. Click on the first two curves to create a skinned surface.
Re-select Surfaces
Skin. Click on the bottom two curves to create a second surface.

Cleaning up the Model
Turn off the CV controls.
Select Display
Control -
, change the
Scope to All, and turn all the options off. Click Go
and close this window.
Reveal the hidden parts of the mouse.
Select Pick
Nothing, then Pick
Template. Click-drag a pick box around any templated geometry.
From the Object Display menu, select Tgl template to
untemplate the geometry.
From the Object Display menu, select Visible to make
the top surface visible.
Save your model.
From the File menu, select Save as.
Enter the name Mouse_01 and click Save Wire.
Adding Detail to the Mouse
With the mouse body constructed, use some of the
modeling methods outlined in this lesson to construct the mouse buttons
and cord connecting the mouse.
This exercise may prove to be a challenge, but in
doing it, you'll apply many of the ideas you have learned so far.

Note : Once you have completed the mouse,
pick all the parts of the mouse. From the Edit menu, select Group
to group the pieces together.
Adding a logo with beveled text
Next, you add a logo to the mouse. It is made of 3D
geometry that has been beveled and placed on the top surface of the mouse.
First, you create two dimensional text, for later beveling and extruding.
Template the existing geometry.
With nothing picked, select
Pick
Object.
Click-drag a pick box around the completed mouse.
- From the Object Display menu, select Tgl template to
template the mouse.
Enter the logo's name in the Text Parameter window.
Select Object
Text... to open the Text Parameters window. Notice that your
login name appears in this window as the default text.
- Click in this window. (It turns black, indicating it is awaiting input.)
Press the Esc key at the top left corner of the keyboard to clear
the existing text. Type ALIAS and press Enter.

- If you move the cursor out of the Text Parameters window with
the mouse, you can see the text ready to be placed, but do not click down
on the screen at this point.
Pick a font and enter letter size and spacing.
Click on Humanist521-Ultra-Bold from the Font Name Selection
list to change the typeface. Move the cursor into a modeling window to
see the text.
Note: The fonts shown in this lesson may
differ from those available in your version of Alias.
If you would like to see additional non-keyboard
standard characters, click on the Show Sample button which opens
the Font Sample window. You can scroll around in the new sample
window with the slider bars. Below each letter and symbol is an ASCII number
that can be typed with a preceding\ (backslash) in the text window to get
a symbol that isn't on the keyboard (for example, /478 produces
the symbol for infinity). Close the Font Sample window.
Enter a Letter Size of 1.2 and Letter Spacing
of 0.1. These values affect how the text will look when it is placed.
Place the text in the top window.
Dolly and track in the Top window to see the whole mouse. Next, click
in the Top window to place the text in the lower right corner of the mouse.

The text is placed as a grouped object made up of
face surfaces.
Close the Text Parameter
window and select Pick
Object to get rid of the text cursor.
Open the SBD window.
Select Windows
SBD and notice the grouping of the object you have just created by
checking with the diagram below. Each letter can be picked as an individual
object in the SBD window, and has its own pivot point.

Close the SBD window.
Beveling
Next, you bevel and extrude the two dimensional text
into three dimensional geometry and place it onto the mouse model. The
Bevel option works with curves or with face objects.
Reverse the direction of the letters.
In order to bevel downwards, you must reverse the
direction of the curves making up the text.
Select Object Edit
Reverse
Reverse direction.
Click on each of the curves that make up the letters in turn, to reverse
the direction of the curves.
Select Pick
Object and click on the text.
Bevel the text.
Select Surfaces
Fillet surfaces
Bevel -
to open the option
box. Leave the Width, Depth and Bevel Extrusion Depth
set to the defaults as these will be set interactively with the mouse later.
Set Sides to Single to put the bevel at the front of the
text only, and make sure both Front and Back Caps are turned
on. Turn Keep Originals off and leave Corner Type at Arc.

Click Go. A preview of the beveled text is displayed in the
modeling windows. Notice that the menu prompt indicates the width, depth
and bevel extrusion depth as the default values.
Alter the bevel interactively.
Click-drag in the Front window with the left mouse button. Drag across
the screen and notice the change in the bevel. Move to the Right window
and click-drag the right mouse button to see how you affect the bevel extrusion
depth.
Note: The text is beveled upside down.
Enter exact values for the bevel.
Enter 0.1 0.1 0.2 with the keyboard. The bevel is updated. Click
on the Go button to accept the bevel.

Placing the text
Now you move the text to the top surface of the mouse.
You first group the beveled text under a single node, then use the Xform
functions to place the text.
Group the text.
- With the text pieces still active, from the Edit menu, select
Group. Note that when you make a new group, the pivot point is at the
origin.
Select Xform
Local
Set pivot
and move the pivot to the middle of the letter I in the Top window.

Move the text into place.
Select Xform
Move. In the Right window, click-drag with the right mouse button
to move the text up to the top surface of the mouse.

Save your model
From the File menu, select Save as. In the File lister,
type the name mouse_complete and click on Save wire.
QuickRender the scene.
With Nothing picked,
select Pick
Template.
Click-drag a pick box around the whole model.
From the Object Display menu, select Tgl template to
untemplate the mouse geometry.
Click on the Perspective window. From the Render menu, select
Quick Render -
.
Change the Quality to High and the Shading Frequency
to 5. Click Go.

Conclusion
You have now completed the mouse tutorial. In this
lesson you have learned how to:
- · create surfaces from primitive curves
- · use grid snap to "flatten" a curve
- · create text
- · bevel faces. This exercise represents
one method of creating object logos. The other method is through rendering,
where labels are mapped onto objects without generation any 3D geometry.
Label mapping is covered in an upcoming lesson. After you have applied
shaders to models, you may want to return to this lesson and render the
mouse properly.
Note: Some text with very tight curves may
produce undesirable results in Bevel, especially if you use a font
from outside of Alias. Use with caution!
aliasdocs@aw.sgi.com
Copyright © 1997, Alias|Wavefront, a Silicon Graphics Company.
All rights reserved.