Title: Computer Animation Algorithms and Techniques
1Computer AnimationAlgorithms and Techniques
Physically Based Animation
2Physics Review force, mass, acceleration velocity
, position
m
v
vave
3Physics Review Gravity
4Physics Review Other forces
5Physics Review Spring-damper
Hookes Law
6Physics Review Momentum
conservation of momentum (mv)
In a closed system, momentum is conserved
After collision has same momentum as before
collision
7Elastic Collisions
No energy lost (e.g. deformations, heat)
8Elastic Collisions Kinetic Energy
As in all collisions momentum is conserved
In elastic collisions, kinetic energy is also
conserved
Solve for velocities
9Inelastic Collisions
Kinetic energy is NOT conserved
10Inelastic Collisions
Kinetic energy lost to deformation and heat
Momentum is conserved
Coefficient of restitution ratio of velocities
before and after collision
11Center of Mass
12Physics Review Linear v. angular terms
Angular Rotation, orientation rotational
(angular) velocity rotational (angular)
acceleration Inertia tensor Torque Angular
momentum
Linear postion velocity acceleration mass Force mo
mentum
13Change in point due to rotation
- Angular velocity
On-axis or off axis rotation Angular velocity is
the same
14Delta-orientation due to rotation
15Change to a point on rotating object
16Physics Review Angular Stuff
17Angular Momentum
18Inertia Tensor
Aka Angular mass
19Inertia Tensor of particles
Discrete version For particle collection
20Standard Inertia Tensors
Symmetric wrt axes
Cuboid
Sphere
21Inertia Tensor transformations
22The Equations
F
r
Object attributes
M, Iobject-1
If using rotation matrix, will need to
orthonormalize updated rotation matrix
23Springs
Flexible objects Cloth Virtual springs Proportiona
l derivative controllers (PDCs)
24Spring-mass-damper system
f
-f
25Spring-mass system
V3
E23
E31
V2
V1
E12
Force
26Virtual edge springs system
27Angular springs
Linear spring between vertices
Dihedral angular spring
28Spring mesh
Each vertex is a point mass
Each edge is a spring-damper
Diagonal springs for rigidity
Angular springs connect every other mass point
Global forces gravity, wind
29Virtual springs soft constraints
30Proportional (Derivative) Controllers
e.g., particle reacts to other forces while
trying to maintain position on curve virtual
spring
31Particle systems
Lots of small particles - local rules of
behavior Create emergent element Particles Do
collide with the environment Do not collide with
other partcles Do not cast shadows on other
particles Might cast shadows on environment Do
not reflect light - usually emit it
32Particle system
Collides with environment but not other particles
Particles midlife with modified color and shading
Particles demise, based on constrained and
randomized life span
Particles birth constrained and time with
initial color and shading (also randomized)
source
33Particle system implementation
- STEPS
- for each particle
- if dead, reallocate and assign new attributes
- animate particle, modify attributes
- render particles
Use constrained randomization to keep control of
the simulation while adding interest to the
visuals