55
Modeling Approaches from Dr. Penny Rheigans graphics lecture Manual primitive creation Scanning from physical object • Procedurally From data (visualization) Through image capture (image-based rendering)

Modeling Approaches from Dr. Penny Rheigans graphics lecture

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Modeling Approaches from Dr. Penny Rheigans graphics lecture

Modeling Approaches from Dr. Penny Rheigans graphics lecture

• Manual primitive creation •  Scanning from physical object •  Procedurally •  From data (visualization) •  Through image capture (image-based

rendering)

Page 2: Modeling Approaches from Dr. Penny Rheigans graphics lecture

Scanning

Page 3: Modeling Approaches from Dr. Penny Rheigans graphics lecture

• Digital Michaelangelo Project at Stanford

Page 4: Modeling Approaches from Dr. Penny Rheigans graphics lecture

Procedural Modeling

• Describe visual attributes through some function, usually defined over space – Shape – Density – Color – Texture

Page 5: Modeling Approaches from Dr. Penny Rheigans graphics lecture

Procedural Approaches

•  Implicit Functions • Noise/hypertexture •  Fractals • Grammars • Genetic/biological simulations

Page 6: Modeling Approaches from Dr. Penny Rheigans graphics lecture

Implicit Functions • Model as sum of

implicit functions •  Surface at

threshold

Page 7: Modeling Approaches from Dr. Penny Rheigans graphics lecture
Page 8: Modeling Approaches from Dr. Penny Rheigans graphics lecture

3D Solid Texture

Page 9: Modeling Approaches from Dr. Penny Rheigans graphics lecture

3D Solid Texture

Page 10: Modeling Approaches from Dr. Penny Rheigans graphics lecture

Hypertexture • Add noise or turbulence to functions

Page 11: Modeling Approaches from Dr. Penny Rheigans graphics lecture

Hypertexture

•  Ken Perlin and Eric Hoffert, Hypertexture, SIGGRAPH ‘89.

•  Extend 3D procedural noise textures to include opacity component to create volume models – object density function D(x) – Density modulation function (DMF) fi

Page 12: Modeling Approaches from Dr. Penny Rheigans graphics lecture

Boolean Operations

•  Intersection •  Complement • Difference • Union

Page 13: Modeling Approaches from Dr. Penny Rheigans graphics lecture

Base DMFs

•  Bias • Gain • Noise •  Turbulence • Arithmetic functions

Page 14: Modeling Approaches from Dr. Penny Rheigans graphics lecture

Basic Noise

•  Basic noisy sphere

• Vary – Frequency – Amplitude

Page 15: Modeling Approaches from Dr. Penny Rheigans graphics lecture

Turblence

• Mix different frequencies of noise

Page 16: Modeling Approaches from Dr. Penny Rheigans graphics lecture

Shaped Noise

• Vary only single component

Page 17: Modeling Approaches from Dr. Penny Rheigans graphics lecture

Transparency

•  Refractive Hypertexture

Page 18: Modeling Approaches from Dr. Penny Rheigans graphics lecture

Erosion

•  Boolean intersection of fractal sphere with cube

Page 19: Modeling Approaches from Dr. Penny Rheigans graphics lecture

Fire

• Density func: •  Colormap

Page 20: Modeling Approaches from Dr. Penny Rheigans graphics lecture

Fur

•  Project points to create hairs

• Modulate density •  Control bias and

gain • Add noise in

growth direction

Page 21: Modeling Approaches from Dr. Penny Rheigans graphics lecture
Page 22: Modeling Approaches from Dr. Penny Rheigans graphics lecture

Noisy Things

•  Color •  Specularity •  Opacity/Density •  Normals •  Displacements •  Index of Refraction •  Procedural Texture Parameters

Page 23: Modeling Approaches from Dr. Penny Rheigans graphics lecture
Page 24: Modeling Approaches from Dr. Penny Rheigans graphics lecture
Page 25: Modeling Approaches from Dr. Penny Rheigans graphics lecture
Page 26: Modeling Approaches from Dr. Penny Rheigans graphics lecture
Page 27: Modeling Approaches from Dr. Penny Rheigans graphics lecture
Page 28: Modeling Approaches from Dr. Penny Rheigans graphics lecture
Page 29: Modeling Approaches from Dr. Penny Rheigans graphics lecture
Page 30: Modeling Approaches from Dr. Penny Rheigans graphics lecture

Fractals

•  Complex structure through self-similarity across scales

•  Process: at each generation, replace each primitive with a self-similar sequence

Page 31: Modeling Approaches from Dr. Penny Rheigans graphics lecture

Koch Curves void Koch (float dir, float len, int n) {!float rads = 0.017453293;!if (n > 0) {!

Koch(dir, len/3.0, n-1);!Dir = dir+60;!Koch(dir, len/3.0, n-1); !Dir = dir-120;!Koch(dir, len/3.0, n-1);!Dir = dir+60;!Koch(dir, len/3.0, n-1);!}!

else LineTo(len*cos(rads*dir),len*sin(rads*dir);!}!

Page 32: Modeling Approaches from Dr. Penny Rheigans graphics lecture

Koch Curves

Page 33: Modeling Approaches from Dr. Penny Rheigans graphics lecture

Fractals

Page 34: Modeling Approaches from Dr. Penny Rheigans graphics lecture

Grammar-based Modeling

• Use (mostly) context-free grammars (CFG) to specify structural change over generations

• Often used to simulate a biological growth process – Plants – Seashells

Page 35: Modeling Approaches from Dr. Penny Rheigans graphics lecture

Context-Free Grammar

• A CFG G=(V,T,S,P) where – V is a set of non-terminals – T is a set of terminals – S is the start symbol – P is a set of productions (rules) of the form:

• A→x, where A ∈ V, x ∈ (V ∪ T)*

Page 36: Modeling Approaches from Dr. Penny Rheigans graphics lecture

Applying Grammar Rules

Rules •  B → A[B]AA[B] •  A → AA

•  Branches to left

Strings 1: B 2: A[B]AA[B] 3: AA[A[BAA[B]]AAAA[A[B]AA[B]]

Page 37: Modeling Approaches from Dr. Penny Rheigans graphics lecture

Applying Grammar Rules Rules •  B → A[B]AA(B) •  A → AA

Branch to •  Left [] •  Right ()

Strings 1: B 2: A[B]AA(B) 3: AA[A[BAA(B)]AAAA(A[B]AA(B))

Page 38: Modeling Approaches from Dr. Penny Rheigans graphics lecture

L-system Productions

S → A[+B]C[-D]E + left angle - right angle

Page 39: Modeling Approaches from Dr. Penny Rheigans graphics lecture

• N = 7, a = 25.7° •  S = X •  Rules:

X→ F[+X][-X]FX F → FF

Page 40: Modeling Approaches from Dr. Penny Rheigans graphics lecture

• N = 5, a = 22.5° •  S = X •  Rules:

X→ F-[[X]+X]+F[+FX]-X F → FF

Page 41: Modeling Approaches from Dr. Penny Rheigans graphics lecture

• N = 4, a = 22.5° •  S = F •  Rules:

F→ FF-[F+F+F]+[+F-F-F]

Page 42: Modeling Approaches from Dr. Penny Rheigans graphics lecture

Additions

•  3D structure •  Randomness •  Leaves •  Flowers

Page 43: Modeling Approaches from Dr. Penny Rheigans graphics lecture
Page 44: Modeling Approaches from Dr. Penny Rheigans graphics lecture
Page 45: Modeling Approaches from Dr. Penny Rheigans graphics lecture
Page 46: Modeling Approaches from Dr. Penny Rheigans graphics lecture
Page 47: Modeling Approaches from Dr. Penny Rheigans graphics lecture
Page 48: Modeling Approaches from Dr. Penny Rheigans graphics lecture
Page 49: Modeling Approaches from Dr. Penny Rheigans graphics lecture

Biological Simulations •  Simulate developmental biological process

Page 50: Modeling Approaches from Dr. Penny Rheigans graphics lecture

Reaction Diffusion

Page 51: Modeling Approaches from Dr. Penny Rheigans graphics lecture

Visualization

• Derive model from data through abstraction process

•  Examples – Isosurfaces of volume data – Fluid flow

Page 52: Modeling Approaches from Dr. Penny Rheigans graphics lecture

Marc Levoy

Page 53: Modeling Approaches from Dr. Penny Rheigans graphics lecture

Gordon Kindlemann

Page 54: Modeling Approaches from Dr. Penny Rheigans graphics lecture

Digital Human Project -- NLM

Page 55: Modeling Approaches from Dr. Penny Rheigans graphics lecture

Image-based Rendering

•  View Interpolation •  Plenoptic Rendering •  Lumigraph/ Light

Fields •  Layered Depth Images •  Synthetic/Real Objects •  Points as Primitives