# UCSD CSE 169 - Cloth Simulation (47 pages)

Previewing pages 1, 2, 3, 22, 23, 24, 45, 46, 47 of 47 page document
View Full Document

## Cloth Simulation

Previewing pages 1, 2, 3, 22, 23, 24, 45, 46, 47 of actual document.

View Full Document
View Full Document

## Cloth Simulation

79 views

Lecture Notes

Pages:
47
School:
University of California, San Diego
Course:
Cse 169 - Computer Animation
##### Computer Animation Documents
• 76 pages

• 57 pages

• 72 pages

• 50 pages

• 63 pages

• 71 pages

• 69 pages

• 50 pages

• 57 pages

• 56 pages

• 26 pages

• 83 pages

• 80 pages

• 41 pages

• 47 pages

• 71 pages

Unformatted text preview:

Cloth Simulation CSE169 Computer Animation Instructor Steve Rotenberg UCSD Winter 2005 Cloth Simulation Cloth simulation has been an important topic in computer animation since the early 1980 s It has been extensively researched and has reached a point where it is basically a solved problem Today we will look at a very basic method of cloth simulation It is relatively easy to implement and can achieve good results It will also serve as an introduction to some more advanced cloth simulation topics Cloth Simulation with Springs We will treat the cloth as a system of particles interconnected with spring dampers Each spring damper connects two particles and generates a force based on their positions and velocities Each particle is also influenced by the force of gravity With those three simple forces gravity spring damping we form the foundation of the cloth system Then we can add some fancier forces such as aerodynamics bending resistance and collisions plus additional features such as plastic deformation and tearing Cloth Simulation Particle Spring damper Particle r position v velocity a acceleration m mass p momentum f force r v 1 a f m f f i p mv Euler Integration Once we ve computed all of the forces in the system we can use Newton s Second Law f ma to compute the acceleration 1 an fn m Then we use the acceleration to advance the simulation forward by some time step t using the simple Euler integration scheme v n 1 v n a n t rn 1 rn v n 1 t Physics Simulation General Physics Simulation 1 Compute forces 2 Integrate motion Repeat Cloth Simulation 1 Compute Forces For each particle Apply gravity For each spring damper Compute apply forces For each triangle Compute apply aerodynamic forces 2 Integrate Motion For each particle Apply forward Euler integration Uniform Gravity f gravity mg 0 g 0 0 9 8 0 m 2 s Spring Dampers The basic spring damper connects two particles and has three constants defining its behavior Spring constant ks Damping factor kd Rest length l0 r1 r2

View Full Document

Unlocking...