Questions.
  1. Among the contributions presented in the paper’s introduction, I’m curious about what it means that control is possible during simulation. Rather than the user’s direct control, does it mean that during the update at each step, position adjustment is directly possible via constraints?

    Figure

    💡

    Answer

    • Theoretically, constraint projection plays the role of adjusting positions.
    • In implementation, for simple cases, control in the form of directly overwriting the position is also possible (e.g., if a wall is at position 5 and some vertex is at 4, just push it up to 5).
      • Control during simulation is very important in physics-based simulation, especially in games or interactive applications where forced manipulation midway is needed.
      • In PBD, directly manipulating vertex positions is easy. Example: immediately projecting an object that hit a wall back outside the wall.
    • Force-based methods must go through the process of force → acceleration → velocity → position, so intervening midway is difficult.
  2. In Related works, regarding the limitation mentioned for Clavet et al.’s paper Particle-based viscoelastic fluid simulation — the part “time step appears in various places of their position projections” — I don’t quite grasp why this is problematic. Does it mean that even though it is position-based, this paper’s methodology updates positions in a way dependent on the time step, leaving room for problems such as overshoot?

    Figure

    💡

    Answer

    • Like PBD, Clavet also projects various physical phenomena (e.g., elasticity, viscosity, etc.) sequentially.
    • However, the time step explicitly enters each projection computation → it is effectively an explicit update.
    • One of PBD’s strengths is that the time step has little influence in integration (unconditionally stable).
    • But in Clavet’s approach, \(\Delta t\) directly enters the constraint projection process, so a large time step can have a large impact, potentially degrading stability.
    • In other words, Clavet is “PBD-style but not fully PBD.”
  3. Additionally, I only know that the forward Euler method is an explicit methodology, and that in the explicit case, intuitively, if \(\Delta t\) becomes large there is a possibility of overshoot, which is a drawback of being unstable. What exactly is the condition for this stability? The paper also states that they devised an unconditionally stable algorithm using position-based methods — is it simply that being independent of \(\Delta t\) makes it unconditionally stable, or is there a specific condition?

    💡

    Answer

    • Not only \(\Delta t\), but also other parameters such as the elasticity coefficient have an influence.
    • It doesn’t mean “it works perfectly for any value whatsoever,” but rather that it works well even for relatively large values.
    • Since in PBD the constraint solver directly corrects positions to stable positions, the integration itself does not predict future positions → no overshoot.
    • However, depending on the number of solver iterations, the stiffness coefficient, the form of the constraints, etc., convergence issues can still arise.
  4. Regarding Collision Detection: For the Continuous and Static cases, I understood that a ray is cast from the original position to the moved position \(x_i \rightarrow p_i\), and which of the two algorithms is used is determined by whether there is a collision surface in between — is my understanding correct? If my understanding is correct, I don’t intuitively grasp what kind of situation the static case corresponds to, so what situation should it be seen as?

    Figure

    💡

    Answer

    • In the case where it already starts inside a static object, even if a ray is cast it cannot meet a collision surface → handled as static collision as a fallback.
    • In this case, it is projected onto the nearest surface.
    • That is, if in the previous simulation \(p_i\) was already located inside the object and the solver failed to catch it, and in this simulation \(p_i\) is also located inside the object, then at the solver stage, as a fallback, it is projected onto the nearest surface point \(q_s\).
  5. Also, in continuous collision detection, Section 4.3 mentions that detecting all self-collisions is insufficient — I’m curious why that is.

    💡

    Answer

    • CCD generally uses methods such as a ray from a point toward a triangle or edge-edge intersection.
    • However, in the case of cloth, in situations where it folds or twists, overlaps cannot be detected once already in an interpenetrated state.
    • Example: when cloth folds rapidly and triangles overlap each other, CCD cannot detect it because it only looks at the past trajectory.
    • Solution: use static self-collision + spatial hashing + fallback constraint together.
  6. Regarding impulse: I didn’t know what impulse was, so I looked it up, and understood it roughly as the quantity that instantaneously changes velocity. In Section 3.4, for the collision of two dynamic objects,

    \[C(\mathbf{q},\mathbf{p}_1,\mathbf{p}_2,\mathbf{p}_3) = \pm(\mathbf{q}-\mathbf{p}_1)\cdot\left[(\mathbf{p}_2-\mathbf{p}_1)\times(\mathbf{p}_3-\mathbf{p}_1)\right]\]

    I don’t quite understand how checking collision via this bidirectional plane equation in-on-out ends up taking impulse into account, so I’m asking. Is it because changing p through the constraint function presented within the same system gets reflected during the velocityUpdate process?

    💡

    Answer

    • Correct. When \(p\) changes through the constraint, then in the subsequent velocity update step the velocity is computed as \(v = (p - x) / \Delta t\) → an impulse effect arises.
    • Impulse is the integral of force, inducing an instantaneous change in velocity.
    • In PBD, it’s not force but position correction → in the subsequent velocity computation, an impulse effect naturally arises.
    • This approach can also be used for the collision of two rigid bodies, and if the constraint function is invariant to rigid body modes, linear/angular momentum is conserved.
  7. In addition, I did not understand the derivation in the Gradient of the Normalized Cross Product part of Appendix A — I’m curious about what I should study to understand why the derivation of the equations proceeds this way.

Preliminaries

Time Integration vs. Verlet Integration

Linear & Angular Momentum Conservation

\[\sum_i m_i \Delta \mathbf{p}_i = \mathbf{0},\]
\[\sum_i \mathbf{r}_i \times m_i \Delta\mathbf{p}_i = \mathbf{0},\]

Weighted average, angular momentum, linear momentum, angular velocity, linear velocity

Newton-Raphson step

Vector Calculus

Motivation

  • In the force-based case, position updates necessarily occur by way of velocity computation. In this process, overshoot problems can arise depending on the time step (unstable).
  • Position-based approaches that have been attempted are:
    1. used only in a limited way for polishing purposes on top of force-based methods, or
    2. focused only on specific constraints, or
    3. incompletely position-based (still often dependent on the time step, hence conditionally stable).

    ⇒ Hence the need for a method that uses general constraints while the time step does not intervene in the position update process.

Related Works

: Summarized in the NMK*05 report.

1) Jkobsen: Verlet integrator to directly manipulate position, + velocity is updated implicitly. BUT focused only on distance constraints only

2) Desbrun & Provot: constraint projection for preventing overstretching in mass spring system. BUT projection oly used for polishing purposes

3) Bridson et al: traditional force based + position based approach only on geometric collision resolving algorithm. 3-2) Volino et al: for kinematic collision correction step only

4) Clavet et al: viscoelastic fluid sim by position based. BUT time step used a lot for the position projection; conditionally stable integration

5) Muller et al: deformable obj, goal positions setting, matching rest state - curr state BUT constraint was only one special global constraint

6) Faure: Verlet integration + position based & linearized constraints

7) BW98 & THMG04 - defining constraint functions. Refer to this if you want to know more.

8) GHDS03 & BMF03: defining the bending term. This was applied in a position-based manner.

Contribution

  • Solves the instability problem while enabling control over explicit integration.
  • Position becomes a variable that can be directly manipulated during simulation.
  • Can handle general constraints in a position-based setting.
  • The solver is easy to implement and understand in a position-based manner.

Methods

Algorithm

Based on time step \(\Delta t\):

Figure

Initialization — Lines 1-3

forall vertices i  
   xi = x0_i  
   vi = v0_i  
   wi = 1/mi  # inverse mass
endfor
  • xi: current position
  • vi: current velocity
  • wi = 1/mi: inverse mass. If mass is infinite, it does not move (e.g., used for handling fixed points)

External Force — Line 5

vi ← vi + Δt * wi * f_ext(xi)
  • Directly reflect external force \(f_{\text{ext}}\) (e.g., gravity \(g\)) into the velocity.
  • In the paper, most external forces are handled as position constraints, but forces that are hard to express in a position-based way, like gravity, are exceptionally applied directly to the velocity.
    • Considering only gravity: \(v_i \leftarrow v_i + \Delta t * g\)

Damping — Line 6

Section 3.5: Global Motion Preserving Damping

dampVelocities(v1, ..., vN)

: Proposes a method that damps only internal oscillations while preserving the overall object’s linear and rotational motion.

  1. Compute the center of mass position/velocity:

    \[x_{cm} = \frac{\sum m_i x_i}{\sum m_i}, \,\ v_{cm} = \frac{\sum m_i v_i}{\sum m_i}\]
  2. Compute angular momentum and angular velocity:

    \[L = \sum r_i \times m_iv_i, \,\ \omega = I^{-1}L\]
  3. Damp only the velocity deviation of each point:

    \[\Delta v_i = v_{cm} + \omega \times r_i - v_i \\\\ v_i \leftarrow v_i + k_{\text{damping}} \cdot \Delta v_i\]

Predicted Position Calculation — Line 7

pi ← xi + Δt * vi
  • Predicted using the Explicit Euler method
  • Constraint satisfaction is not yet guaranteed → corrected in the next step

Collision Constraint — Line 8

Section 3.4: Collision Detection & Response

generateCollisionConstraints(xi → pi)
  • Collision Detection (inequality constraint)
    • CCD: when segment \(x_i \rightarrow p_i\) collides with an obj, compute contact point \(q_c\) and normal \(n_c\) & add a constraint:

      \[C(p_i) = (p_i - q_c) \cdot n_c \ge 0\]
    • SCD: if CCD fails, compute the nearest surface point \(q_s\) from \(p_i\) and normal \(n_s\) & add a constraint:

      \[C(p_i) = (p_i - q_s) \cdot n_s \ge 0\]
  • \(M_{\text{coll}}\) is generated entirely anew here at every time step (outside the solver loop) → computed together in the solver

Constraint Projection Iteration — Lines 9 - 11

Section 3.2 ~ 3.3: Constraint Projection

loop solverIterations times  
  projectConstraints(C1, ..., CM + Mcoll, p1, ..., pN)  
endloop
  • All constraints have the following general form:

    \[C(p_1, ... , p_n) = 0 \, (\text{equality}) \,\ \text{or} \,\ C(p_1, ... , p_n) \ge 0 \, (\text{inequality})\]
  • Satisfies the linear & angular momentum conservation conditions (especially for inner constraints):

    \[\sum m_i\Delta p_i = 0, \,\ \sum r_i \times m_i\Delta p_i = 0\]
  • Projection approach:
    • Handle non-linear constraints iteratively in a Gauss-Seidel manner
    • At each iteration, for each constraint:
      1. Compute the gradient: \(\Delta C(\mathbf{p})\)
      2. Newton-Raphson step:

        \[\Delta p_i = -sw_i\nabla_{p_i}C, \,\ s = \frac{C}{\sum_j w_j\vert \nabla_{p_j}C\vert ^2}\]
        Derivation
      3. Apply correction: \(p_i \leftarrow p_i + \Delta p_i\)
  • Types of Constraints:

    \[\begin{aligned} C(p_1, p_2) &= \vert p_1 - p_2\vert - d \\ C(p_1, p_2, p_3, p_4) &= \arccos(n_1 \cdot n_2) - \phi_0 \end{aligned}\]

Velocity & Position Update — Lines 12 - 14

vi ← (pi − xi) / Δt  
xi ← pi
  • Store the constraint-satisfying corrected position as the final position
  • Velocity is recomputed via the \(\Delta x / \Delta t\) method
  • Similar to Verlet integration, but the velocity is explicitly controlled

    → advantageous for damping or collision detection

Velocity Update after Collision — Line 16

velocityUpdate(v1, ..., vN)
  • Apply friction and restitution to the vertices where the collision constraint was applied
    • Reflect the velocity in the collision normal direction → restitution
    • Reduce the velocity in the tangential direction → friction