170 likes | 229 Views
Procedural Animation. Keyframe animation. Start values. End values. time t. Interpolation. Values at time t. http://en.wikipedia.org/wiki/Key_frame. Types of Keyframe Animation. curve interpolation path following. forward and inverse kinematics. blend shapes. motion capture.
E N D
Keyframe animation Start values End values time t Interpolation Values at time t http://en.wikipedia.org/wiki/Key_frame
Types of Keyframe Animation curve interpolation path following forward and inverse kinematics blend shapes motion capture
Procedural animation Initial conditions starting values start time Model constraints rules Increment Updated values
Categories of Procedural Animation gravity springs collision detection & response rotational dynamics physically based animation flocking behavior crowd behavior prey-preditor model walking grasping and reaching speech personality behavioral animation
Basic physcially based animation state of the world position velocity forces acceleration new velocity f =Sum(fi) new position
Gravity (earth) a = -9.8 m/s v = v + a*dt p = p + v*dt
Gravitational Fields f = G(m1*m2)/d2
Simple Spring spring let D = (P-Q) L = |D| P (moveable) with mass m f = ks * (L - Lrest)D/L Q (fixed) a = f/m v = v + a*dt p = p + v*dt
Viscosity or Damping Works against velocity Velocity V Damping force f = - kd * V
Simple Spring-Damper spring let D = (P-Q) L = |D| P (moveable) with mass m V is rate of change of Length of spring Q (fixed) f = (ks * (L - Lrest) - kd*V)*(D/L)
Simple Spring-Damper spring P (moveable) with mass MP Q (moveable) with mass MQ fP = - fQ
Simple collision response kinematic response: negate horizontal component of velocity
Friction static friction f = kf*fn dynamic friction velocity ff g
Inclined ramp velocity ff g