49
Shape Deformation Reporter: Zhang, Lei 5/30/2006

Shape Deformation Reporter: Zhang, Lei 5/30/2006

Embed Size (px)

Citation preview

Page 1: Shape Deformation Reporter: Zhang, Lei 5/30/2006

Shape Deformation

Reporter: Zhang, Lei

5/30/2006

Page 2: Shape Deformation Reporter: Zhang, Lei 5/30/2006

Stuff Vector Field Based Shape Deformatio

n (VFSD) Multigrid Alogrithm for Deformation Edit Deforming Surface Animation Subspace Gradient Domain Mesh Defo

rmationJ. Huang, X. H. Shi, X. G. Liu, K. Zhou, L. Y. Wei, S. H. Teng, H. J. Bao, B. G. Guo and H. Y. Shum.

Page 3: Shape Deformation Reporter: Zhang, Lei 5/30/2006

Vector Field Based Shape Deformations

Wolfram von Funck, Holger Theisel, Hans-Peter Seidel

MPI Informatik

Page 4: Shape Deformation Reporter: Zhang, Lei 5/30/2006

Basic Model

Moving vertex along the deformation orbit – defined by the path lines of a vector field v.

Page 5: Shape Deformation Reporter: Zhang, Lei 5/30/2006

Path Line of Vector Field

X(t0)

X(t)

Given a time-dependent vector field V(X, t), a Path Line in space is X(t):

t0 t

0 0X( ) X( ), , X( ) Xd

t V t t tdt

OR0

0X( ) X (X( ), )t

tt V s s ds

Page 6: Shape Deformation Reporter: Zhang, Lei 5/30/2006

Vector Field Selection

Deformation Request: No self-intersection Volume-preserving Details-preserving Smoothness of shape in deformation

Divergence-free Vector Field: V=(V1, V2, V3)

31 2 VV V0div

x y z

V

Page 7: Shape Deformation Reporter: Zhang, Lei 5/30/2006

Construction of V

Divergence-free

p, q: two scalar field

2D space: ( , )

( , )( , )y

x

p x yx y

p x y

V

3D space: ( , , ) ( , , ) ( , , )x y z p x y z q x y z V

Page 8: Shape Deformation Reporter: Zhang, Lei 5/30/2006

Vector Field for Special Deformation

Constant Vector Field V : translation

( ) , ( )T T

e f -x u x c x w x c

e f V = u w

0, 1 uw = u w

Deformation tX X+V

Page 9: Shape Deformation Reporter: Zhang, Lei 5/30/2006

2( ) , ( )T T

e f -x a x c x a x c

Vector Field for Special Deformation

Linear Vector Field V : rotation

Deformation

, 2( ) 2e f - - a x c x c a a

a

c

xftX X+V

e f V =

Page 10: Shape Deformation Reporter: Zhang, Lei 5/30/2006

Piecewise Field for Deformation

Deformation for a selected region Define piecewise continuous field

Inner region: V

Outer region: zero

Intermediate region: blending

Region specified by an implicit function

And thresholds

( )r cx

i or r

( ) ir rx

( )i or r r x

( )or r x

Page 11: Shape Deformation Reporter: Zhang, Lei 5/30/2006

Piecewise Field for Deformation

Inner region

Intermediate region

Outer region

Page 12: Shape Deformation Reporter: Zhang, Lei 5/30/2006

( , , ) ( , , ) ( , , )x y z p x y z q x y z V

Piecewise Field for Deformation

( )

( ) 1 ( ) 0

0

e

p b e b

x

x x

( )

( ) 1 ( ) 0

0

f

q b f b

x

x x

4

4

0

( ) ii i

i o i

r rb b r w B

r r

x

if

if

if

if

if

if

( ) ir rx

( )i or r r x

( )or r x

( ) ir rx

( )i or r r x

( )or r x

Page 13: Shape Deformation Reporter: Zhang, Lei 5/30/2006

Deformation Tools

Translation: constant vector field

, ( )

1 ( ) 0 1 ( ) 0 , ( )

0, ( )

i

i o

o

r r

b e b b f b r r r

r r

v x

V x x x

x

e f v = ( ) , ( )T T

e f -x u x c x w x c

Page 14: Shape Deformation Reporter: Zhang, Lei 5/30/2006

Deformation Tool

Rotation: linear vector field

, ( )

1 ( ) 0 1 ( ) 0 , ( )

0, ( )

i

i o

o

r r

b e b b f b r r r

r r

v x

V x x x

x

e f v = , 2( ) 2e f - - a x c x c a a

Page 15: Shape Deformation Reporter: Zhang, Lei 5/30/2006

Path Line Computation

0 0X( ) X( ), , X( ) Xd

t V t t tdt

Runge-Kutta Integration 1 1,i it c

1 1 1 1, ,i i i i i i i it t t t V c V c c c

11 1

, 1 i ii i

i i i i

t t t tt

t t t t

V x V V

,i itc

For each vertex v(x, ti), integrating vector field above to v(x’, ti+1)

Page 16: Shape Deformation Reporter: Zhang, Lei 5/30/2006

Remeshing

Edge Split

Page 17: Shape Deformation Reporter: Zhang, Lei 5/30/2006

Examples

Demo

Page 18: Shape Deformation Reporter: Zhang, Lei 5/30/2006

Examples

Page 19: Shape Deformation Reporter: Zhang, Lei 5/30/2006

Performance

Benchmark Test

AMD 2.6GHz

2 GB RAM

GeForce 6800 GT GPU

Page 20: Shape Deformation Reporter: Zhang, Lei 5/30/2006

Conclusion Embeded in Vector Field

FFD Parallel processing Salient Strength

No self-intersection Volume-preserving Details-preserving Smoothness of shape in deformation

Page 21: Shape Deformation Reporter: Zhang, Lei 5/30/2006

A Fast Multigrid Algorithm for Mesh Deformation

Lin Shi, Yizhou Yu, Nathan Bell, Wei-Wen Feng

University of Illinois at Urbana-Champaign

Page 22: Shape Deformation Reporter: Zhang, Lei 5/30/2006

Basic Model

Two-pass pipeline Local Frame Update

Vertex Position Update

Multigrid Computation Method

R. Zayer, C. Rossl, Z. Karni and H. P. Seidel. Harmonic Guidance for Surface Deformation. EG2005.

Y. Lipman, O. Sorkine, D. Levin and D. Cohen-Or. Linear rotation-invariant coordinates for meshes. Siggraph2005.

Page 23: Shape Deformation Reporter: Zhang, Lei 5/30/2006

Discrete Form (SIG’05)

ix

ikx

1ikx

ik

1 2 1i ik k x x

3

31 11 2 1 2

2 21 1 2 2, , 1 1, 1

( ) ,

,

2

i

i i i ik k k k

i i i

k k k k k k

I

g g g

x x x x

3, ,

i i ik kk kg x x

3

1, 1 ,i i i

k kk kg x x

1: det , ,i ii ik kkO sign x x N

First Discrete Form

Page 24: Shape Deformation Reporter: Zhang, Lei 5/30/2006

Discrete Form (SIG’05)

ix

ikx

1ikx

ik

1 2 1i ik k x x

3 311 2

11 2

( ) , ,i ii i ik k

i ik k

I

L L

x N x N

3

,ii i

k kL x N

Second Discrete Form

Page 25: Shape Deformation Reporter: Zhang, Lei 5/30/2006

Local Frame (SIG’05)

Discrete Frame at each vertex

iTM

iN

1ib

2ib

1

ix

1 2, ,i i ib b N forms a right-hand orthonormal basis.

ix

1 1 2 2, ,

j i i i ikk

i i ii i i i ikk k

L

L

N

b b b b N

x x x

x x

jx

1/ 21 1 1,1

i iix gb

Page 26: Shape Deformation Reporter: Zhang, Lei 5/30/2006

First Pass (EG’05)

Harmonic guidance for local frame

2 0 0h Lh Boundary conditions:

1: edited vertex

0: fixed vertex

Scaling

RotationT ( ) ( ) 1 ( )sT h T h I x x x

1

0

Page 27: Shape Deformation Reporter: Zhang, Lei 5/30/2006

Second Pass (SIG’05)

Solving vertex position

iTM

iN

1ib

2ib

1

ix

ix

jx

1 2 31 2j j j

i j ji ji jic c c x x b b N

1 2 31 2i i i

j i ij ij ijc c c x x b b N

1 2 3 1 2 31 2 1 2

1

2

i j ji

j j j i i iji ji ji ji ij ij ijc c c c c c

x x d

d b b N b b N

Page 28: Shape Deformation Reporter: Zhang, Lei 5/30/2006

Second Pass

Solving vertex position

1 2 3 1 2 31 2 1 2

1

2

i j ji

j j j i i iji ji ji ji ij ij ijc c c c c c

x x d

d b b N b b N

( ) ( )

( ) ( )

ji j ji jj N i j N ii

ji jij N i j N i

w w

w w

x dx

( ) ( )

( )ji j i ji jij N i j N i

w w

x x d

“Normal Equation”

1

ix

ix

jx

Page 29: Shape Deformation Reporter: Zhang, Lei 5/30/2006

Some Results

Page 30: Shape Deformation Reporter: Zhang, Lei 5/30/2006

Computation

First Pass

Second Pass

2 0 0h Lh

( ) ( )

( )ji j i ji jij N i j N i

w w

x x d

Multigrid Method

Page 31: Shape Deformation Reporter: Zhang, Lei 5/30/2006

Multigrid Method

=n n nA u b

nu

,= ;

nn n n

n n n

b b A u

A u b

2

2

2 2 2

,

,

= ;

n n

n n

n n n

b R b

A RA P

A u b

( 1)

( 1)

,

,

= .

pn p n

pn p n

pn pn pn

b R b

A RA P

A u bpnu

defect equation

coarsest level

Page 32: Shape Deformation Reporter: Zhang, Lei 5/30/2006

Performance

Page 33: Shape Deformation Reporter: Zhang, Lei 5/30/2006

Performance

Page 34: Shape Deformation Reporter: Zhang, Lei 5/30/2006

Conclusion

Computation Method for large mesh

Page 35: Shape Deformation Reporter: Zhang, Lei 5/30/2006

Editing Arbitrary Deforming Surface Animations

S. Kircher, M. Garland

University of Illinois at Urbana-Champaign

Page 36: Shape Deformation Reporter: Zhang, Lei 5/30/2006

Problem

Deforming Surface

Editing Surface

Page 37: Shape Deformation Reporter: Zhang, Lei 5/30/2006
Page 38: Shape Deformation Reporter: Zhang, Lei 5/30/2006

Pyramid Scheme

Quadric Error Metric

, , ,1T

x y zv v v v =

4 4,TQ Q v v v

0x y z

M. Garland and P. S. Heckbert. Surface simplification using quadric error metrics. SIGGRAPH’97.

Page 39: Shape Deformation Reporter: Zhang, Lei 5/30/2006

Pyramid Scheme

1 0nM M M

Coarse Fine

1: k kr M M

1: k kr M M

2nd-order divided difference 1kM

kM

1kM

Detail vector

Construct by and adding detail vectors for level k.

kM 1kM

Sig’99

Page 40: Shape Deformation Reporter: Zhang, Lei 5/30/2006

Adaptive Transform

Page 41: Shape Deformation Reporter: Zhang, Lei 5/30/2006

is generated from by improving its error with respect to

Adaptive Transform

Multilevel Meshes (Sig’05)

0 1 2, , ,S S S S

0 1 2, , ,H H H H

iH1iH

1iS

Reclustering

, ,v a b

Swap

0H H Swap

Page 42: Shape Deformation Reporter: Zhang, Lei 5/30/2006

Basis Smoothing Blockification Vertex Teleportation

PRE-processing: Time-varying multiresolution transform for a given animation sequence.

Page 43: Shape Deformation Reporter: Zhang, Lei 5/30/2006

Editing Tool

Direct Manipulation

level k

level 0

0H

1H

Page 44: Shape Deformation Reporter: Zhang, Lei 5/30/2006

Editing Tool

Direct Manipulation

Page 45: Shape Deformation Reporter: Zhang, Lei 5/30/2006

Editing Tool

Direct Manipulation

Page 46: Shape Deformation Reporter: Zhang, Lei 5/30/2006

Multiresolution Embossing

Multiresolution set of Edit

Page 47: Shape Deformation Reporter: Zhang, Lei 5/30/2006
Page 48: Shape Deformation Reporter: Zhang, Lei 5/30/2006

Conclusion

Multiresolution Edit

Page 49: Shape Deformation Reporter: Zhang, Lei 5/30/2006

The End