Large Steps in Cloth Simulation
Questions.
-
Why does weakening the stretch force cause a “bouncy” problem?

In cloth modeling, the stretch force is the strongest among the cloth’s internal forces, and it strongly resists in-plane stretching or compression deformation of the fabric.
- Real cloth generally resists even very small deformations with large forces, so it barely stretches.
- When the stretch force weakens, the resistance of the internal forces decreases, so the cloth stretches or compresses easily.
- The connections between the cloth particles start behaving like weak springs rather than strong springs, so they stretch and compress easily even under small forces, and severe elastic deformation appears.
⇒ rubbery or bouncy
-
How does the stiffness coefficient control stiffness?
The stiffness coefficient is the coefficient that determines the magnitude of the energy function when defining the internal force:
\[f = -k \frac{\partial \mathbf{C}(\mathbf{x})}{\partial \mathbf{x}} \mathbf{C}(\mathbf{x})\]-
\(C(x)\) is a vector representing the deformation state, taking a nonzero value when an undesired deformation occurs.
⇒ The larger the stiffness coefficient \(k\), the larger the internal force produced for the same deformation \(C(x)\).
In other words, increasing the stiffness coefficient \(k\) = increasing the strength of the spring.
- In the case of the stretch force, \(C(x)\) is the value representing the difference between the deformed length within the triangle and its original length, and the larger \(k\) is, the more strongly even very small deformations are resisted.
- When \(k\) is small, the same deformation is resisted weakly, so larger deformation occurs.
⇒ The cloth resists deformation more strongly.
-
-
Why does this satisfy the constraint? Why must the two vectors be orthonormal?

It preserves only the in-plane components except the two directions p and q.
If they are not orthogonal, ppT + qqT does not become an exact 2D plane projector -> if they are orthogonal, it becomes possible to form a projector onto the direction perpendicular to p and q.
Motivation
The main bottleneck of existing cloth simulation was that a very small time step had to be used due to numerical instability. This caused the following problems:
- Using an explicit numerical integration method with a small time interval requires many time steps, making the computational cost very high.
- In particular, for clothing or fabric to look realistic, a very high-resolution mesh is needed, which demands even more computation.
- Existing methods have the limitation that realistic and precise simulation is difficult with limited computational resources.
Material Property of Cloth
- Anisotropic:
- Due to the grain of the cloth, it has different force resistance in the u and v directions.
- Stiffness
-
“Stiff” in numerical analysis refers to an ODE or system of the following kind:
Some components change very quickly (high frequency), while other components change slowly.
⇒ A very small time step is required to obtain a numerically stable solution.
-
It is resistant to stretching but permissive to bending & shear → because of this imbalance in properties, the difference in gradient slopes is large = it is stiff.
-
⇒ A cloth simulation method is needed that operates stably even at large time steps + is realistic and fast.
Contribution
- A cloth simulation method that can stably handle large time steps based on implicit integration.
- Use of a new modified PCG for constraint enforcement.
- The preconditioning used here: Jacobi preconditioning.
- A damping method that applies only to constrained forces, in a non–energy-derivative manner.
- Adaptive Time Stepping.
- The first use of constraint functions.
Methods
Geometry and Energy
- Cloth representation using a triangle mesh:
- The coordinates of each node in the rest configuration are set as \((u_i, v_i)\) on the plane.
- Transformation into world space: deformation function \(\mathbf{w}(u,v)\).
- The derivative of \(\mathbf{w}\) (deformation map):
- \(\mathbf{w}_u = \partial{\mathbf{w}}/\partial u\)
- \(\mathbf{w}_v = \partial{\mathbf{w}}/\partial v\)
-
Energy: expressing it as a single, monolithic function or a combination of decomposed sparse energy functions is not sufficient.
⇒ Definition via a constraint function \(C(x)\):
\[E_c = \frac{k}{2} \mathbf{C}(\mathbf{x})^T\mathbf{C}(\mathbf{x})\]- \(\mathbf{C}(\mathbf{x})\) is defined differently depending on stretch/shear/bend:
-
stretch:
\[\mathbf{C}(\mathbf{x}) = a\begin{pmatrix} \Vert \mathbf{w}_u(\mathbf{x})\Vert - b_u \\ \Vert \mathbf{w}_v(\mathbf{x})\Vert - b_v \end{pmatrix}\]- where a is the triangle’s area in uv coord.
-
shear:
\[C(\mathbf{x}) = a\mathbf{w}_u(\mathbf{x})^T\mathbf{w}_v(\mathbf{x})\]- In the rest state, \(\mathbf{w}_u^T\mathbf{w}_v = 0\) (since it is the inner product of two perpendicular terms).
-
bend:
\[C(\mathbf{x}) = \theta\] \[\sin\theta = (\mathbf{n}_1 \times \mathbf{n}_2) \cdot \mathbf{e} \quad \text{and} \quad \cos\theta = \mathbf{n}_1 \cdot \mathbf{n}_2\]
-
- \(\mathbf{C}(\mathbf{x})\) is defined differently depending on stretch/shear/bend:
Forces
- The internal force is defined in three types: 1) Stress 2) Shear 3) Bend.
- Stretch & Shear forces are formulated on a per-triangle basis.
- Bend force is formulated on a per-edge basis.
-
Defining the force from the energy defined in the above manner:
\[\mathbf{f}_i = -\frac{\partial E_C}{\partial \mathbf{x}_i} = -k\,\frac{\partial \mathbf{C}(\mathbf{x})}{\partial \mathbf{x}_i}\mathbf{C}(\mathbf{x});\] -
Derivative matrix \(\mathbf{K}\):
\[\mathbf{K}_{ij} = \frac{\partial \mathbf{f}_i}{\partial \mathbf{x}_j} = -k\left(\frac{\partial \mathbf{C}(\mathbf{x})}{\partial \mathbf{x}_i}\frac{\partial \mathbf{C}(\mathbf{x})}{\partial \mathbf{x}_j}^{T} + \frac{\partial^2 \mathbf{C}(\mathbf{x})}{\partial \mathbf{x}_i \partial \mathbf{x}_j}\mathbf{C}(\mathbf{x})\right).\]-
Moreover, \(\mathbf{K}\) is a second derivative, \(\mathbf{K}_{ij} = \partial \mathbf{f}_i / \partial \mathbf{x}_j = \partial^2 E / \partial \mathbf{x}_i \partial \mathbf{x}_j\)
⇒ symmetric
-
Consideration of Anisotropy
: The stiffness coefficient as a weighted average:
\[\frac{k_u(\Delta u)^2 + k_v(\Delta v)^2}{(\Delta u)^2 + (\Delta v)^2}.\]Damping Force
: A damping formulation that operates only for specific motions.
-
Defined based on the constraint function \(\mathbf{C}(\mathbf{x})\):
\[\mathbf{d} = -k_d \frac{\partial \mathbf{C}(\mathbf{x})}{\partial \mathbf{x}} \dot{\mathbf{C}}(\mathbf{x}).\]
- Since \(\dot{\mathbf{C}}(\mathbf{x}) = (\partial \mathbf{C}(\mathbf{x}) / \partial \mathbf{x})^T \mathbf{v}\),
Implicit Euler Integration
- ODE solving:
-
\(\mathbf{f}\): combination of all forces
⇒ ith particle acceleration \(\ddot{\mathbf{x}}_i = \mathbf{f}_i / m_i\), and hence
\[\ddot{\mathbf{x}} = \mathbf{M}^{-1}\mathbf{f}(\mathbf{x}, \dot{\mathbf{x}}).\] -
Given the initial position and velocity \(\mathbf{x}(t_0), \mathbf{\dot{x}}(t_0)\),
goal is to solve \(\mathbf{x}(t_0 + h), \mathbf{\dot{x}}(t_0 + h)\) by:
-
Explicit forward Euler method to approximate \(\Delta \mathbf{x}, \Delta \mathbf{v}\):
\[\begin{pmatrix} \Delta \mathbf{x} \\ \Delta \mathbf{v} \end{pmatrix} = h \begin{pmatrix} \mathbf{v}_0 \\ \mathbf{M}^{-1} \mathbf{f}_0 \end{pmatrix}\] -
Then the implicit backward Euler method:
\[\left( \begin{array}{c} \Delta \mathbf{x} \\ \Delta \mathbf{v} \end{array} \right) = h \left( \begin{array}{c} \mathbf{v}_0 + \Delta \mathbf{v} \\ \mathbf{M}^{-1} \mathbf{f}(\mathbf{x}_0 + \Delta \mathbf{x}, \mathbf{v}_0 + \Delta \mathbf{v}) \end{array} \right).\] -
Tayler Expansion and linearize:
\[\left(\mathbf{I} - h\mathbf{M}^{-1}\frac{\partial \mathbf{f}}{\partial \mathbf{v}} - h^2\mathbf{M}^{-1}\frac{\partial \mathbf{f}}{\partial \mathbf{x}}\right)\Delta \mathbf{v} = h\mathbf{M}^{-1}\left(\mathbf{f_0} + h\frac{\partial \mathbf{f}}{\partial \mathbf{x}}\mathbf{v_0}\right)\] -
Modify \(\mathbf{M}^{-1}\) into \(\mathbf{W}\), directly specifying the velocity change of the constrained particles as \(\mathbf{z}\):
\[\left(\mathbf{I} - h\mathbf{W}\frac{\partial \mathbf{f}}{\partial \mathbf{v}} - h^2 \mathbf{W}\frac{\partial \mathbf{f}}{\partial \mathbf{x}}\right)\Delta\mathbf{v} = h\mathbf{W}\left(\mathbf{f}_0 + h\frac{\partial \mathbf{f}}{\partial \mathbf{x}}\mathbf{v}_0\right) + \mathbf{z}\]-
Here, \(\mathbf{W}_{ii} = \frac{1}{m_i}\mathbf{S}_i\)
\[\mathbf{S}_i = \begin{cases} \mathbf{I} & \text{if ndof}(i) = 3 \\ (\mathbf{I} - \mathbf{p}_i \mathbf{p}_i^T) & \text{if ndof}(i) = 2 \\ (\mathbf{I} - \mathbf{p}_i \mathbf{p}_i^T - \mathbf{q}_i \mathbf{q}_i^T) & \text{if ndof}(i) = 1 \\ \mathbf{0} & \text{if ndof}(i) = 0. \end{cases}\]
-
-
However, since W cannot be directly solved by the CG method,

with this condition, the following equation is solved using the modified-pcg approach:
\[\left(\mathbf{M} - h\frac{\partial \mathbf{f}}{\partial \mathbf{v}} - h^2 \frac{\partial \mathbf{f}}{\partial \mathbf{x}}\right)\Delta \mathbf{v} = h\left(\mathbf{f}_0 + h\frac{\partial \mathbf{f}}{\partial \mathbf{x}}\mathbf{v}_0\right)\]
Collision Handling
Problem:
- Since the simulator computes discretely, the cloth may have already passed through something between two frames.
- Even when a collision is detected, it may be in a situation where it is already deeply embedded.
For cloth/solid: if the particle is inside the object and only the velocity is corrected, the position still remains inside the object.
→ Strange visual results.
New solution: Position Alteration
: Incorporating the alteration of the particle’s position into the simulation equations.
cloth-solid: if a particle is located near a solid surface + on the wrong side, it is a collision → a collision contact constraint is generated.
cloth-cloth: face-vertex and edge-edge collision detection -> elastic spring–based repulsion force (handled with a penalty force since it is expensive).
Adaptive Time Stepping
- Adaptively adjusting the size of the time step -> ensuring numerical stability of the simulation.
- Checking the amount of stretch change in each triangle, then attempting to reduce the step size if unstable and increase the step size if stable.