Cloth Simulation. COMP 768 Presentation Zhen Wei

Similar documents
Cloth Simulation. Tanja Munz. Master of Science Computer Animation and Visual Effects. CGI Techniques Report

Mass-Spring Systems. Last Time?

Simulation in Computer Graphics. Particles. Matthias Teschner. Computer Science Department University of Freiburg

2.7 Cloth Animation. Jacobs University Visualization and Computer Graphics Lab : Advanced Graphics - Chapter 2 123

Modeling Cloth Using Mass Spring Systems

The jello cube. Undeformed cube. Deformed cube

Simulation in Computer Graphics. Deformable Objects. Matthias Teschner. Computer Science Department University of Freiburg

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

The Jello Cube Assignment 1, CSCI 520. Jernej Barbic, USC

Cloth Animation with Collision Detection

Physically Based Simulation

Physically Based Simulation

Cloth The Animation of Natural Phenomena Adrien Treuille

Navier-Stokes & Flow Simulation

A simple example. Assume we want to find the change in the rotation angles to get the end effector to G. Effect of changing s

A Fast and Stable Approach for Restoration of Warped Document Images

CS-184: Computer Graphics. Today

T6: Position-Based Simulation Methods in Computer Graphics. Jan Bender Miles Macklin Matthias Müller

Example 24 Spring-back

Cloth Simulation. Elaine Kieran (d ) Gavin Harrison (d ) Luke Openshaw (d ) MSc Computer Animation NCCA Bournemouth University

Large Steps in Cloth Simulation

Physically based modelling Computer Graphics I February 27, 2003

PHYSICALLY BASED ANIMATION

Cloth Hair. and. soft bodies

Intuitive Control of Dynamic Simulation Using Improved Implicit Constraint Enforcement

Directional Constraint Enforcement for Fast Cloth Simulation

Navier-Stokes & Flow Simulation

CS 231. Deformation simulation (and faces)

A Method of Drawing Cloth Patterns With Fabric Behavior

Introduction to Computer Graphics. Animation (2) May 26, 2016 Kenshi Takayama

Comparing Efficiency of Integration Methods for Cloth Simulation

Particle Systems. Lecture 8 Taku Komura

DYNAMIC SIMULATION OF INEXTENSIBLE CLOTH

CS-184: Computer Graphics. Today. Lecture #20: Spring and Mass systems. 20-SpringMassSystems.key - April 23, Spring and Mass systems

CS-184: Computer Graphics. Today. Lecture #22: Spring and Mass systems. Spring and Mass systems. Distance springs Spring dampers Edge springs

Chapter 3: Computer Animation Reminder: Descriptive animation. Procedural animation : Examples. Towards methods that generate motion?

Simulation in Computer Graphics. Introduction. Matthias Teschner. Computer Science Department University of Freiburg

3D Physics Engine for Elastic and Deformable Bodies. Liliya Kharevych and Rafi (Mohammad) Khan Advisor: David Mount

Speeding Up Cloth Simulation

Numerical Integration

QP-Collide: A New Approach to Collision Treatment

Structure and Synthesis of Robot Motion

Real Time Cloth Simulation

Homework 1: Implicit Surfaces, Collision Detection, & Volumetric Data Structures. Loop Subdivision. Loop Subdivision. Questions/Comments?

7 Modelling and Animating Human Figures. Chapter 7. Modelling and Animating Human Figures. Department of Computer Science and Engineering 7-1

CS-184: Computer Graphics Lecture #21: Fluid Simulation II

Adarsh Krishnamurthy (cs184-bb) Bela Stepanova (cs184-bs)

Math 225 Scientific Computing II Outline of Lectures

BOURNEMOUTH UNIVERSITY INTERACTIVE TOOL FOR CLOTH SIMULATION VOLHA KOLCHYNA. MSc Computer Animation and Visual Effects

CGT 581 G Fluids. Overview. Some terms. Some terms

Interaction of Fluid Simulation Based on PhysX Physics Engine. Huibai Wang, Jianfei Wan, Fengquan Zhang

Module 1: Introduction to Finite Element Analysis. Lecture 4: Steps in Finite Element Analysis

An Analysis of Interactive Deformable Solid Object Modeling

CS 231. Deformation simulation (and faces)

NVIDIA. Interacting with Particle Simulation in Maya using CUDA & Maximus. Wil Braithwaite NVIDIA Applied Engineering Digital Film

THE development of stable, robust and fast methods that

Chapter 3 Numerical Methods

Isometrically Deforming Cloth with Simultaneous Collision Handling

Project 1: Particle System The Animation of Natural Phenomena Due 10/18

ROSE-HULMAN INSTITUTE OF TECHNOLOGY

Simulation of curly hair

Simulation: Particle Systems

Animating Developable Surfaces using Nonconforming Elements

Geometric Transformations

CS205b/CME306. Lecture 9

Overview of Traditional Surface Tracking Methods

Animation of Fluids. Animating Fluid is Hard

Auto Injector Syringe. A Fluent Dynamic Mesh 1DOF Tutorial

2D/3D Geometric Transformations and Scene Graphs

ROBOTICS 01PEEQW. Basilio Bona DAUIN Politecnico di Torino

Decomposing Cloth. Eddy Boxerman and Uri Ascher 1

Cloth Simulation on the GPU. Cyril Zeller NVIDIA Corporation

Physics Tutorial 2: Numerical Integration Methods

A New Self-Collision Detection Method for Cloth Simulation

Simulation of Overhead Crane Wire Ropes Utilizing LS-DYNA

Cloth and Hair Collisions

Finite Element Method. Chapter 7. Practical considerations in FEM modeling

Applications. Human and animal motion Robotics control Hair Plants Molecular motion

Transforms. COMP 575/770 Spring 2013

Fluid Simulation. [Thürey 10] [Pfaff 10] [Chentanez 11]

Lecture VI: Constraints and Controllers

Enhanced Second-order Implicit Constraint Enforcement for Dynamic Simulations

Implementation of Cloth Simulation that can be Used in Games and Animation

Math background. 2D Geometric Transformations. Implicit representations. Explicit representations. Read: CS 4620 Lecture 6

Real-time Clothing Animation: An Analysis of the Model Proposed by Nikitas Tsopelas

animation computer graphics animation 2009 fabio pellacini 1 animation shape specification as a function of time

Co-rotational Finite Element Solid Simulation with Collisions. Patrick Riordan

Application of Finite Volume Method for Structural Analysis

animation computer graphics animation 2009 fabio pellacini 1

The Immersed Interface Method

COMPUTATIONAL ASPECTS OF DYNAMIC SURFACES

Particle-based Fluid Simulation

Techniques for Animating Cloth

Ragdoll Physics. Abstract. 2 Background. 1 Introduction. Gabe Mulley, Matt Bittarelli. April 25th, Previous Work

Guidelines for proper use of Plate elements

Revision of the SolidWorks Variable Pressure Simulation Tutorial J.E. Akin, Rice University, Mechanical Engineering. Introduction

2.11 Particle Systems

Development of an Integrated Computational Simulation Method for Fluid Driven Structure Movement and Acoustics

Computer Animation. Algorithms and Techniques. z< MORGAN KAUFMANN PUBLISHERS. Rick Parent Ohio State University AN IMPRINT OF ELSEVIER SCIENCE

Embedded Reinforcements

Transcription:

Cloth Simulation COMP 768 Presentation Zhen Wei

Outline Motivation and Application Cloth Simulation Methods Physically-based Cloth Simulation Overview Development References 2

Motivation Movies Games VR scene Virtual Try-on Fashion Design 3

Cloth Simulation Methods Geometric Method Represent folds and creases by geometrical equations. Aim at modeling the appearance of the cloth Not focus on the physical aspects of cloth Physically-based Method 4

Physically-based Cloth Simulation General Ideas Represent cloth as grids Vertices are points with finite mass Forces and energies of points are calculated from the relations with the other points 5

Physically-based Cloth Simulation How does Cloth Simulation work Differences among the methods Finding Governing Equation Solving the Equations Collision Detection / Handling 6

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

Governing Equation Potential energy E is related to deformations Stretch Shear Bending Other Forces 8

Solving the Equations Explicit Euler Implicit Euler Midpoint (Leapfrog) Runge-Kutta Crank-Nicolson Adams-Bashforth, Adams-Moulton Backward Differentiation Formula (BDF) 9

Solving the Equations Crank-Nicolson If the partial differential equation is Solution: 10

Solving the Equations Linear multistep method Single-step methods (such as Euler's method) refer to only one previous point and its derivative to determine current value. Methods such as Runge Kutta take some intermediate steps (for example, a half-step) to obtain a higher order method Discard all previous information before taking a second step Multistep methods : Use the information from previous steps: refer to several previous points and derivative values to get current value. Linear multistep methods: linear combination of the previous points and derivative values 11

Solving the Equations Adams Method (Linear multistep method) One-step Euler Two-step Adams Bashforth 12

Solving the Equations Adams Method (Linear multistep method) Adams Bashforth methods Adams Moulton methods 13

Solving the Equations Backward Differentiation Formula (BDF) Methods with s > 6 are not zero-stable so they cannot be used vs. Adams Moulton methods 14

Jerry Weil (1986) Geometric model A cable under self-weight forms a catenary curve at equilibrium A cloth hanging from a discrete number of points can be described by a system of these curves Limitation: only models the hanging clothes 15

Feynman (1986) Physically-based model Represented cloth in a 3D space by using a 2D grid Energy-based method: The energy for each point is calculated in relation to surrounding points The final position of cloth was derived based on the minimization of energy Limitation: only modeling cloth draped over rigid objects 16

Breen, House, Wozny(1991-1994) Each particle is based on thread-level interactions Energy: Stretching, bending, trellising (shear) & gravity Minimize total energy (SGD), while maintaining collision constraints Fit functions to the measured data Limitation: No dynamics involved 17

Provot (1995) Spring-Mass System Internal Forces and External Forces Integration: Simple Euler method Dynamic Inverse Procedures Haumann (1987) Extension 18

Spring-Mass System for Cloth Consider a rectangular cloth with m n particles Provot (1995) 19

Spring-Mass System for Cloth Internal Forces: F = - k u Notations: The system is the mesh of m x n masses P_{i,j}(t): position at time t u: deformation (displacement from equilibrium) of the elastic body subjected to the force F Provot (1995) 20

Spring-Mass System for Cloth External Forces Force of gravity Notations: \mu: mass g: the acceleration of gravity Viscous damping C_{dis} : damping coefficient v_{i,j} : velocity at point P_{i,j}. Viscous fluid (wind) Provot (1995) 21

Spring-Mass System for Cloth External Forces Viscous fluid (wind) Force: a viscous fluid moving at a uniform velocity u_{fluid} exerts, on a surface of a body moving at a velocity v u fluid : a viscous fluid with uniform velocity v_{i,j}: velocity at point P_{i,j} n_{i,j} is the unit normal at P_{i,j} C_{vi} is the viscosity constant Provot (1995) 22

Spring-Mass System for Cloth Integration: Simple Euler Method Dynamic Inverse Procedure movement is not entirely caused by analytically computed forces (Contact problems: hanging) compute displacement due to the force => we know displacement of a hanging point (=0), compute actual velocity and actual resulting force can be used in object collisions and self-intersection Provot (1995) 23

Spring-Mass System for Cloth Discretization Problem Discretize our cloth more or less finely It takes a lot of effort to design discretizationindependent schemes. Provot (1995) 24

Baraff and Witkin(1998) Triangle-based representation Exploit sparseness of Jacobian Implicit integration Result - larger time steps, faster simulations (a few CPU-secs/frame) Used in Maya Cloth 25

Large Steps in Cloth Simulation Every particle has a changing position x_i Given a vector condition C(x) which we want to be zero Associate an energy function Ec with C, k is stiffness constant of our choice Assuming that C depends on only a few particle, C gives rise to a sparse force vector f. Baraff and Witkin(1998) 26

Large Steps in Cloth Simulation Derivative matrix Nonzero entries of K are K_{ij} for all pairs of particles i and j that C depends on K is symmetric. Also, K is sparse Baraff and Witkin(1998) 27

Large Steps in Cloth Simulation Stretch Forces Stretch can be measured by Material is unstretched wherever Every cloth particle has Changing position x_i in world space Fixed plane coordinate (u_i, v_i) Suppose we have a single continuous function w(u, v) that maps from plane coordinates to world space How to calculate? Baraff and Witkin(1998) 28

Large Steps in Cloth Simulation Stretch Forces Stretch can be measured by Material is unstretched wherever The condition for the stretch energy Solution: a is the triangle s area in uv coordinates Baraff and Witkin(1998) 29

Large Steps in Cloth Simulation Sheer Forces Sheer Approximation to the shear angle a the triangle s area in the uv plane. Baraff and Witkin(1998) 30

Large Steps in Cloth Simulation Bend Forces n1 and n2 : the unit normals of the two triangles bend e: a unit vector parallel to the common edge Baraff and Witkin(1998) 31

Large Steps in Cloth Simulation Damping Forces The force f arising from the energy acts only in the direction So should the damping force damping force should depend on the component of the system s velocity in direction So the damping strength should depend on Baraff and Witkin(1998) 32

Large Steps in Cloth Simulation Constraints Constraints determined by the user or contact constraints Reduced Coordinates Penalty Methods Lagrange Multipliers Enforcing constraints by mass modification Example: zero acceleration along z-axis Baraff and Witkin(1998) 33

Large Steps in Cloth Simulation Solving Equations Resultant sparse linear system solved using conjugate gradient Integration: Backward Euler (implicit method) Adaptive time stepping Baraff and Witkin(1998) 34

Large Steps in Cloth Simulation Collision Collision detection: cloth-cloth: particle-triangle and edge-edge intersection cloth-solid: cloth particle against the faces of solid object Collision Response: cloth-cloth: Insert a strong damped spring force to push the cloth apart cloth-solid: If the relative tangential velocity is low, lock the particle onto the surface; If not allow the particle to slide on the surface. Baraff and Witkin(1998) 35

Choi and Ko (2002) Cloth property Weak resistance to bending Strong resistance to tension Need large compression forces for out-ofplane motion Use column buckling as their basic model Replace bend and compression forces with a single nonlinear model Semi-implicit cloth simulation technique (BDF2) Allows a large fixed time step Stable but Responsible Cloth 36

Bridson, Marino, Fedkiw(2003) Clothing with many folds and wrinkle Accurate Model for Bending : possibly nonzero rest angles for modeling wrinkles into the cloth Mixed explicit/implicit integration (Crank-Nicolson) Collisions: Forecasting collision response technique that promotes the development of detail in contact regions. Post-processing method for treating clothcharacter collisions that preserves folds and wrinkles Dynamic constraint mechanism that helps to control large scale folding Simulation of Clothing with Folds and Wrinkles 37

English and Bridson (2008) Effective new discretization for deformable surfaces Constrained to not deform at all in-plane but free to bend out-of-plane A triangle is rigid if and only if the distance between any two edge midpoints remains constant Lagrange multiplier constraint forces Second order accurate multistep constrained mechanics time integration scheme (BDF2) Animating Developable Surfaces using Nonconforming Elements 38

References SIG GRAPH Courses SIG GRAPH 2003 Course: Clothing Simulation and Animation SIG GRAPH 2005 Course: Advanced Topics Clothing Simulation and Animation Some course notes and slides: http://caig.cs.nctu.edu.tw/course/ca/lecture/clothsimulation.pdf http://caig.cs.nctu.edu.tw/course/ca/lecture/clothsimulation2.pdf graphics.ucsd.edu/courses/cse169_w05/cse169_16.ppt http://www.ics.uci.edu/~shz/courses/cs114/slides/mass_spring.pdf Some student presentation slides: http://www.cs.cornell.edu/courses/cs667/2005sp/studentslides/07budsberg.pdf www.cs.unc.edu/~lin/comp768-s09/lec/cloth.pdf 39