Lab 1 - Basic Model Building: EEE3454 Augmented and Virtual Reality Engineering
Lab 1 - Basic Model Building: EEE3454 Augmented and Virtual Reality Engineering
Lab 1 - Basic Model Building: EEE3454 Augmented and Virtual Reality Engineering
Tools: Windows PC
Topics covered:
Configurations of Autodesk 3ds Max 2018
Creation of basic 3D objects
Using 2D line drawing tools
Conversion of 2D drawings into 3D objects
Application of Boolean operations on 3D objects
Component list:
1
Hong Kong Institute of Vocational Education (Shatin)
Computer and Electronic Engineering (Lab 1B) AVR Engineering (EEE3454)
Introduction
In this laboratory exercise, you are going to learn the way to configure the Autodesk
3ds Max and some basic useful techniques in building models. After going through
this lab, you should be able to use 3ds Max to:
1. Create 3D models of some basic objects including box, sphere, cylinder etc.
2. Draw 2D lines and convert it into 3D object using extrusion tool
3. Apply Boolean operations on 3D objects
3ds Max is a 3D computer graphics program which provides a wide range of useful
tools allowing user to create 3D animations, models, games and images.
Before starting
Open the Autodesk 3ds Max on your windows. There are many tools in the user
interface (UI). Here, we give a very brief introduction to toolbars.
2
Hong Kong Institute of Vocational Education (Shatin)
Computer and Electronic Engineering (Lab 1B) AVR Engineering (EEE3454)
7. Viewport Layouts
8. Command panel
9. Viewports
10. MAXScript Mini Listener
11. Status line and Prompt line
12. Isolate Selection toggle and Selection Lock toggle
13. Coordinate display
14. Animation and Time controls
15. Viewport Navigation controls
To reset all the menu and user interface, click the “Reset to Default State”.
3
Hong Kong Institute of Vocational Education (Shatin)
Computer and Electronic Engineering (Lab 1B) AVR Engineering (EEE3454)
This reset method is sometimes useful to help you restore the default menus when you
accidentally close a tool bar or close the time slider for animation.
The top viewport gives you the view of the top of the object. Similarly, the front
viewport and the left viewport give you the front view and the left view of the object.
The perspective viewport gives you the perspective view of the object. In another
word, we have four cameras to view the 3D object. (i)The camera at the top of the
object gives you top view, (ii) the camera at the front of the object gives you front
view, (iii) the camera at the left of the object gives you the left view and (iv) the
camera with arbitrary viewing angle give you the perspective view.
View Navigation
To navigate the view of the camera means we control the camera to see different part
4
Hong Kong Institute of Vocational Education (Shatin)
Computer and Electronic Engineering (Lab 1B) AVR Engineering (EEE3454)
of the 3D object. In the bottom right of the UI, there is a viewport navigation control.
Zoom in/out – Right click one of the four viewports. Alternatively, you can
simply right click the viewport and then rotate the wheel of the mouse to zoom in
or zoom out of the view.
All zoom – When you rotate the wheel of the mouse, all the four view ports zoom
in or zoom out.
Pan view – Left click and drag the view port to move the 3D object left, right, top
or left. Alternatively, you can simply click and hold the wheel of the mouse and
drag the mouse to pan the view.
Orbit – Left click, hold the mouse and drag the mouse. This can allow you to
orbit the 3D object. Alternatively, you can do the same thing by holding the “Alt”
key on the keyboard, pressing and holding down the wheel and drag the mouse
to change the angle of the camera.
Try yourself to navigate the viewports. It is important to use this technique well in
using 3ds max.
Setting unit
It is important to set up the unit to be used in the 3ds max. In the menu bar, click the
“Customize > Units Setup…”.
In the popup menu, select the “Metric” radio button. Select “Millimeters” in the
5
Hong Kong Institute of Vocational Education (Shatin)
Computer and Electronic Engineering (Lab 1B) AVR Engineering (EEE3454)
dropdown list as shown below. In this project, we are going to use millimeter to be the
unit.
Click the “System Unit Setup” button. A popup window appears. Set the system unit
scale to 1 unit = 1.0 Millimeters as shown below.
6
Hong Kong Institute of Vocational Education (Shatin)
Computer and Electronic Engineering (Lab 1B) AVR Engineering (EEE3454)
A dialog pops up. Click the “Home Grid” tab and set the Grid Spacing to 10.0mm
(default setting). This sets each grid to be 10mm in length. Click the “All viewports”
radio button.
7
Hong Kong Institute of Vocational Education (Shatin)
Computer and Electronic Engineering (Lab 1B) AVR Engineering (EEE3454)
Create a box
To create a box, we go to the command panel on the right of the UI. Then, click the
“Create panel” and the “Geometry” . In the “Standard Primitive” rollout, click
the “Box” button.
In the Top viewport, try using the mouse to click and drag to create a 3D box. You can
change the width, height and length of the created box and change the number of
segments along the length, height and width of the box by typing in the parameter
rollout.
8
Hong Kong Institute of Vocational Education (Shatin)
Computer and Electronic Engineering (Lab 1B) AVR Engineering (EEE3454)
Note that after you creating a box, on the left of the UI, there is one item added in the
scene explorer. You can click the eye to hide/unhide the created box.
The box you created is named “Box001”. You can rename the created box by right
clicking the “Box001”. Select rename in the pop-up menu.
You can delete the object using similar method by selecting the “Delete”.
There is a video in the help manual showing the way to drag a 3D box.
9
Hong Kong Institute of Vocational Education (Shatin)
Computer and Electronic Engineering (Lab 1B) AVR Engineering (EEE3454)
To open the help manual, on the menu bar, click the “Help > Tutorials…”.
This will open the box menu and the menu have a video showing you the way to
create a box.
Similarly, you can create other objects using the other buttons in the “Object type”
rollout.
10
Hong Kong Institute of Vocational Education (Shatin)
Computer and Electronic Engineering (Lab 1B) AVR Engineering (EEE3454)
After creating all these 3D objects, go to the perspective viewport. Use the Zoom
in/out button to control the zooming of the camera. Alternatively, you can simply
right click the perspective viewport and then rotate the wheel of the mouse to
zoom in or zoom out of the view.
Now, we capture an image of the perspective viewport and write a PNG file. Click the
perspective viewport to select this viewport. In the main toolbar, press the button
11
Hong Kong Institute of Vocational Education (Shatin)
Computer and Electronic Engineering (Lab 1B) AVR Engineering (EEE3454)
A window pops up. Press the “Render” button on the top right. The image will be
updated. Press the “Save” button on the left.
A “Save Image” window pops up. We save the image on the Desktop. On the left,
press “Desktop”. In the “File name”, we type Q1 to be the name of the image file. In
the “Save as type”, we select “PNG Image File (*.png)” as the file type. Finally, press
“Save” button.
A “PNG Configuration” window pops up. Select the radio button “RGB 24 bit (16.7
12
Hong Kong Institute of Vocational Education (Shatin)
Computer and Electronic Engineering (Lab 1B) AVR Engineering (EEE3454)
Now, you know how to capture the viewport and save it as a PNG file.
You can find the created image on the Desktop. Put this image in your answer
document “Lab2_ChanTaiMan.docx”.
Step 1: We work on the top viewport. Right click the top viewport so that we work on
the top viewport.
Step 2: On the Command Panel, click the “Create > Shape > Line”. Then, in the
Creation method rollout, select the radio button “Corner” in the initial type and
“Corner” in the drag type.
13
Hong Kong Institute of Vocational Education (Shatin)
Computer and Electronic Engineering (Lab 1B) AVR Engineering (EEE3454)
Step 3: Draw on the top viewport the following shape using your mouse. (Note: when
you hold the “shift” key on the keyboard, you can easily draw horizontal line or
vertical line.) When we draw the point 5, try to make point 5 close to point 1. A
window will pop up asking you do you want to close spline. Click “Yes”. You just
create a line with a closed loop.
14
Hong Kong Institute of Vocational Education (Shatin)
Computer and Electronic Engineering (Lab 1B) AVR Engineering (EEE3454)
To move the circle, select the circle. Click the button “Select and move” button .
Click and hold the “Y axis” and drag the mouse to move the circle vertically.
Similarly, click and hold the “X axis” and drag the mouse to move the circle
horizontally.
Move the circle until the circle overlap the previously created line as follows.
Step 6: Convert both the line and the circle to “editable spline”.
In the “Scene explorer” on the left of the UI, there are two lines corresponding to the
15
Hong Kong Institute of Vocational Education (Shatin)
Computer and Electronic Engineering (Lab 1B) AVR Engineering (EEE3454)
line and the circle that we drew. Hold the “Ctrl” button and click the two lines to
select both the line and the circle. (The line is named “Line001” and the circle is
named ‘Circle001”.)
Right click on the Line001 or the Circle001 on the top viewport. Select “Convert To:
> Convert to Editable Spline”.
Step 7: We make the line and the circle become one object using “Attach”.
Select only the Line001 on the top viewport. On the Command Panel, click “Modify”.
In the Geometry rollout, click the button “Attach”.
16
Hong Kong Institute of Vocational Education (Shatin)
Computer and Electronic Engineering (Lab 1B) AVR Engineering (EEE3454)
17
Hong Kong Institute of Vocational Education (Shatin)
Computer and Electronic Engineering (Lab 1B) AVR Engineering (EEE3454)
Now, you can see on the “Scene explorer” on the left of the UI, the Line001 and the
Circle001 is combined into one Line001.
Scroll down the Command Panel to search for the button “Trim”. Click the “Trim”
button.
Go back to the top viewport, click the unwanted lines to delete it.
18
Hong Kong Institute of Vocational Education (Shatin)
Computer and Electronic Engineering (Lab 1B) AVR Engineering (EEE3454)
Similarly, delete other unwanted lines until we get the following line.
Select point pair set A in the top viewport by dragging the mouse.
Now, the two vertexes of point pair set A are selected. Go to the Command Panel,
search for the button “Weld” and click it. This action weld the two selected vertexes
19
Hong Kong Institute of Vocational Education (Shatin)
Computer and Electronic Engineering (Lab 1B) AVR Engineering (EEE3454)
into one vertex. In fact, this action means that the two selected vertexes which are
close to each other with distance less than 0.1mm is weld together to form one vertex.
You can change the threshold value 0.1 as well.
Note that, in the Command Panel, there is one more layer called “Extrude” above the
“Line”. That means the “Line” is modified by the tool “Extrude”. We can change the
amount of extrusion by setting values in the “Amount”. We can also set the number of
segments to extrude.
20
Hong Kong Institute of Vocational Education (Shatin)
Computer and Electronic Engineering (Lab 1B) AVR Engineering (EEE3454)
2. Capture the perspective viewport and save it as an image. Put the saved image in
the answer document.
21
Hong Kong Institute of Vocational Education (Shatin)
Computer and Electronic Engineering (Lab 1B) AVR Engineering (EEE3454)
In the top viewport, use a mouse to draw a 3D cylinder. (You can control the radius
and the height of cylinder to appropriate values. The height of the cylinder should be
larger than the thickness of the key 5mm.)
in the main toolbar. In the front viewport, click and hold the “Y axis” and drag
the mouse to move the cylinder vertically. Similarly, click and hold the “X axis” and
drag the mouse to move the cylinder horizontally. We move the cylinder to overlap
the key. Make sure the cylinder punch through the key in the front view.
Select “Subtraction” as follows. Since we need the key to subtract from the cylinder,
we select “Subtraction”. Then, click the button “Start Picking”.
22
Hong Kong Institute of Vocational Education (Shatin)
Computer and Electronic Engineering (Lab 1B) AVR Engineering (EEE3454)
In the top viewport, click the cylinder. This action will subtract the cylinder from the
key. Note that in the Scene Explorer on the left, the cylinder disappears and only the
key remains (named “Line001”).
3. Capture the perspective viewport of the key with the hole and save it as an image.
Put the saved image in the answer document.
23
Hong Kong Institute of Vocational Education (Shatin)
Computer and Electronic Engineering (Lab 1B) AVR Engineering (EEE3454)
Classwork
In above example, as we learned earlier we can use all function tools to draw a new
3D key with your style. Create a new project and save it as the filename
“NewKey.max”.
After answering all the questions and classwork, show the answer document to the
lecturer for assessment.
<End>
24