advanced modeling - computer graphics research … · 2011-03-09 · 1 advanced modeling eduard...

13
1 Advanced Modeling Eduard Gröller, Thomas Theußl, Peter Rautek Institute of Computer Graphics and Algorithms Vienna University of Technology Motivation Real world phenomena Complex geometry Large deformations Topological changes Fuzzy objects Tedious or impossible to model with meshes Examples Smoke, fire Fluids Fur, hair, grass Eduard Gröller, Thomas Theußl, Peter Rautek 1 [http://physbam.stanford.edu/~fedkiw/] Motivation Eduard Gröller, Thomas Theußl, Peter Rautek 2 [http://physbam.stanford.edu/~fedkiw/] Motivation Eduard Gröller, Thomas Theußl, Peter Rautek 3 [http://physbam.stanford.edu/~fedkiw/] Overview Particle systems Implicit modeling Soft objects Superquadrics Level sets Procedural modeling Sweeps Cellular texure generation Terrain simulation Vegetation simulation Structure-deforming transformations Eduard Gröller, Thomas Theußl, Peter Rautek 4 Particle Systems Modeling of objects changing over time Flowing Billowing Spattering Expanding Modeling of natural phenomena: Rain, snow, clouds Explosions, fireworks, smoke, fire Sprays, waterfalls, lumps of grass Eduard Gröller, Thomas Theußl, Peter Rautek 5 [Matthias Müller]

Upload: dangnga

Post on 26-Jun-2018

225 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Advanced Modeling - Computer Graphics Research … · 2011-03-09 · 1 Advanced Modeling Eduard Gröller, Thomas Theußl, Peter Rautek Institute of Computer Graphics and Algorithms

1

Advanced Modeling

Eduard Gröller, Thomas Theußl, Peter Rautek

Institute of Computer Graphics and Algorithms

Vienna University of Technology

Motivation

Real world phenomena

Complex geometry

Large deformations

Topological changes

Fuzzy objects

Tedious or impossible to model with meshes

Examples

Smoke, fire

Fluids

Fur, hair, grass

Eduard Gröller, Thomas Theußl, Peter Rautek 1

[http://physbam.stanford.edu/~fedkiw/]

Motivation

Eduard Gröller, Thomas Theußl, Peter Rautek 2

[http://physbam.stanford.edu/~fedkiw/]

Motivation

Eduard Gröller, Thomas Theußl, Peter Rautek 3

[http://physbam.stanford.edu/~fedkiw/]

Overview

Particle systems

Implicit modeling

Soft objects

Superquadrics

Level sets

Procedural modeling

Sweeps

Cellular texure generation

Terrain simulation

Vegetation simulation

Structure-deforming transformations

Eduard Gröller, Thomas Theußl, Peter Rautek 4

Particle Systems

Modeling of objects changing over time

Flowing

Billowing

Spattering

Expanding

Modeling of natural phenomena:

Rain, snow, clouds

Explosions, fireworks, smoke, fire

Sprays, waterfalls, lumps of grass

Eduard Gröller, Thomas Theußl, Peter Rautek 5

[Matthias Müller]

Page 2: Advanced Modeling - Computer Graphics Research … · 2011-03-09 · 1 Advanced Modeling Eduard Gröller, Thomas Theußl, Peter Rautek Institute of Computer Graphics and Algorithms

2

Particle Systems - History

1982 Star Trek II: The Wrath of Khan

Eduard Gröller, Thomas Theußl, Peter Rautek 6

“A particle system is a collection of many many minute particles that together represent a fuzzy object. Over a period of time, particles are generated into a system, move and change from within the system, and die from the system.”

William T. ReevesParticle Systems - A Technique for Modeling a Class of Fuzzy Objects

ACM Transactions on Graphics, 1983

Particle Systems

Certain number of particles is rendered

Particle parameters change over time:

Location

Speed

Appearance

Particles die (lifetime) and are deleted

Eduard Gröller, Thomas Theußl, Peter Rautek 7

Particle Systems (2)

Particle shapes may be spheres, boxes, or arbitrary models

Size and shape may vary over time

Motion may be controlled by external forces, e.g. gravity

Eduard Gröller, Thomas Theußl, Peter Rautek 8

Particle Systems (3)

Particles interfere with other particles

Eduard Gröller, Thomas Theußl, Peter Rautek 9

Particle Systems: Bomb

Eduard Gröller, Thomas Theußl, Peter Rautek 10

Particle Systems: Grass Clumps

Eduard Gröller, Thomas Theußl, Peter Rautek 11

lifetime can be encoded by color: from green to yellow

Page 3: Advanced Modeling - Computer Graphics Research … · 2011-03-09 · 1 Advanced Modeling Eduard Gröller, Thomas Theußl, Peter Rautek Institute of Computer Graphics and Algorithms

3

Implicit Modeling

No fixed shape and topology

Modeling of Molecular structures

Water droplets

Melting objects

Muscle shapes

Shape and topology changeIn motion

In proximity to other objects

Eduard Gröller, Thomas Theußl, Peter Rautek 12

Implicit Modeling

No seams

Oriented surface (well defined inside and outside)

Differentiable

Closed

Continuous

Eduard Gröller, Thomas Theußl, Peter Rautek 13

Implicit Modeling

Implicit equation e.g.,

Vs. explicit equation e.g.,

Function

Right side constant (typically a threshold T)

Eduard Gröller, Thomas Theußl, Peter Rautek 14

Tyxyxf )(),( 22

n

2d function intersection with T - plane result (the 2d model)

The surface of an implicit model is defined as the set of points that fulfill the implicit equation

dkxy

Implicit Modeling

Level setslevel curve, iso contour, contour line

level surface, iso surface

level hypersurface

Changing the threshold

2

3

n

Eduard Gröller, Thomas Theußl, Peter Rautek 15

change of topology

Soft Objects: Blobs

Volume stays constant during movement

Molecular bonding: As two molecules move away from each other, the surface shapes

Stretch

Snap and finally

Contract into spheres

Eduard Gröller, Thomas Theußl, Peter Rautek 16

Definition of Blobby Objects

Sum of Gaussian density functions centered at the k control points

where

T is a specified threshold, and ak and bk adjust the blobbiness of control point k

Eduard Gröller, Thomas Theußl, Peter Rautek 17

k

rak Tebzyxf kk 0),,(

2

2222 )()()( kkkk zzyyxxr

),,( kkkk zyxX

Page 4: Advanced Modeling - Computer Graphics Research … · 2011-03-09 · 1 Advanced Modeling Eduard Gröller, Thomas Theußl, Peter Rautek Institute of Computer Graphics and Algorithms

4

Definition of Blobby Objects

Metaball model uses density functions, which drop off to 0 at a finite interval

Soft object model uses same approach with a different density-distribution characteristic

Eduard Gröller, Thomas Theußl, Peter Rautek 18

Superquadrics

Generalization of quadric representation

Additional parameters

Increased flexibility for adjusting object shapes

One additional parameter for curves and two parameters for surfaces

Eduard Gröller, Thomas Theußl, Peter Rautek 19

Superellipse

Exponent of x and y terms of a standard ellipse are allowed to be variable:

Influence of s:

Eduard Gröller, Thomas Theußl, Peter Rautek 20

1

/2/2

s

y

s

x r

y

r

x

Superellipsoid

Exponent of x, y and z terms of a standard ellipsoid are allowed to be variable:

Influence of s1 and s2:

Eduard Gröller, Thomas Theußl, Peter Rautek 21

11

1222 /2

//2/2

s

z

sss

y

s

x r

z

r

y

r

x

Procedural Modeling

High geometric complexity

Complex model does not exist as geometrySet of production rules

Eduard Gröller, Thomas Theußl, Peter Rautek 22

Demo Procedural Modeling

Motivation

One window in highest resolution ~7 million triangles

Modeled with 126 KB (18 KB zipped) of code

Changing parameters yields very different models

Eduard Gröller, Thomas Theußl, Peter Rautek 23

Page 5: Advanced Modeling - Computer Graphics Research … · 2011-03-09 · 1 Advanced Modeling Eduard Gröller, Thomas Theußl, Peter Rautek Institute of Computer Graphics and Algorithms

5

Sweeps

Modeling of objects with symmetries:Translational

Rotational

Represented by 2D shape

Sweep-path

Eduard Gröller, Thomas Theußl, Peter Rautek 24

Translational Sweeps

Control points of spline curve P(u)

Generates the solid, whose surface is described by point function P(u,v)

Eduard Gröller, Thomas Theußl, Peter Rautek 25

p1 p2

p0 p3P(u)

P(u,v)

Rotational Sweeps

Spline curve P(u)

Rotated about given rotation axis

Sampled at given angles yields the surface P(u,v)

Eduard Gröller, Thomas Theußl, Peter Rautek 26

rota

tion

axis

General Sweeps

Spline curve P(u)

Moved along a sweep path (e.g., spline)

Animated sweep path

Eduard Gröller, Thomas Theußl, Peter Rautek 27

[Kinetix 3D Studio MAX]

Sweeps - Pros and Cons

Advantages:Generates shapes that are hard to do otherwise

Disadvantages:Hard to render

Difficult modeling

Eduard Gröller, Thomas Theußl, Peter Rautek 28

Example

Eduard Gröller, Thomas Theußl, Peter Rautek 29

Page 6: Advanced Modeling - Computer Graphics Research … · 2011-03-09 · 1 Advanced Modeling Eduard Gröller, Thomas Theußl, Peter Rautek Institute of Computer Graphics and Algorithms

6

Cellular Texture Generation

A cellular particle system, that changes geometry of surface

cell state

cell programs

extracellular environments

Eduard Gröller, Thomas Theußl, Peter Rautek 30

Cellular Texture Generation

Cell state: position, orientation, shape, chemical concentrations (reaction-diffusion)

Cell programs:

Go to surface, die if too far from surface, align, adhere to other cells, divide until surface is covered, ...

Differential equations

Extra cellular environment: neighbor orientation, concentration, ...

Eduard Gröller, Thomas Theußl, Peter Rautek 31

Eduard Gröller, Thomas Theußl, Peter Rautek 32

Cellular Texture Generation 2

Levels of Detail (LOD): Use fewer polygons for further distances

Cellular Texture Generation 3

Cell: group of polygons with texture and transparency maps

Eduard Gröller, Thomas Theußl, Peter Rautek 33

Cellular Texture Generation - Examples

Handling of unusual topologies

No problem with parameterization

Eduard Gröller, Thomas Theußl, Peter Rautek 34

Cellular Texture Generation - Examples

Reaction-diffusion determine pattern of bumps and thorns

Eduard Gröller, Thomas Theußl, Peter Rautek 35

Page 7: Advanced Modeling - Computer Graphics Research … · 2011-03-09 · 1 Advanced Modeling Eduard Gröller, Thomas Theußl, Peter Rautek Institute of Computer Graphics and Algorithms

7

Cellular Texture Generation - Examples

Cells (fur) oriented like their neighbors

Eduard Gröller, Thomas Theußl, Peter Rautek 36

Cellular Texture Generation - Examples

Cells (fur) similarly oriented

Eduard Gröller, Thomas Theußl, Peter Rautek 37

Modeling and Visualization of Knitwear

Knitwear: simulation of thin 3D structure with instanced volume elements

Eduard Gröller, Thomas Theußl, Peter Rautek 38

basic element(R-loop)

basic element(L-loop)

Visualization of Knitwear

Volume element: 2D cross-section swept + rotated along parametric curve

Eduard Gröller, Thomas Theußl, Peter Rautek 39

x

y

p(t)

gg’

g"

b1b2

p0

p1

p2

p3

p4

p5

p6

C 1

C 2 C 3

C 4

x

y

z

z

x

p(t)

y g

Visualization of Knitwear

Rendering with raycastingSurface tiled with volumetric elements

Curved rays

Eduard Gröller, Thomas Theußl, Peter Rautek 40

xy

z

xm in xmax

viewing ray

top face

bottom face

Fu ,v

i jc

Pentry

cP

exit

Pp

entry

Pp

exit

y

z

x

’Pp

Pp

d

Pc’ u

w

v

Pc

d

Fu ,vi j

Knitwear - Examples

Eduard Gröller, Thomas Theußl, Peter Rautek 41

Page 8: Advanced Modeling - Computer Graphics Research … · 2011-03-09 · 1 Advanced Modeling Eduard Gröller, Thomas Theußl, Peter Rautek Institute of Computer Graphics and Algorithms

8

Knitwear - Examples

Eduard Gröller, Thomas Theußl, Peter Rautek 42

Knitwear - Examples

Eduard Gröller, Thomas Theußl, Peter Rautek 43

Knitwear - Examples

Eduard Gröller, Thomas Theußl, Peter Rautek 44

Terrain Simulation

Fractals

Geographical Data

Simulations

Hybrids

Eduard Gröller, Thomas Theußl, Peter Rautek 45

Terrain Simulation Terrain Simulation

Page 9: Advanced Modeling - Computer Graphics Research … · 2011-03-09 · 1 Advanced Modeling Eduard Gröller, Thomas Theußl, Peter Rautek Institute of Computer Graphics and Algorithms

9

Terrain Simulation Terrain Simulation

Terrain Simulation Realistic modeling and rendering of plant

Eduard Gröller, Thomas Theußl, Peter Rautek 51

Scene Synthesis System

Eduard Gröller, Thomas Theußl, Peter Rautek 52

Terrain

Eduard Gröller, Thomas Theußl, Peter Rautek 53

Height map Hills through noise synthesis

Stream through masking Water concentration (blue=high, yellow=low)

Page 10: Advanced Modeling - Computer Graphics Research … · 2011-03-09 · 1 Advanced Modeling Eduard Gröller, Thomas Theußl, Peter Rautek Institute of Computer Graphics and Algorithms

10

Specification of Plant Populations

Space-occupancyExplicit specification (counting plants, painting)Procedural generation (cellular automata, reaction-diffusion)

Individual basedExplicit specification (survey, interactive specification)Procedural generation (point pattern generation model)

Eduard Gröller, Thomas Theußl, Peter Rautek 54

Self-thinning:Green: not dominated

Red: dominatedYellow: old

Distribution of eight species

Realistic Modeling and Rendering of Plants

Complex models necessary for realistic appearance

Plant distribution by ecosystem simulation and/or manual setting

Reduce geometric complexity by approximate instancing (similar plants, groups of plants or plant organs)

Parametrized models of individual plants

Eduard Gröller, Thomas Theußl, Peter Rautek 55

Plant Ecosystems - Examples

Eduard Gröller, Thomas Theußl, Peter Rautek 56

Plant Ecosystems - Examples

Eduard Gröller, Thomas Theußl, Peter Rautek 57

Plant Ecosystems - Examples

Eduard Gröller, Thomas Theußl, Peter Rautek 58

Plant Ecosystems - Examples

Eduard Gröller, Thomas Theußl, Peter Rautek 59

Page 11: Advanced Modeling - Computer Graphics Research … · 2011-03-09 · 1 Advanced Modeling Eduard Gröller, Thomas Theußl, Peter Rautek Institute of Computer Graphics and Algorithms

11

Plant Ecosystems - Examples

Eduard Gröller, Thomas Theußl, Peter Rautek 60

Plant Ecosystems – Self Thinning

Eduard Gröller, Thomas Theußl, Peter Rautek 61

Plant Ecosystems – Self Thinning

Eduard Gröller, Thomas Theußl, Peter Rautek 62

Plant Ecosystems - Examples

Eduard Gröller, Thomas Theußl, Peter Rautek 63

Plant Ecosystems - Examples

Eduard Gröller, Thomas Theußl, Peter Rautek 64

Structure-Deforming Transformations

Non-linear transformationsTapering: non-linear scaling

Twist: non-linear rotation

Bend: also non-linear rotation

Eduard Gröller, Thomas Theußl, Peter Rautek 65

Page 12: Advanced Modeling - Computer Graphics Research … · 2011-03-09 · 1 Advanced Modeling Eduard Gröller, Thomas Theußl, Peter Rautek Institute of Computer Graphics and Algorithms

12

Tapering

Scale factor is a function:

Eduard Gröller, Thomas Theußl, Peter Rautek 66

x

xf

xf

xf

x

z

y

x

)(00

0)(0

00)(

Twist

Angle of rotation is a function

e.g., for rotation about z-axis

Eduard Gröller, Thomas Theußl, Peter Rautek 67

xxfxf

xfxf

x

100

0)(cos)(sin

0)(sin)(cos

Bend

Also non-linear rotation

Eduard Gröller, Thomas Theußl, Peter Rautek 68

Example 1

Eduard Gröller, Thomas Theußl, Peter Rautek 69

Example 2

Eduard Gröller, Thomas Theußl, Peter Rautek 70

Other Topics not Covered Here

Shape grammars

Procedural architecture

Fractals (see Fraktale VO WS)

Eduard Gröller, Thomas Theußl, Peter Rautek 71

Page 13: Advanced Modeling - Computer Graphics Research … · 2011-03-09 · 1 Advanced Modeling Eduard Gröller, Thomas Theußl, Peter Rautek Institute of Computer Graphics and Algorithms

13

Thank you for your attention

Questions?

Eduard Gröller, Thomas Theußl, Peter Rautek 72

References

Eduard Gröller, Thomas Theußl, Peter Rautek 73