12 - Spatial And Skeletal Deformations CSCI-GA.2270-001 - Computer - - PowerPoint PPT Presentation

12 spatial and skeletal deformations
SMART_READER_LITE
LIVE PREVIEW

12 - Spatial And Skeletal Deformations CSCI-GA.2270-001 - Computer - - PowerPoint PPT Presentation

12 - Spatial And Skeletal Deformations CSCI-GA.2270-001 - Computer Graphics - Daniele Panozzo Space Deformations CSCI-GA.2270-001 - Computer Graphics - Daniele Panozzo Space Deformation Displacement function defined on the ambient space


slide-1
SLIDE 1

CSCI-GA.2270-001 - Computer Graphics - Daniele Panozzo

12 - Spatial And Skeletal Deformations

slide-2
SLIDE 2

CSCI-GA.2270-001 - Computer Graphics - Daniele Panozzo

Space Deformations

slide-3
SLIDE 3

CSCI-GA.2270-001 - Computer Graphics - Daniele Panozzo

Space Deformation

  • Displacement function defined on the ambient space
  • Evaluate the function on the points of the shape embedded in

the space

Twist warp Global and local deformation of solids
 [A. Barr, SIGGRAPH 84]

slide-4
SLIDE 4

CSCI-GA.2270-001 - Computer Graphics - Daniele Panozzo

Freeform Deformations

  • Control object
  • User defines displacements di for each element of the control object
  • Displacements are interpolated to the entire space using basis

functions

  • Basis functions should be 


smooth for aesthetic results

slide-5
SLIDE 5

CSCI-GA.2270-001 - Computer Graphics - Daniele Panozzo

Freeform Deformation 


[Sederberg and Parry 86]

  • Control object = lattice
  • Basis functions Bi (x) are 


trivariate tensor-product splines:

http://tom.cs.byu.edu/~tom/papers/ffd.pdf

slide-6
SLIDE 6

CSCI-GA.2270-001 - Computer Graphics - Daniele Panozzo

Freeform Deformation 


[Sederberg and Parry 86]

  • Aliasing artifacts
  • Interpolate deformation constraints?
  • Only in least squares sense

http://tom.cs.byu.edu/~tom/papers/ffd.pdf

slide-7
SLIDE 7

CSCI-GA.2270-001 - Computer Graphics - Daniele Panozzo

Limitations of Lattices as Control Objects

  • Difficult to manipulate
  • The control object is not related to the

shape of the edited object

  • Parts of the shape in close Euclidean

distance always deform similarly, even if geodesically far

http://tom.cs.byu.edu/~tom/papers/ffd.pdf

slide-8
SLIDE 8

CSCI-GA.2270-001 - Computer Graphics - Daniele Panozzo

Wires


[Singh and Fiume 98]

  • Control objects are arbitrary space curves
  • Can place curves along meaningful features of the edited
  • bject
  • Smooth deformations around the curve with decreasing

influence

http://www.dgp.toronto.edu/~karan/pdf/ksinghpaperwire.pdf

slide-9
SLIDE 9

CSCI-GA.2270-001 - Computer Graphics - Daniele Panozzo

Handle Metaphor


[Real-Time Shape Editing using Radial Basis Functions, Botsch and Kobbelt, EUROGRAPHICS 2005]

  • Wish list for the displacement function d(x) :
  • Interpolate prescribed constraints
  • Smooth, intuitive deformation
slide-10
SLIDE 10

CSCI-GA.2270-001 - Computer Graphics - Daniele Panozzo

Radial Basis Functions


[Real-Time Shape Editing using Radial Basis Functions, Botsch and Kobbelt, EUROGRAPHICS 2005]

  • Represent deformation by RBFs
  • Triharmonic basis function ϕ (r) = r 3
  • C2 boundary constraints
  • Highly smooth / fair interpolation
slide-11
SLIDE 11

CSCI-GA.2270-001 - Computer Graphics - Daniele Panozzo

Radial Basis Functions


[Real-Time Shape Editing using Radial Basis Functions, Botsch and Kobbelt, EUROGRAPHICS 2005]

  • Represent deformation by RBFs
  • RBF fitting
  • Interpolate displacement constraints
  • Solve linear system for wj and p
slide-12
SLIDE 12

CSCI-GA.2270-001 - Computer Graphics - Daniele Panozzo

Radial Basis Functions


[Real-Time Shape Editing using Radial Basis Functions, Botsch and Kobbelt, EUROGRAPHICS 2005]

  • Represent deformation by RBFs
  • RBF evaluation
  • Function d transforms points
  • Jacobian-T ∇d-T transforms normals
  • Precompute basis functions
  • Evaluate on the GPU!
slide-13
SLIDE 13

CSCI-GA.2270-001 - Computer Graphics - Daniele Panozzo

Local & Global Deformations


[Real-Time Shape Editing using Radial Basis Functions, Botsch and Kobbelt, EUROGRAPHICS 2005]

slide-14
SLIDE 14

CSCI-GA.2270-001 - Computer Graphics - Daniele Panozzo

Local & Global Deformations


[Real-Time Shape Editing using Radial Basis Functions, Botsch and Kobbelt, EUROGRAPHICS 2005]

1M vertices

slide-15
SLIDE 15

CSCI-GA.2270-001 - Computer Graphics - Daniele Panozzo

Space Deformations


Summary so far

  • Handle arbitrary input
  • Meshes (also non-manifold)
  • Point sets
  • Polygonal soups
  • Complexity mainly depends

  • n the control object, not 


the surface

▪ 3M triangles ▪ 10k components ▪ Not oriented ▪ Not manifold

slide-16
SLIDE 16

CSCI-GA.2270-001 - Computer Graphics - Daniele Panozzo

Space Deformations


Summary so far

  • Handle arbitrary input
  • Meshes (also non-manifold)
  • Point sets
  • Polygonal soups
slide-17
SLIDE 17

CSCI-GA.2270-001 - Computer Graphics - Daniele Panozzo

Space Deformations


Summary so far

  • The deformation is only loosely aware of the shape that is being

edited

  • Small Euclidean distance → similar deformation
  • Local surface detail may be distorted
slide-18
SLIDE 18

CSCI-GA.2270-001 - Computer Graphics - Daniele Panozzo

Cage-based Deformations


[Ju et al. 2005]

  • Cage = crude version of the input shape
  • Polytope (not a lattice)

http://www.cs.wustl.edu/~taoju/research/meanvalue.pdf

slide-19
SLIDE 19

CSCI-GA.2270-001 - Computer Graphics - Daniele Panozzo

Cage-based Deformations


[Ju et al. 2005]

  • Each point x in space is represented w.r.t. the cage elements using

coordinate functions

vx

pi

http://www.cs.wustl.edu/~taoju/research/meanvalue.pdf

slide-20
SLIDE 20

CSCI-GA.2270-001 - Computer Graphics - Daniele Panozzo

Cage-based Deformations


[Ju et al. 2005]

  • Each point x in space is represented w.r.t. to the cage elements

using coordinate functions

x pi

http://www.cs.wustl.edu/~taoju/research/meanvalue.pdf

slide-21
SLIDE 21

CSCI-GA.2270-001 - Computer Graphics - Daniele Panozzo

Cage-based Deformations


[Ju et al. 2005]

pʹi x pi

http://www.cs.wustl.edu/~taoju/research/meanvalue.pdf

slide-22
SLIDE 22

CSCI-GA.2270-001 - Computer Graphics - Daniele Panozzo

Cage-based Deformations


[Ju et al. 2005]

x pi pʹi xʹ

http://www.cs.wustl.edu/~taoju/research/meanvalue.pdf

slide-23
SLIDE 23

CSCI-GA.2270-001 - Computer Graphics - Daniele Panozzo

Cage-based Deformations


[Ju et al. 2005]

x pi pʹi xʹ

http://www.cs.wustl.edu/~taoju/research/meanvalue.pdf

slide-24
SLIDE 24

CSCI-GA.2270-001 - Computer Graphics - Daniele Panozzo

Generalized Barycentric Coordinates

  • Lagrange property:
  • Reproduction:
  • Partition of unity:
slide-25
SLIDE 25

CSCI-GA.2270-001 - Computer Graphics - Daniele Panozzo

Coordinate Functions

  • Mean-value coordinates 


[Floater 2003*, Ju et al. 2005]

  • Generalization of barycentric coordinates
  • Closed-form solution for wi (x)

* Michael Floater, “Mean value coordinates”, CAGD 20(1), 2003

slide-26
SLIDE 26

CSCI-GA.2270-001 - Computer Graphics - Daniele Panozzo

2D Mean Value Coordinates

slide-27
SLIDE 27

CSCI-GA.2270-001 - Computer Graphics - Daniele Panozzo

3D Mean Value Coordinates

Mean Value Coordinates for Closed Triangular Meshes Tao Ju, Scott Schaefer, Joe Warren

slide-28
SLIDE 28

CSCI-GA.2270-001 - Computer Graphics - Daniele Panozzo

Coordinate Functions

  • Mean-value coordinates 


[Floater 2003, Ju et al. 2005]

  • Not necessarily positive on non-

convex domains

slide-29
SLIDE 29

CSCI-GA.2270-001 - Computer Graphics - Daniele Panozzo

Coordinate Functions

  • Harmonic coordinates (Joshi et al. 2007)
  • Harmonic functions hi(x) for each cage vertex pi
  • Solve

subject to: hi linear on the boundary s.t. hi (pj) = δij

Δ h = 0

MVC HC

http://www.cs.jhu.edu/~misha/Fall07/Papers/Joshi07.pdf

slide-30
SLIDE 30

CSCI-GA.2270-001 - Computer Graphics - Daniele Panozzo

Coordinate Functions

  • Harmonic coordinates (Joshi et al. 2007)
  • Harmonic functions hi(x) for each cage vertex pi
  • Solve

subject to: hi linear on the boundary s.t. hi (pj) = δij

  • Volumetric Laplace equation
  • Discretization, no closed-form

Δ h = 0

slide-31
SLIDE 31

CSCI-GA.2270-001 - Computer Graphics - Daniele Panozzo

Coordinate Functions

  • Harmonic coordinates (Joshi et al. 2007)

MVC HC

slide-32
SLIDE 32

CSCI-GA.2270-001 - Computer Graphics - Daniele Panozzo

Coordinate Functions

  • Green coordinates (Lipman et al. 2008)
  • Observation: previous vertex-based basis functions always lead to

affine-invariance!

http://www.wisdom.weizmann.ac.il/~ylipman/GC/gc.htm

slide-33
SLIDE 33

CSCI-GA.2270-001 - Computer Graphics - Daniele Panozzo

Coordinate Functions

  • Green coordinates (Lipman et al. 2008)
  • Correction: Make the coordinates depend on the cage faces as well
slide-34
SLIDE 34

CSCI-GA.2270-001 - Computer Graphics - Daniele Panozzo

Coordinate Functions

  • Green coordinates (Lipman et al. 2008)
  • Closed-form solution
  • Conformal in 2D, quasi-conformal in 3D

MVC GC GC

slide-35
SLIDE 35

CSCI-GA.2270-001 - Computer Graphics - Daniele Panozzo

Cage-based methods: Summary

Pros:

  • Nice control over volume
  • Squish/stretch

Cons:

  • Hard to control details of embedded surface
slide-36
SLIDE 36

CSCI-GA.2270-001 - Computer Graphics - Daniele Panozzo

Linear Blend Skinning (LBS)

Acknowledgement: Alec Jacobson

slide-37
SLIDE 37

CSCI-GA.2270-001 - Computer Graphics - Daniele Panozzo

LBS generalizes to different handle types

skeletons regions points cages

slide-38
SLIDE 38

CSCI-GA.2270-001 - Computer Graphics - Daniele Panozzo

Linear Blend Skinning rigging preferred for its real- time performance

place handles in shape

slide-39
SLIDE 39

CSCI-GA.2270-001 - Computer Graphics - Daniele Panozzo

Linear Blend Skinning rigging preferred for its real- time performance

place handles in shape paint weights

slide-40
SLIDE 40

CSCI-GA.2270-001 - Computer Graphics - Daniele Panozzo

Linear Blend Skinning rigging preferred for its real- time performance

place handles in shape paint weights deform handles

slide-41
SLIDE 41

CSCI-GA.2270-001 - Computer Graphics - Daniele Panozzo

Linear Blend Skinning rigging preferred for its real- time performance

place handles in shape paint weights deform handles

slide-42
SLIDE 42

CSCI-GA.2270-001 - Computer Graphics - Daniele Panozzo

Linear Blend Skinning rigging preferred for its real- time performance

place handles in shape paint weights deform handles

slide-43
SLIDE 43

CSCI-GA.2270-001 - Computer Graphics - Daniele Panozzo

Challenges with LBS

  • Weight functions wj
  • Can be manually painted or

automatically generated

  • Degrees of freedom Tj
  • Exposed to the user (possibly with a

kinematic chain)

  • Richness of achievable 


deformations

  • Want to avoid common pitfalls – candy

wrapper, collapses

slide-44
SLIDE 44

CSCI-GA.2270-001 - Computer Graphics - Daniele Panozzo

Properties of the Weights

Handle vertices

Interpolation of handles Partition of unity is linear along cage faces

slide-45
SLIDE 45

CSCI-GA.2270-001 - Computer Graphics - Daniele Panozzo

Weights Should Be Positive

Unconstrained biharmonic [Botsch and Kobbelt 2004] Bounded Biharmonic Weights [Jacobson et al. 2011]

slide-46
SLIDE 46

CSCI-GA.2270-001 - Computer Graphics - Daniele Panozzo

Weights Should Be Smooth

Bounded Biharmonic Weights Extension of Harmonic Coordinates [Joshi et al. 2005] [Jacobson et al. 2011]

slide-47
SLIDE 47

CSCI-GA.2270-001 - Computer Graphics - Daniele Panozzo

Weights Should Be Smooth

Bounded Biharmonic Weights Extension of Harmonic Coordinates

[Joshi et al. 2005]

slide-48
SLIDE 48

CSCI-GA.2270-001 - Computer Graphics - Daniele Panozzo

Bounded biharmonic weights enforce properties as constraints to minimization

is linear along cage faces

slide-49
SLIDE 49

CSCI-GA.2270-001 - Computer Graphics - Daniele Panozzo

Bounded biharmonic weights enforce properties as constraints to minimization

is linear along cage faces

Constant inequality constraints Partition of unity

slide-50
SLIDE 50

CSCI-GA.2270-001 - Computer Graphics - Daniele Panozzo

Bounded biharmonic weights enforce properties as constraints to minimization

is linear along cage faces

Constant inequality constraints Solve independently and normalize

slide-51
SLIDE 51

CSCI-GA.2270-001 - Computer Graphics - Daniele Panozzo

Some examples of LBS in action

slide-52
SLIDE 52

CSCI-GA.2270-001 - Computer Graphics - Daniele Panozzo

Some examples of LBS in action

slide-53
SLIDE 53

CSCI-GA.2270-001 - Computer Graphics - Daniele Panozzo

Some examples of LBS in action

slide-54
SLIDE 54

CSCI-GA.2270-001 - Computer Graphics - Daniele Panozzo

3D Characters

slide-55
SLIDE 55

CSCI-GA.2270-001 - Computer Graphics - Daniele Panozzo

Mixing different handle types

slide-56
SLIDE 56

CSCI-GA.2270-001 - Computer Graphics - Daniele Panozzo

References

Fundamentals of Computer Graphics, Fourth Edition 4th Edition by Steve Marschner, Peter Shirley Chapter 16 Skinning: Real-time Shape Deformation ACM SIGGRAPH 2014 Course http://skinning.org