Blending liquids

Karthik Raveendran, Chris Wojtan, Nils Thürey, Greg Turk

TL;DR

This paper introduces a novel method for smoothly interpolating between existing liquid simulations, allowing for the creation of new animations by blending their space-time representations. This approach significantly reduces the trial-and-error involved in fluid simulation, enabling interactive exploration of animation parameters and the generation of a wide range of plausible fluid behaviors from a limited set of inputs.

What Problem Does This Paper Address?

Creating realistic fluid animations is a computationally intensive and time-consuming process. Artists often rely on running numerous simulations with varying parameters to achieve a desired effect. This batch-processing approach is inefficient, as it discards data from unsuccessful simulations and can still lead to unexpected or undesirable behaviors. Furthermore, controlling and fine-tuning specific aspects of a fluid simulation, especially those involving complex topology changes like splashing or merging, is a significant challenge. The paper addresses the need for a more efficient and controllable way to generate diverse fluid animations by leveraging existing simulations.

Methods

The core of the proposed method lies in treating entire fluid animations as 4D space-time surfaces. The authors achieve this by:

  • Space-Time Surface Construction: Each animation (a sequence of 3D meshes with per-vertex velocities) is converted into a 4D space-time mesh. This representation connects vertices across frames using velocity information, creating a continuous manifold that inherently handles temporal coherence and topology changes.
  • Non-Rigid Iterative Closest Point (ICP) Registration: To match two animations (source A and target B), a non-rigid ICP algorithm is employed. This algorithm deforms the source space-time surface to align with the target. A key innovation is the extension of ICP to the 4D space-time domain, allowing for simultaneous deformation in both space and time. This is crucial for handling scenarios where events (like splashes) occur at different times in the input animations.
  • User-Guided Registration: To overcome potential local minima in the ICP process and to guide the alignment of salient features, the authors incorporate user-defined correspondences. These can be simple point-to-point mappings, trajectory mappings (preserving a feature's path over time), or spatial constraints.
  • Local Deformation Model: The deformation is achieved through a collection of local affine transforms applied to "deformation nodes" strategically placed on the space-time surface. This model balances fitting the target surface with maintaining smoothness.
  • Handling Thin Sheets and Droplets: Special care is taken to preserve thin sheets and droplets, which can be problematic for standard registration. These features are excluded from the primary fitting energy to prevent them from being deformed incorrectly.
  • Interpolation: Once two animations are registered, intermediate animations are generated by linearly interpolating the vertex positions between the source and target space-time surfaces based on a blend weight. This allows for smooth transitions and the creation of a continuous family of animations.
  • Surface Extraction: After interpolation, the 4D space-time surface is sliced at discrete time intervals to extract the per-frame 3D triangle meshes for rendering. This involves constructing a tetrahedralization of the space-time mesh to fill in gaps between frames.

Datasets

The paper does not introduce new datasets. Instead, it uses existing fluid simulations as input. The examples provided include:

  • Two drops falling into a pool.
  • A dam break scenario with varying wall positions and heights.
  • A duck being thrown into a pool.
  • Crown splashes with topology changes.

The authors mention that their method is evaluated on simulations generated by standard fluid simulators.

Key Insights and Ideas

  • Space-Time as a Unified Domain: Treating animations as 4D space-time surfaces is a powerful abstraction that elegantly handles temporal coherence and topology changes, which are major challenges in traditional frame-by-frame animation processing.
  • Time Deformation is Crucial: The ability to deform animations in time, not just space, is key to aligning events that occur at different moments, as demonstrated by the simultaneous drop impact example.
  • User Guidance for Robustness: While the automated registration is powerful, user-defined correspondences are essential for guiding the ICP algorithm and ensuring plausible results, especially for complex features or when dealing with potential local minima.
  • Preserving Key Features: Explicitly handling thin sheets and droplets by excluding them from the primary deformation energy is a practical approach to maintaining visual fidelity for these challenging fluid phenomena.
  • Interactive Parameter Space Exploration: The method transforms the laborious process of running many simulations into an efficient interpolation task, enabling rapid exploration of animation parameter spaces.

Key Results

The paper demonstrates the effectiveness of its method through several examples:

  • Plausible Interpolations: The method successfully generates smooth and visually plausible interpolations between diverse fluid animations, including those with significant topology changes (e.g., crown splashes).
  • Time Control: The ability to synchronize events that occur at different times is clearly shown in Figure 4, where two drops are made to hit a pool simultaneously.
  • Multi-Animation Blending: The dam break example (Figure 8) illustrates how the method can interpolate between four input animations to create a continuous family of results varying in wall position and height.
  • Efficiency: The registration process is reported to be significantly faster than running a new simulation. For example, the registration time for the "Two Drops" example is 35.2 minutes, while the extraction time for all meshes is only 0.31 minutes. New animations can be generated in a fraction of the registration time.

Limitations and Future Work

The authors acknowledge several limitations and suggest future research directions:

  • Similarity Assumption: The current method works best for interpolating between simulations that are qualitatively similar and do not have highly divergent behaviors. It may struggle with parameters that lead to drastically different outcomes.
  • User Effort: The reliance on user-specified correspondences, while beneficial, still requires manual effort. Future work could focus on automating this process or reducing the user's burden to simple verification.
  • Memory Consumption: The algorithm can be memory-intensive, requiring significant RAM for detailed animations. A multi-resolution approach is suggested to mitigate this.
  • Small-Scale Details: The method tends to preserve small-scale details from the source animation, which might not always be desirable.
  • Local Minima: While user correspondences help, the non-rigid ICP algorithm can still fall into local minima.
  • Surface Extraction Artifacts: The surface extraction process can sometimes result in sliver triangles and flickering, which can be addressed with temporal smoothing.

Future work includes developing a fully automated system for generating an infinite set of simulations from input parameters and generalizing the approach to other phenomena beyond liquids.

Summary updated

Abstract

We present a method for smoothly blending between existing liquid animations. We introduce a semi-automatic method for matching two existing liquid animations, which we use to create new fluid motion that plausibly interpolates the input. Our contributions include a new space-time non-rigid iterative closest point algorithm that incorporates user guidance, a subsampling technique for efficient registration of meshes with millions of vertices, and a fast surface extraction algorithm that produces 3D triangle meshes from a 4D space-time surface. Our technique can be used to instantly create hundreds of new simulations, or to interactively explore complex parameter spaces. Our method is guaranteed to produce output that does not deviate from the input animations, and it generalizes to multiple dimensions. Because our method runs at interactive rates after the initial precomputation step, it has potential applications in games and training simulations.
BibTeX
@article{raveendran2014blending,
  author = {Karthik Raveendran and Chris Wojtan and Nils Thürey and Greg Turk},
  title = {{Blending liquids}},
  journal = {ACM Trans. Graphics},
  year = {2014},
  doi = {10.1145/2601097.2601126},
}

Loading related content...

Figure