Abstract
We present a novel up-resing technique for generating high-resolution liquids based on scene flow estimation using deep neural networks. Our approach infers and synthesizes small- and large-scale details solely from a low-resolution particle-based liquid simulation. The proposed network leverages neighborhood contributions to encode inherent liquid properties throughout convolutions. We also propose a particle-based approach to interpolate between liquids generated from varying simulation discretizations using a state-of-the-art bidirectional optical flow solver method for fluids in addition to a novel key-event topological alignment constraint. In conjunction with the neighborhood contributions, our loss formulation allows the inference model throughout epochs to reward important differences in regard to significant gaps in simulation discretizations. Even when applied in an untested simulation setup, our approach is able to generate plausible high-resolution details. Using this interpolation approach and the predicted displacements, our approach combines the input liquid properties with the predicted motion to infer semi-Lagrangian advection. We furthermore showcase how the proposed interpolation approach can facilitate generating large simulation datasets with a subset of initial condition parameters.
Introduction
In computer graphics, simulating realistic liquids is a classic "quality vs. cost" trade-off. High-resolution simulations, often utilizing millions of particles, capture intricate behaviors such as turbulent eddies, splashes, and impact crowns. However, these simulations are computationally expensive, often requiring hours or days to compute a single sequence. Conversely, low-resolution simulations are fast but appear "thick" and lack the fine-grained surface details necessary for realism.
Neural UpFlow addresses this gap by introducing a deep learning framework that "up-reses" low-resolution particle-based liquid simulations into high-fidelity animations. By learning a scene flow (deformation field) between different simulation scales, the system synthesizes complex details at a fraction of the computational cost of a full high-resolution physics simulation.
Methodology
The core of the Neural UpFlow approach is a multi-stage pipeline designed to learn and apply particle displacements that bridge the resolution gap. The primary engine is FFNet (FluidFlowNet), an adaptation of the FlowNet3D architecture specifically tailored for unstructured particle data.
1. Neighborhood-Based Learning
Unlike standard Convolutional Neural Networks (CNNs) that operate on regular pixel grids, FFNet utilizes a PointNet++ style approach. It leverages neighborhood contributions—inspired by Smoothed Particle Hydrodynamics (SPH)—to encode local fluid properties directly into the convolutions. This allows the network to respect the underlying physics of the liquid motion.
2. UpFlOF and Topological Alignment
To train the network, the authors developed UpFlOF (Up-Resing Optical Flow), a 4D optical flow solver adapted to find correspondences between low-resolution and high-resolution simulations. A key innovation is the Key-Event Topological Alignment constraint. This constraint identifies moments of topological change, such as the formation of a splash, ensuring the network aligns these critical events across different resolutions. This prevents artifacts where high-resolution details might otherwise misalign with the coarse base motion.
3. Lagrangian Inference and Refinement
At runtime, the network predicts a displacement field for the particles. The system upsamples the coarse input particles, applies the predicted displacements, and performs a semi-Lagrangian advection step. This ensures that the resulting motion remains physically plausible while exhibiting the visual complexity of a high-resolution simulation.
Datasets and Training
The model was trained on a comprehensive dataset of over 1,300 simulation pairs (low-res and high-res) generated using the Bifröst solver in Maya. The data covers three primary scenarios:
- Colliding: Liquid impacting various obstacle geometries.
- Shape: Liquid volumes (spheres, cubes) falling into containers.
- Container: Liquid pouring into a basin.
To further enhance the training set, the authors employed a novel data augmentation strategy. By using their interpolation framework to create "in-between" simulation variants, they effectively grew the Container dataset by 12x without the need for additional full-scale physics simulations.
Results and Discussion
Neural UpFlow demonstrates significant improvements in both accuracy and efficiency compared to existing baselines. FFNet outperformed architectures like PointNet++ and FlowNet3D, achieving a flow accuracy of 63.71% (compared to 30-50% for baselines) and significantly lower End-Point Error (EPE).
Efficiency and Generalization
The computational efficiency is a major highlight. While a high-resolution simulation might take minutes per frame, FFNet inference takes only 0.06 to 0.11 seconds per frame. Furthermore, the model generalizes well to unseen simulation setups, such as multiple cascading streams, producing plausible high-resolution details that were not present in the training data.
Conclusion and Future Work
Neural UpFlow provides a powerful tool for increasing the apparent resolution of particle-based liquids. By working directly in the Lagrangian domain and respecting topological constraints, it avoids the smoothing artifacts common in grid-based methods.
However, limitations remain. The current framework struggles with "whitewater" effects (spray, foam, and detached droplets), which are still best handled by procedural post-processing. Additionally, very thin fluid membranes can be challenging due to particle density gaps. Future research may explore "stacked" neural networks for complex fluid-solid interactions or extending this scene-flow approach to volumetric smoke simulations.
Summary updated