Cloth Simulation 12/05/2015 PPGCC – Linha de Pesquisa SIV

Slides:



Advertisements
Similar presentations
Motivation Hair animation used in movies, games, virtual reality, etc. Problem due to complexity –Human head has over 100,000 strands of hair –Computation.
Advertisements

Manipulator Dynamics Amirkabir University of Technology Computer Engineering & Information Technology Department.
Particle Systems CSE169: Computer Animation Instructor: Steve Rotenberg UCSD, Winter 2005.
1cs533d-winter-2005 Notes  Please read O'Brien and Hodgins, "Graphical modeling and animation of brittle fracture", SIGGRAPH '99 O'Brien, Bargteil and.
1cs533d-term Notes  Braino in this lecture’s notes about last lectures bending energy…
1cs533d-term Notes  Required reading: Baraff & Witkin, “Large steps in cloth animation”, SIGGRAPH’98 Grinspun et al., “Discrete shells”, SCA’03.
1Notes  Textbook: matchmove 6.7.2, B.9. 2 Match Move  For combining CG effects with real footage, need to match synthetic camera to real camera: “matchmove”
1Notes  Text:  Motion Blur A.3  Particle systems 4.5 (and 4.4.1, 6.6.2…)  Implicit Surfaces  Classic particle system papers  W. Reeves, “Particle.
Particle Systems 1 Adapted from: E. Angel and D. Shreiner: Interactive Computer Graphics 6E © Addison-Wesley 2012.
1cs426-winter-2008 Notes  If you’re interested, read Bridson, Hourihan, Nordenstam, “Curl noise for procedural fluid flow”, SIGGRAPH ‘07.
Game Physics Chris Miles. The Goal To learn how to create game objects with realistic physics models To learn how to simulate aspects of reality in order.
1cs426-winter-2008 Notes  Course project: Will be due at the end of the term You can do it in pairs Create an animation that combines an algorithm for.
1cs533d-term Notes  list Even if you’re just auditing!
Cloth Simulation CSE169: Computer Animation Instructor: Steve Rotenberg UCSD, Winter 2005.
Manipulator Dynamics Amirkabir University of Technology Computer Engineering & Information Technology Department.
Haptic Cloth Rendering 6th Dutch-Belgian Haptics Meeting TUDelft, 21 st June 2006 Lode Vanacken Expertise centre for Digital Media (EDM) Hasselt University.
Math for CSLecture 11 Mathematical Methods for Computer Science Lecture 1.
Particle Systems CSE169: Computer Animation Instructor: Steve Rotenberg UCSD, Winter 2004.
Modeling Fluid Phenomena -Vinay Bondhugula (25 th & 27 th April 2006)
Physics Simulation CSE 191A: Seminar on Video Game Programming Lecture 4: Physics Simulation UCSD, Spring, 2003 Instructor: Steve Rotenberg.
1cs426-winter-2008 Notes  Sorry about missed classes  Assignment 2: matchmove and particles  Final project.
Particle Systems Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts Director, Arts Technology Center University.
1cs426-winter-2008 Notes. 2 Velocity fields  Velocity field could be a combination of pre-designed velocity elements E.g. explosions, vortices, …  Or.
Cloth Simulation CSE169: Computer Animation Instructor: Steve Rotenberg UCSD, Winter 2004.
Computer graphics & visualization Rigid Body Simulation.
Multimedia System and Networking UTD Slide- 1 University of Texas at Dallas B. Prabhakaran Particle Systems.
3.7. O THER G AME P HYSICS A PPROACHES Overview of other game engine physics approaches.
Feature-length films: Games: Desktop Animations: Computer Animation.
Physics and Sound Zhimin & Dave. Motivation Physical simulation Games Movies Special effects.
Computer Animation Rick Parent Computer Animation Algorithms and Techniques Physically Based Animation.
Physically Based Animation and Modeling
Cloth Simulation By Chris Szendrovits o based on Jim Adams “Soft Body Mesh” demo.
Lecture VII Rigid Body Dynamics CS274: Computer Animation and Simulation.
Game Physics – Part IV Moving to 3D
A Study of The Applications of Matrices and R^(n) Projections By Corey Messonnier.
CS559: Computer Graphics Lecture 38: Animation Li Zhang Spring 2008 Slides from Brian Curless at U of Washington.
Computer Graphics 2 In the name of God. Outline Introduction Animation The most important senior groups Animation techniques Summary Walking, running,…examples.
Numerical Integration and Rigid Body Dynamics for Potential Field Planners David Johnson.
Large Steps in Cloth Simulation - SIGGRAPH 98 박 강 수박 강 수.
Computer Science Term 1, 2006 Tutorial 3 Assignment 4 – Special Effects.
CSE 3802 / ECE 3431 Numerical Methods in Scientific Computation
Introduction to Procedural Methods, Particles Glenn G. Chappell U. of Alaska Fairbanks CS 481/681 Lecture Notes Monday, March.
Advanced Computer Graphics Rigid Body Simulation Spring 2002 Professor Brogan.
University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell Particle Systems.
University of Texas at Austin CS 378 – Game Technology Don Fussell CS 378: Computer Game Technology Physics for Games Spring 2012.
ChE 452 Lecture 25 Non-linear Collisions 1. Background: Collision Theory Key equation Method Use molecular dynamics to simulate the collisions Integrate.
The Generalized Interpolation Material Point Method.
Spring 2002 Lecture #11 Dr. Jaehoon Yu 1.Center of Mass 2.Motion of a System of Particles 3.Angular Displacement, Velocity, and Acceleration 4.Angular.
Particle Systems. Applications Particle systems are broadly defined for: Explosion Cloth Fluid And more… It is integrated into many animation software,
CS274 Spring 01 Lecture 7 Copyright © Mark Meyer Lecture VII Rigid Body Dynamics CS274: Computer Animation and Simulation.
Rigid Body Dynamics CSE169: Computer Animation
More on Particles Glenn G. Chappell U. of Alaska Fairbanks CS 481/681 Lecture Notes Wednesday, March 24, 2004.
Animation Animation is about bringing things to life Technically: –Generate a sequence of images that, when played one after the other, make things move.
Numerical Integration for physically based animation
Advanced Computer Graphics Rigid Body Simulation
Particle Systems Ed Angel Professor Emeritus of Computer Science
Physically Based Simulations For Games
Hair Modelling, Animation, and Rendering
3.7. Other Game Physics Approaches
Texture Mapping COMP575/COMP770.
Physics-based Sound Synthesis with a Novel Friction Model
© University of Wisconsin, CS559 Spring 2004
Comp259 / Spring 2002 Samir Naik 2/6/02
Advanced Computer Graphics Spring 2008
(c) 2002 University of Wisconsin
Particle Systems Ed Angel
Computer Graphics Lecture 15.
Physically Based Modeling -Overview-
GPAT – Chapter 7 Physics.
Presentation transcript:

Cloth Simulation 12/05/2015 PPGCC – Linha de Pesquisa SIV Disciplina: Animação Computadorizada   Profª. Drª. Soraia Raupp Musse Pós-doc  Dr Leandro Dihl 12/05/2015

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 [2] While a lot of existing researches have been done for physical simulation of cloth, areas concerning with cloth appearances are still largely unexplored. Two main focuses: engineering and cloth modeling and animation

The synthesis of cloth objects - SIGGRAPH 1986 Jerry Weil - AT&T Bell Laboratories, New Jersey Describes a method for modelling cloth material hanging in three dimensions when supported by any number of constraint points. Describes a method for rendering the cloth.

Applicability Textiles are an essential component of most virtual scenes: The appearance of human avatars relies on realistic virtual clothing; other textiles such as carpets and curtains are common indoor elements. Apart from rendering plausible images for movies, virtual prototyping and design are common applications for cloth rendering. Design of seat cushions for cars. In several iterations, different variations of fabrics are produced until a final design decision is found. [1]

Background The three inherent scales of cloth can be represented explicitly: fibers, yarns, and compositions;

Fibers The micro-structure of fibers is described by the geometric and optical properties of the small dielectric fibers that comprise yarns – they are mainly determined by absorption, refractive index (e.g. index of refraction for wool 1.576, silk 1.35, polyester 1.53) and cross sectional shape.

Yarns Filament yarns are produced by grouping or twisting a few hundred, long, continuous fibers (e.g. fibers that are taken from cocoons made by the larvae of the silkworm which can be hundreds of meters long).

Composition Many techniques have been developed to create pieces of cloth from yarns and fibers. Three of the most common ones: Woven cloth and Two types of non-wovens: knitwear and felt.

Approaches Geometric approach – start Physically based simulation derive the cloth motion and deformation from geometrical curves and functions that are parametrized by time. Physically based simulation Particle-based model - Breen et al – 1992 [4]

Physically-based Although specific details vary (underlying representations, numerical solution methods, collision detection and constraint methods, etc.), there is a deep commonality amongst all the approaches: Physically-based cloth simulation is formulated as a time-varying partial differential equation which, after discretization, is numerically solved as an ordinary differential equation x : vector, the geometric state M : diagonal matrix, mass distribution of the cloth E : a scalar function of x, cloth’s internal energy F : a function of x and x’, other forces acting on cloth

Notations Set particles with interconnecting springs

Cloth Simulation with Springs The cloths can be treated 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), the foundation of the cloth system is formed 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 •

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 Then, we use the acceleration to advance the simulation forward by some time step Δt, using the simple Euler integration scheme

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

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 • •

Spring-Damper A simple spring-damper class might look like: class SpringDamper { float SpringConstant,DampingFactor; float RestLength; Particle *P1,*P2; public: void ComputeForce(); };

Spring-Dampers The basic linear spring force in one dimension is: The linear damping force is: We can define a spring-damper by just adding the two:

Bending Forces • • • • • • • • • If we arrange our cloth springs as they are in the picture, there will be nothing preventing the cloth from bending This may be find for simulating softer cloth, but for stiffer materials, we may want some resistance to bending • • • • • • • • •

Bending Forces • • • • • • • • • A simple solution is to add more springs, arranged in various configurations, such as the one in the picture The spring constants and damping factors of this layer might need to be tuned differently… • • • • • • • • •

Fracture & Tearing We can also allow springs to break One way is to define a length (or percentage of rest length) that will cause the spring to break This can also be combined with the plastic deformation, so that fracture occurs at the plastic limit Another option is to base the breaking on the force of the spring (this will include damping effects) It’s real easy to break individual springs, but it may require some real bookkeeping to update the cloth mesh connectivity properly…

Integration There are many methods of numerical integration. Some examples are: Explicit Euler Implicit Euler Midpoint (Leapfrog) Crank-Nicolson Runge-Kutta Adams-Bashforth, Adams-Moulton etc…

Mass Spring Damper Cloth Simulation

Advanced Cloth

Collision Detection & Response Cloth colliding with rigid objects is tricky Cloth colliding with itself is even trickier There have been several published papers on robust cloth collision detection and response methods

Integration Nobody uses forward Euler integration for cloth in the real world Modern systems use adaptive time steps, high order interpolation, and implicit integration schemes

Cloth rendering techniques Two main directions: The first one uses heuristic methods of procedural modeling to create plausible images. The second one is data-driven and directly based on optical measurements.

Rendering For general material rendering applications, much work has focused on statistical surface based models such as Bidirectional Reflectance Distribution Functions (BRDFs) and Bidirectional Texture Functions (BTFs). These offer a simplified representation of a material that is often sufficient for rendering from a certain distance.

Cloth Appearance Models BTF The most simple approach to modeling cloth is probably to use a combination of texture and normal mapping. However, this approach fails to model the anisotropic highlights and effects of multiple scattering and is nowadays only employed for very simple realtime applications.

References [1] Kai Schröder, Shuang Zhao, and Arno Zinke. 2012. Recent advances in physically-based appearance modeling of cloth. In SIGGRAPH Asia 2012 Courses (SA '12). ACM, New York, NY, USA, , Article 12 , 52 pages. DOI=10.1145/2407783.2407795 http://doi.acm.org/10.1145/2407783.2407795 [2] Cloth Simulation - Lecture Notes - Instructor: Steve Rotenberg UCSD, Winter 2004 available: graphics.ucsd.edu/courses/cse169_w04/CSE169_16.ppt [3] Jerry Weil. 1986. The synthesis of cloth objects. In Proceedings of the 13th annual conference on Computer graphics and interactive techniques (SIGGRAPH '86), David C. Evans and Russell J. Athay (Eds.). ACM, New York, NY, USA, 49-54. DOI=10.1145/15922.15891 http://doi.acm.org/10.1145/15922.15891 [4] Breen, D. E., House, D. H., and Getto, P. H. 1992. A physically-based particle model of woven cloth. The Visual Computer 8, 264–277.