PhysDreamer: Physics-Based Interaction with 3D Objects via Video Generation


Preliminaries

Continuum Mechanics and Elastic Materials

1. Deformation Matrix \(F\)

: Measures deformation at a specific point \(F = \nabla_X \phi(X, t)\)

  • X: Position of a point inside the object in the undeformed state
  • x = ϕ(X,t): Position in the deformed state at time t
  • ∇x ϕ(X,t): The Jacobian of the \(F, \phi(X,t)\) mapping, representing local rotation and deformation
  • When F = I (identity matrix) → no deformation
  • When the values of F are large → stretching or compression
  • When the asymmetry of F is large → torsional deformation occurs

2. Cauchy Stress Tensor \(\sigma\)

: Models the distribution of internal forces that arise inside the object in response to external forces

\(\sigma = \frac{1}{\det(F)} \frac{\partial \psi}{\partial F} F^T\)

  • ψ(F): The elastic energy density function depending on deformation
  • \(\frac{\partial \psi}{\partial F}\): The effect of deformation on stress
  • det⁡(F): Corrects for the volume change from deformation (volume preservation: det⁡(F)=1)
  • \(F^T\): Transpose of the deformation → rotation correction

3. Strain Energy Density Function \(\psi(F)\)

: Uses the Fixed Corotated Hyperelastic Model \(\psi(F) = \mu \sum_{i=1}^{d} (\sigma_i - 1)^2 + \frac{\lambda}{2} (\det(F) - 1)^2\)

  • \(\sigma_i\): Singular values of the deformation matrix F
  • μ: Shear Modulus
    • The value that determines how well a material can resist being deformed laterally
    • e.g. jelly has a small μ, while steel has a large one.
  • λ: Lamé coefficient
    • The material’s resistance to volumetric deformation

💡

Modeling elastic body deformation → \(\mu \sum_{i=1}^{d} (\sigma_i - 1)^2\) : The larger the deformation, the higher the energy → a term that suppresses deformation

→ \(\frac{\lambda}{2} (\det(F) - 1)^2\) : If the volume changes, the energy increases → the object tries to maintain its original volume

4. Relationship between the Lamé coefficients and Young’s Modulus, Poisson’s Ratio

\(\mu = \frac{E}{2(1 + \nu)}\) \(\lambda = \frac{E \nu}{(1 + \nu)(1 - 2\nu)}\)

⇒ The overall physical properties of an elastic material can be estimated from Young’s Modulus E alone

5. Governing Equations of Elastic Objects

: The equation of motion. It extends Newton’s law of motion F = ma from a continuum mechanics perspective.

When a force is applied, stress arises inside the object, and accordingly its velocity changes

\(\rho \frac{Dv}{Dt} = \nabla \cdot \sigma + f\)

  • ρ: Density → the mass distribution of the object
  • v: Velocity
  • ∇⋅σ: Acceleration due to stress
  • f: External force
  • \(\frac{Dv}{Dt}\): Acceleration

Material Point Method

Figure

  • A hybrid physics simulation technique that uses both particles and grids → Deformation is represented more naturally, and computation is faster than using particles alone

  • BUT information exchange between particles is required

The computation proceeds in two stages:

1) Particle-to-Grid (P2G)

: Transfers the information of each particle p to the surrounding grid nodes i

\[m_i^t \boldsymbol{v}_i^t = \sum_p N(\boldsymbol{x}_i - \boldsymbol{x}_p^t)[m_p \boldsymbol{v}_p^t + (m_p \boldsymbol{C}_p^t - \frac{4}{(\Delta x)^2} \Delta t V_p \frac{\partial \psi}{\partial \boldsymbol{F}} \boldsymbol{F}_p^{tT})(\boldsymbol{x}_i - \boldsymbol{x}_p^t)] + \boldsymbol{f}_i^t,\]
  • \(m_i^t=\sum_{p}N(x_i-X_p^t)m_p\): Mass of grid node i
    • \(N(x_i-X_p^t)\): B-spline Kernel – performs curved interpolation when transferring from particle → grid
  • \(v_i^t\) : The updated velocity on the grid
  • \(Δx\): Spatial grid resolution
  • \(Δt\): Simulation step size

2) Grid-to-Particle (G2P)

\[\boldsymbol{v}_p^{t+1} = \sum_i N(\boldsymbol{x}_i - \boldsymbol{x}_p^t)\boldsymbol{v}_i^t, \quad \boldsymbol{x}_p^{t+1} = \boldsymbol{x}_p^t + \Delta t\, \boldsymbol{v}_p^{t+1}.\]

: Converts grid information back to particles Based on the physical properties received during the P2G process, forces are computed at the grid level, and velocities are updated based on this. This velocity update information is then received by the particles, updating their velocities and positions.

3) Local Velocity Gradient & Deformation Gradient Update

\[\boldsymbol{C}_p^{t+1} = \frac{4}{(\Delta x)^2} \sum_i N(\boldsymbol{x}_i - \boldsymbol{x}_p^t) \boldsymbol{v}_i^t (\boldsymbol{x}_i - \boldsymbol{x}_p^t)^T, \quad \boldsymbol{F}_p^{t+1} = \left( \boldsymbol{I} + \Delta t \sum_i \boldsymbol{v}_i^t \nabla N(\boldsymbol{x}_i - \boldsymbol{x}_p^t)^T \right) \boldsymbol{F}_p^t.\]

Updates the current (accumulated) deformation state and the deformation velocity

Triplane

: Triplane is a method for representing 3D space by dividing it into three 2D planes (XY, YZ, XZ)

  • More memory-efficient and enables faster training than typical 3D volume representations → That is, rather than storing the 3D field directly, the properties of each point (Young’s Modulus, initial velocity, etc.) are obtained by interpolating on the 2D triplane.

Problem Setting & Motivation

In existing approaches, because the input video or photo lacks GT data on physical properties, learning and inferring the physical properties of a real object from the input is difficult. Specifically, discussing this together with related works:

  1. Existing Dynamic 3D Reconstruction merely reconstructs the input reference scene as-is without understanding physical properties, so subsequent state prediction or interaction is difficult.
  2. Similarly, existing Dynamic 3D Generation does not allow interaction. Moreover, it can only generate videos of fixed length.
  3. The field of Interactive Motion Generation is not only under-researched, but although simulation is possible, there were limitations in learning an object’s physical properties from an input video. There is also the inconvenience of having to manually adjust physics parameters directly.

Accordingly, this study starts from the hypothesis that “video generation models trained on large-scale data implicitly learn the relationship between an object’s appearance and its dynamics.” If this hypothesis holds, it becomes possible to “infer” the physical properties of objects within a scene even without GT data on physical properties. Through this, the goal of the study is set as estimating a physical property field to synthesize realistic interactive motion of objects.

Contribution

  1. Learning physical properties through object dynamics priors from a Video Generation model
  2. MPM downsampling via a KNN approach

Approach

Figure

Problem Formulation

Let’s look at the continuum mechanics of an elastic body. The deformation matrix \(F\) can (though not shown in the paper) be obtained through Young’s modulus \(E\). This shows the mode and magnitude of the deformation. Furthermore, the Cauchy stress equation, which shows the distribution of internal forces inside the object due to external forces, is ultimately determined by \(\mu, \lambda\), which is defined based on \(E, \nu\), and by the previously determined \(F\). In the end, the key variable to be ‘learned’ here becomes Young’s modulus \(E\). The paper mentions that \(\nu\) is fixed as a constant. And to apply MPM, \(\rho, v, m\) is needed. However, dividing the size of the cell containing the volume by the number of particles gives the particle volume, and since density is a constant value in the paper’s setting, the mass m is derived indirectly. In the end, the parameters we must optimize through ‘learning’ become \(E, v\).

Physical Property Estimation

\[\boldsymbol{x}^{t+1}, \boldsymbol{v}^{t+1}, \boldsymbol{F}^{t+1}, \boldsymbol{C}^{t+1} = \mathcal{S}(\boldsymbol{x}^t, \boldsymbol{v}^t, \boldsymbol{F}^t, \boldsymbol{C}^t, \boldsymbol{\theta}, \Delta t, N),\]

A single timestep is split into N sub-steps for updating. S is the simulation model. Also, F and C are for simulation purposes, not for rendering purposes.

\[\hat{I}^t = \mathcal{F}_{\mathrm{render}}(\boldsymbol{x}^t, \boldsymbol{\alpha}, \boldsymbol{R}^t, \Sigma, \boldsymbol{c}),\]

After simulation, the Gaussians are rendered at timestep t as follows. \(F_{render}\) is the differentiable rendering function, and \(R^t\) is the rotation matrix for all particles obtained during the simulation stage.

Optimization

\[L^t = \lambda L_1(\hat{I}^t, I^t) + (1 - \lambda)L_{\mathrm{D-SSIM}}(\hat{I}^t, I^t),\]

What is actually optimized in the optimization are Young’s modulus E and the initial velocity \(v^0\). Looking at what was covered earlier in the preliminary, this is because the physical properties and deformation of the elastic body can ultimately be derived from E and \(v^0\). Here, when computing E and \(v^0\), a Triplane + three-layer MLP is attached and used.

To summarize the optimization process:

  1. Perform MPM simulation to generate the predicted video \(\hat{I}_t\)
  2. Compute the Loss by comparing with \(I_t\) predicted by the video generation model
  3. Update the feature values of the Triplane based on the Loss
  4. Compute new \(v_0(x)\) and \(E(x)\) from the updated Triplane
  5. Perform MPM simulation again with the new \(v_0(x)\) and \(E(x)\)

Regularization

\[L_{\mathrm{tv}} = \sum_{i,j} \Vert \boldsymbol{u}_{i+1,j} - \boldsymbol{u}_{i,j}\Vert _2^2 + \Vert \boldsymbol{u}_{i,j+1} - \boldsymbol{u}_{i,j}\Vert _2^2.\]

Total variance regularization is performed. Simply put, it is a method that minimizes the difference between adjacent values so that u does not change too abruptly spatially. It removes artifacts and makes the two fields to be optimized vary smoothly in space.

Accelerating Simulation with Subsampling

This process is a method for reducing the computational load when performing simulation with the MPM approach.

Figure

Each 3D Gaussian is treated as a particle (\(G_p\)). At the first time step, the driving particles \(Q_q\) extracted via K-Means downsampling are fed into the actual MPM computation for simulation, and during the rendering stage, these are interpolated to extract the rotation and position of \(G_p\) for rendering.

Experiment Results

Figure

Figure

Figure


Limitation

  • The user has to manually select the object to be simulated, separate it from the background, and even set the boundary conditions…
  • The computational cost is high. Among studies dealing with simulation, I have hardly seen any case that has yet solved the computational efficiency problem.
  • The study is limited to elastic objects without collisions or other interactions.