3d modeling & sketchupcs410/yr2014fa/more_progress/l18_sketchu… · 3d modeling & sketchup...
TRANSCRIPT
3D Modeling & Sketchup
Lecture 118, Tuesday October 30th, 2014
SketchUp / SkechUp Pro
10/30/14 ©Bruce A. Draper & J. Ross Beveridge 2014 2
Available to CS 410 students on Windows Machines in USB 110.
Sketchup History
10/30/14 ©Bruce A. Draper & J. Ross Beveridge 2014 3
Opening Move
10/30/14 ©Bruce A. Draper & J. Ross Beveridge 2014 4
Templates
10/30/14 ©Bruce A. Draper & J. Ross Beveridge 2014 5
One Rectangular Face
! Exact values in the Dimensions Box. ! You will want to learn to enter values here.
10/30/14 ©Bruce A. Draper & J. Ross Beveridge 2014 6
Export to .obj format
10/30/14 ©Bruce A. Draper & J. Ross Beveridge 2014 7
Export to .obj format
! Note, this is why we use .obj files.
10/30/14 ©Bruce A. Draper & J. Ross Beveridge 2014 8
When Exporting Consider
! Do you export edges? (generally no) ! Are you two faced? (depends) ! How about only triangles?
! This is particularly easy with rectangles.
! May be helpful depeding upon your ray tracer design and what you implement.
! We are not yet ready to say much about texture maps
10/30/14 ©Bruce A. Draper & J. Ross Beveridge 2014 9
Add Some Color
10/30/14 ©Bruce A. Draper & J. Ross Beveridge 2014 10
Now, 7 things to learn …
! Canonical Views
! Rotating Views
! Zooming Views
! Extruding a 2D shape to produce 3D shape
! Selecting parts – faces
! Painting faces
! Removing a face
10/30/14 ©Bruce A. Draper & J. Ross Beveridge 2014 11
A Perfect Cube
10/30/14 ©Bruce A. Draper & J. Ross Beveridge 2014 12
Coloring A Face - How
10/30/14 ©Bruce A. Draper & J. Ross Beveridge 2014 13
Delete the Top Face
10/30/14 ©Bruce A. Draper & J. Ross Beveridge 2014 14
Scaling
10/30/14 ©Bruce A. Draper & J. Ross Beveridge 2014 15
Moving an Object
10/30/14 ©Bruce A. Draper & J. Ross Beveridge 2014 16
• Pay close attention
• Direction of move is guessed
• It is indicated in color of axis
• Changing viewpoing will probably change the defaults
Selection Parts and All
10/30/14 ©Bruce A. Draper & J. Ross Beveridge 2014 17
Cloning an Object
! Hold down the option key while dragging
10/30/14 ©Bruce A. Draper & J. Ross Beveridge 2014 18
Cloning Once, Why Not More
10/30/14 ©Bruce A. Draper & J. Ross Beveridge 2014 19
Note the magic
“2x”
Make 5 – Select 5 – Repeat = 25
10/30/14 ©Bruce A. Draper & J. Ross Beveridge 2014 20
Rotation – This is Trickier
10/30/14 ©Bruce A. Draper & J. Ross Beveridge 2014 21
Stonehenge
10/30/14 ©Bruce A. Draper & J. Ross Beveridge 2014 22
Stonehenge 2014
10/30/14 ©Bruce A. Draper & J. Ross Beveridge 2014 23
Learning More
10/30/14 ©Bruce A. Draper & J. Ross Beveridge 2014 24
Modeling Approach #1: Polygonal Meshes (review)
Surface patch = a polygon in 3D ! 3 or more vertices ! Each vertex is an (x, y, z) triple ! Vertices are supplied in order
! Boundary goes from vertex #1 to vertex #2 to … vertex #N, and back to vertex #1
! All vertices must be co-planar ! Polygon must be convex
10/30/14 ©Bruce A. Draper & J. Ross Beveridge 2014 Slide 25
Surfaces: Connected Polygons (review) ! A mesh surface is then just a set of non-
overlapping polygons that share vertices and edges
10/30/14 ©Bruce A. Draper & J. Ross Beveridge 2014 Slide 26
Triangle Strip Quad Mesh
http://groups.csail.mit.edu/graphics/classes/6.837/F98/TALecture/
Surfaces are generally not planar (review)
! Although every polygon in the mesh must be
! Patches form a locally linear approximation to curved surfaces
10/30/14 ©Bruce A. Draper & J. Ross Beveridge 2014 Slide 27
3D Model by Daniel Rypl at the Czech Technical University in Prague.
Approach #2: (CFG) Constructive Solid Geometry
! Modeling language defines shape primitives ! E.g. sphere, cube, pyramid,…
! Shapes can be transformed ! Translation, Rotation, Scale, …
! Shapes manipulated as sets ! Shapes can be added (A union B) together ! Shapes can be intersected (A intersect B) ! Shapes can be subtracted (A minus B)
10/30/14 ©Bruce A. Draper & J. Ross Beveridge 2014 Slide 28
For example
10/30/14 ©Bruce A. Draper & J. Ross Beveridge 2014 Slide 29
http://commons.wikimedia.org/wiki/File:Csg_tree.png
Intersection
Union
Set Difference
Representing CSG
! CSG exploits object oriented representations.
! A “Shape” is a top-level object. ! Each type of shape is a subclass
! Spheres store an (x,y,z) center and radius. ! Cubes store vertices.
! All shapes implement transformation operators.
10/30/14 ©Bruce A. Draper & J. Ross Beveridge 2014 Slide 30
Approach #3: Splines
! Splines combine 3D surface patches
! Each surface is a 3rd-order surface patch ! Made from two
3rd-order curves
10/30/14 ©Bruce A. Draper & J. Ross Beveridge 2014 Slide 31
http://commons.wikimedia.org/wiki/File:NURBS_surface.png
More on curves and surfaces around
Thanksgiving.