3d modeling & sketchupcs410/yr2014fa/more_progress/l18_sketchu… · 3d modeling & sketchup...

16
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.

Upload: others

Post on 25-May-2020

22 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 3D Modeling & Sketchupcs410/yr2014fa/more_progress/L18_SketchU… · 3D Modeling & Sketchup Lecture 118, Tuesday October 30th, 2014 SketchUp / SkechUp Pro 10/30/14 ©Bruce A. Draper

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.

Page 2: 3D Modeling & Sketchupcs410/yr2014fa/more_progress/L18_SketchU… · 3D Modeling & Sketchup Lecture 118, Tuesday October 30th, 2014 SketchUp / SkechUp Pro 10/30/14 ©Bruce A. Draper

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

Page 3: 3D Modeling & Sketchupcs410/yr2014fa/more_progress/L18_SketchU… · 3D Modeling & Sketchup Lecture 118, Tuesday October 30th, 2014 SketchUp / SkechUp Pro 10/30/14 ©Bruce A. Draper

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

Page 4: 3D Modeling & Sketchupcs410/yr2014fa/more_progress/L18_SketchU… · 3D Modeling & Sketchup Lecture 118, Tuesday October 30th, 2014 SketchUp / SkechUp Pro 10/30/14 ©Bruce A. Draper

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

Page 5: 3D Modeling & Sketchupcs410/yr2014fa/more_progress/L18_SketchU… · 3D Modeling & Sketchup Lecture 118, Tuesday October 30th, 2014 SketchUp / SkechUp Pro 10/30/14 ©Bruce A. Draper

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

Page 6: 3D Modeling & Sketchupcs410/yr2014fa/more_progress/L18_SketchU… · 3D Modeling & Sketchup Lecture 118, Tuesday October 30th, 2014 SketchUp / SkechUp Pro 10/30/14 ©Bruce A. Draper

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

Page 7: 3D Modeling & Sketchupcs410/yr2014fa/more_progress/L18_SketchU… · 3D Modeling & Sketchup Lecture 118, Tuesday October 30th, 2014 SketchUp / SkechUp Pro 10/30/14 ©Bruce A. Draper

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

Page 8: 3D Modeling & Sketchupcs410/yr2014fa/more_progress/L18_SketchU… · 3D Modeling & Sketchup Lecture 118, Tuesday October 30th, 2014 SketchUp / SkechUp Pro 10/30/14 ©Bruce A. Draper

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

Page 9: 3D Modeling & Sketchupcs410/yr2014fa/more_progress/L18_SketchU… · 3D Modeling & Sketchup Lecture 118, Tuesday October 30th, 2014 SketchUp / SkechUp Pro 10/30/14 ©Bruce A. Draper

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

Page 10: 3D Modeling & Sketchupcs410/yr2014fa/more_progress/L18_SketchU… · 3D Modeling & Sketchup Lecture 118, Tuesday October 30th, 2014 SketchUp / SkechUp Pro 10/30/14 ©Bruce A. Draper

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

Page 11: 3D Modeling & Sketchupcs410/yr2014fa/more_progress/L18_SketchU… · 3D Modeling & Sketchup Lecture 118, Tuesday October 30th, 2014 SketchUp / SkechUp Pro 10/30/14 ©Bruce A. Draper

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

Page 12: 3D Modeling & Sketchupcs410/yr2014fa/more_progress/L18_SketchU… · 3D Modeling & Sketchup Lecture 118, Tuesday October 30th, 2014 SketchUp / SkechUp Pro 10/30/14 ©Bruce A. Draper

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

Page 13: 3D Modeling & Sketchupcs410/yr2014fa/more_progress/L18_SketchU… · 3D Modeling & Sketchup Lecture 118, Tuesday October 30th, 2014 SketchUp / SkechUp Pro 10/30/14 ©Bruce A. Draper

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/

Page 14: 3D Modeling & Sketchupcs410/yr2014fa/more_progress/L18_SketchU… · 3D Modeling & Sketchup Lecture 118, Tuesday October 30th, 2014 SketchUp / SkechUp Pro 10/30/14 ©Bruce A. Draper

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

Page 15: 3D Modeling & Sketchupcs410/yr2014fa/more_progress/L18_SketchU… · 3D Modeling & Sketchup Lecture 118, Tuesday October 30th, 2014 SketchUp / SkechUp Pro 10/30/14 ©Bruce A. Draper

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

Page 16: 3D Modeling & Sketchupcs410/yr2014fa/more_progress/L18_SketchU… · 3D Modeling & Sketchup Lecture 118, Tuesday October 30th, 2014 SketchUp / SkechUp Pro 10/30/14 ©Bruce A. Draper

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.