Stanford University, Fall 2016
CS 348C: Computer Graphics: Animation and Simulation

Instructor:
Prof. Doug James




Description: Core mathematics and methods for computer animation and motion simulation. Traditional animation techniques. Physics-based simulation methods for modeling shape and motion: particle systems, constraints, rigid bodies, deformable models, collisions and contact, fluids, and fracture. Animating natural phenomena. Methods for animating virtual characters and crowds. Additional topics selected from data-driven animation methods, realism and perception, animation systems, motion control, real-time and interactive methods, and multi-sensory feedback.

Location
Gates B12, TuTh 1:30PM - 2:50PM
Office Hours (Prof)
Wed 4-6pm (Gates 362), or by appointment
TA
Jui-Hsien ("Ray") Wang
Prerequisites
Recommended: CS148 and/or CS205A. Prerequisite: linear algebra. (or permission of instructor)
Textbook
None; lecture notes and research papers assigned as readings will be posted here.
Communication
Piazza: http://piazza.com/stanford/fall2016/cs348c/home
Requirements
Students are expected to attend the lectures, participate in class discussions, and read the supplemental materials.
Assignments
There will be programming assignments, and a final project based on a student-selected topic.
Exams
None.
ExploreCourses
Link

PROGRAMMING PROJECTS (Tentative)
  1. Particle-based fluids
  2. Position-based dynamics
  3. Final project (student's choice)
Related prior course on Physically Based Animation


SCHEDULE

DATE TOPIC SUPPLEMENTAL MATERIALS
TuSep27
Introduction

Slides (PDF)

Readings:

ThSep29
Particle Systems

Material:
TuOct04

Constrained Dynamics
Material:
  • Holonomic constraints, C(p)=0.
  • Example: Bead on a wire
  • Differentiating constraints w.r.t. time.
  • Constraint Jacobian, J
  • Lagrange multipliers, lambda, and constraint forces, J^T lambda
  • Solving for Lagrange multipliers
  • (Implicit constraint (and half-explicit) DAE integration schemes)
  • Post-step projection schemes
    • Position- vs velocity-based corrections
  • Applications: Mechanical linkages, inextensibility constraints, incompressible flow, contact constraints

Written assignment: Particle systems with holonomic constraints

References:
[Advanced] References for Differential-Algebraic Equations (DAEs):
ThOct06
TuOct11
Particle-based Fluids



Material:

Prog. Assignment #1:
Position-Based Fluids


ThOct13
TuOct18
Implicit Integration
& Cloth Simulation

Material:
TuOct18
ThOct20
Taking Derivatives:
From Tensor Calculus, to Symbolic and Automatic Differentiation


Discussed differentiating the following quantities with respect to particle position vectors, p_i:
  • constant, c
  • position, p_j
  • vectors, (p_j-p_k)
  • distances, ||p_j-p_k||
  • distance powers, ||p_j-p_k||^n
  • functions of distance, W(||p_j-p_k||)
  • dot products, (p_1-p_0)^T (p_3-p_2)
  • cross products
  • Example: hair bending energy derivative, E = k*sin^2(theta/2)  [handout] [Mathematica]
Other topics:
ThOct20
Rigid-Body Dynamics

References:
TuOct25
Application of Rigid-Body Motion:
Shape Matching Methods


Discussed:
  • Projecting particle motion to be rigid motion
  • Rigid-body shape matching
  • FastLSM
  • Other methods (adaptive FastLSM; oriented particles)
Material:
  • Matthias Müller, Bruno Heidelberger, Matthias Teschner, Markus Gross, Meshless deformations based on shape matching, ACM Transactions on Graphics, 24(3), August 2005, pp. 471-478. [ACM] [PDF] [AVI]
  • Alec R. Rivers, Doug L. James, FastLSM: Fast Lattice Shape Matching for Robust Real-Time Deformation, ACM Transactions on Graphics, 26(3), July 2007, pp. 82:1-82:6. [ACM] [PDF]
  • Denis Steinemann, Miguel A. Otaduy, Markus Gross, Fast Adaptive Shape Matching Deformations, ACM SIGGRAPH/Eurographics Symposium on Computer Animation, Dublin, July 7-9, 2008. [PDF] [AVI]
  • Matthias Müller and Nuttapong Chentanez. Solid simulation with oriented particles. ACM Trans. Graph. 30, 4, Article 92 (July 2011), 10 pages, 2011. [ACM] [PDF] [MOVIE]
ThOct27
TuOct29
Position-Based Simulation Methods                                                     
and other relaxation-based dynamics
 
References:
  • Jan. Bender, Matthias. Müller, Miles. Macklin, Position-Based Simulation Methods in Computer Graphics, EUROGRAPHICS Tutorial Notes, 2015, Zürich, May 4-8. (Course Notes)(Slides)
  • M. Müller, B. Heidelberger, M. Hennix, J. Ratcliff, Position Based Dynamics, Proceedings of Virtual Reality Interactions and Physical Simulations (VRIPhys), pp 71-80, Madrid, November 6-7 2006, Best Paper Award, PDF, (video), (slides)
    • Miles Macklin, Matthias Müller, Nuttapong Chentanez: XPBD: Position-Based Simulation of Compliant Constrained Dynamics in Proceedings of ACM Motion in Games, San Francisco, October 2016
      [PDF][Slides][Video][Youtube] (An improved PBD approach)
Other Reading:
TuNov01
Prog. Assignment #2:
Position-Based Dynamics


TuNov01 Final Project + Proposal

ThNov03
Fracture Animation

Material:

TuNov08
ThNov10
Rigid-body Contact:
Impulse- and Contraint-based Methods:





Material: 
TuNov15
Fluid Animation

Topics:
  • Navier-Stokes equations; Euler equations for inviscid fluids
  • Advection; semi-Lagrangian methods
  • Splitting schemes
  • Incompressibility constraint & divergence-free flow
  • Helmholtz-Hodge decompositions; pressure projection
  • PIC/FLIP methods [Zhu & Bridson 2005]
Materials:
ThNov17
Guest Speaker

Guest Speaker:

Material:

Power Particles: An incompressible fluid solver based on power diagrams
de Goes, Wallez, Huang, Pavlov, Desbrun
SIGGRAPH / ACM Transactions on Graphics (2015)
preprint video I video II dl.acm

TuNov22
ThNov24
Thanksgiving Break
(No classes)

TuNov29
No class (Adobe-Stanford retreat)

ThDec01
Final-Project Working Class

  • Come to class prepared to discuss & work on your final project
  • Bring questions
TuDec06
Noise & Turbulence Modeling
from [Kim et al. 2008]
Materials:
ThDec08
Animation Sound


Material:
TuDec13
Final Project Due Date
Submit your project online via Canvas.