geometric modelling - cs.unc.edu · pdf file4/18/07 1 geometric modelling computer graphics...

28
4/18/07 1 Geometric Modelling Computer Graphics COMP 770 (236) Spring 2007 Instructor: Brandon Lloyd

Upload: ngokhanh

Post on 05-Feb-2018

225 views

Category:

Documents


3 download

TRANSCRIPT

4/18/07 1

Geometric Modelling

Computer GraphicsCOMP 770 (236)Spring 2007

Instructor: Brandon Lloyd

4/18/07 2

■ Modeling methods■ Surface representations■ Procedural modeling

4/18/07 3

Modelling methodology

■ Explicit° Hand modification of the

underlying representation° CSG° Sweeps° Deformations

■ Procedural° L-Systems

DeR

ose9

8

4/18/07 4

Constructive Solid Geometry

■ Combine simple solid objects into complex ones through set theoretic operations

http

://en

.wik

iped

ia.o

rg/w

iki/C

onst

ruct

ive_

solid

_geo

met

ry

Union Difference Intersection

4/18/07 5

Constructive Solid Geometry

http://en.wikipedia.org/wiki/Constructive_solid_geometry

4/18/07 6

Sweeps

http://groups.csail.mit.edu/graphics/classes/6.837/F98/talecture/

■ Formed by sweeping a generating shape along a path° Surfaces of revolution° Extrusions

4/18/07 7

Free-form deformation

■ Surround object in a lattice

■ Freeze lattice coordinates of surface points

■ Manipulate lattice to deform object

4/18/07 8

Free-Form Deformations

Yoon and Kim 2006

4/18/07 9

Representations

■ Boundary representations (B-reps)° represent only the surface of an

object° “shells”° e.g. polygon meshes,

parameteric patches

■ Solid representations° have clear inside and outside° e.g. implicit functions

http://cadd.web.cern.ch/cadd/cad_geant_int/thesis/node23.html

4/18/07 10

Representations

■ Explicit° Polygonal mesh° Point-based° Parametric patches° Subdivision surfaces° Spatial subdivision

■ Others° Distance fields° Medial axis° Metaballs

4/18/07 11

Polygons

■ May or may not have connectivity

■ Fast to draw

4/18/07 12

Points

■ Typical output from a range finder

■ No topology■ Adaptive sampling

4/18/07 13

Parmeteric Patches

■ Compact■ Smooth surface

representation■ Good control■ Special care is

needed to maintain continuity

4/18/07 14

Subdivision surfaces

■ Compact ■ More flexible than patches■ Refine to required

level-of-detail

DeRose98

4/18/07 15

Spatial subdivision

■ Explicit representation of the interior of an object

■ Uses ° visibility ° simplification

UniformUniform

4/18/07 16

Distance fields

■ Store the distance to the surface at each point° Good for collision detection° Can “implicitize” a b-rep

4/18/07 17

Medial axis

■ Compact■ Uses

° Classification° Deformation

http://www.fegs.co.uk/motech.html

4/18/07 18

Metaballs

■ Define potential field around each point

■ Set a threshold for the surface

■ Extract the surface for polygonal rendering° Marching cubes

http://www.inf.ufrgs.br/~nedel/projects/vh.html

http://www.corelmag.com

4/18/07 19

Marching Cubes

■ Extracts an isosurface from a regular grid■ Looks for sign changes between grid

points and creates a surface between them

4/18/07 20

Procedural modelling

■ Advantages° Can be used to generate models that could never be

generated by hand° Compact representations

■ Disadvantages° Sometime hard to get exactly what you want

(can be use to generate a starting point)

4/18/07 21

L-Systems

■ Simple rules used to produce complex structures

From

The

Alg

orith

mic

Bea

uty

of P

lant

s

4/18/07 22

Plant ecosystems

■ Combines simulation with user specified parameters

Maps for controlling theplacement of nettle

Deussen et al. 1998

4/18/07 23

Procedural Terrains

http://www.pandromeda.com

4/18/07 24

Procedural Terrains

4/18/07 25

Procedural Terrains

http://www.basinski-net.de/scapes6/pages/valley.htm

4/18/07 26

Procedural cities

■ User specified parameters:° water° elevation° population density

■ L-systems generate roads

■ Buildings added to city blocks Parish and Müller 2001

4/18/07 27

Procedural cities

Parish and Müller 2001

4/18/07 28

Procedural Buildings

Müller et al 2006