TL;DR
When you photograph a coral reef or a foggy garden, every pixel is an intertwined soup of solid surface and murky medium. FoamSurf cleanly separates the two in 3D without needing masks, modeling surfaces as flat disks and the surrounding medium as a honeycomb of 3D cells. Because both components live explicitly in space and are rendered by a true ray tracer, you can drain the water, deform the seabed, or drop a reflective glass sphere into the scene—and watch light bounce realistically through the murky depths in real time.
What Problem Does This Paper Address?
Reconstructing 3D scenes from 2D photos has gotten shockingly good thanks to Neural Radiance Fields (NeRFs) and 3D Gaussian Splatting (3DGS). But drop a camera underwater or into dense fog, and things fall apart. A scattering medium does two things: it attenuates (dims and colors) light coming from surfaces, and adds backscatter (ambient glow from light bouncing off the water or fog itself).
Existing 3D reconstruction methods struggle to disentangle these effects:
- NeRF-based underwater methods can separate water from rock, but they are painfully slow to train and render, and editing an implicit neural network is notoriously difficult.
- Gaussian Splatting extensions render in real time, but they often suffer from "haze surfels" (floating blobs that accidentally bake fog into the solid geometry) or "medium leakage" (surface colors bleeding into the water model).
Crucially, almost all prior methods evaluate the medium only along primary camera rays. Because the water isn't modeled as a true 3D volume independent of the camera's view, you can't trace secondary rays—meaning if you insert a mirror or a glass orb into the scene, the reflections and refractions won't properly account for the murky water they travel through.
Methods
FoamSurf introduces a hybrid 3D representation paired with a custom, unified differentiable ray tracer:
- Two Distinct Primitives: Solid surfaces are modeled using planar Gaussian surfels (essentially flat, fuzzy, oriented 2D disks with view-dependent color). The scattering medium is modeled using a space-filling Voronoi diagram—3D space is partitioned around learned generator points ("sites"), where each cell holds constant RGB values for direct attenuation, backscatter, and water color.
- Exact Hybrid Ray Tracing: Instead of rasterizing (splatting) onto a screen, FoamSurf shoots rays using OptiX. As a ray travels, the tracer interleaves surfel hits and Voronoi cell boundary crossings front-to-back. Because cell properties are piecewise-constant, the math for light attenuation and backscatter integrates exact solutions along each segment, tracking separate transmittances for surface light and water glow.
- Unsupervised Separation Priors: Matching input photos doesn't guarantee a clean split between rock and water. Without using any segmentation masks, the authors introduce clever training nudges: a binarization and coverage/clearing loss forces surfels to either commit to being an opaque surface or vanish (preventing ghostly haze surfels), while chroma and depth-overlap priors keep solid surface colors out of the Voronoi cells.
- Physical Polish: The renderer incorporates a Henyey-Greenstein phase function (capturing how water gets brighter when looking toward the sun) and a physical camera model (PPISP) so exposure shifts between photos don't corrupt the 3D water parameters.
Datasets
The authors test FoamSurf across real underwater captures, synthetic volumetric scenes, and synthetic fog:
- SeaThru-NeRF: Four real-world underwater reef scenes used to evaluate novel view synthesis and water-seabed separation (using Segment Anything masks strictly for evaluation, never training).
- Synthetic Clouds (Lego & Ficus): Modified classic NeRF objects surrounded by three volumetric clouds. This provides exact ground-truth renders for the object alone, the clouds alone, and newly inserted objects.
- Foggy Garden: Real outdoor scenes paired with synthetic "easy" and "hard" fog, providing clear-air ground truth to test scene restoration.
Key Insights and Ideas
- Give the medium a place in space, not just along a ray: By putting water in space-filling Voronoi cells and using a ray tracer, secondary rays (reflections, refractions, shadows from inserted spotlights) naturally traverse the medium just like camera rays do.
- Image quality hides terrible geometry: On real underwater scenes, a top baseline (Plenodium) matches FoamSurf's rendered image quality (30.68 vs. 30.75 PSNR), yet scores
0.505on surface–medium separation—essentially a coin flip—because it leaves opaque primitives floating in open water. FoamSurf hits0.901by explicitly forbidding surfels from loitering in empty water. - Assets, not just recordings: Because surfaces and water only interact inside the ray tracer at render time, you can edit them independently without retraining—like deforming the seabed, painting a localized plume of dye into the water, or applying Van Gogh style transfer to the water while leaving the coral realistic.
Key Results
- Real Underwater Scenes (SeaThru-NeRF): FoamSurf achieves state-of-the-art reconstruction quality (30.75 PSNR), rendering in real time at 120 FPS after ~29 minutes of training on an RTX 4090, with a compact 159 MB model footprint. It achieves the highest disentanglement score (0.901 vs. 0.851 for SeaThru-NeRF and 0.624 for WaterSplatting), keeping surface opacity in open water near zero (
0.005). - Component & Insertion Accuracy: On synthetic cloud scenes, FoamSurf dominates component-level recovery—scoring 34.77 PSNR on the Lego object and 38.04 PSNR on the clouds alone (compared to SeaSplat's 19.02 and 19.47). It also renders newly inserted spheres most accurately across both scenes.
- Defogging: Under dense ("hard") synthetic fog, stripping away FoamSurf's Voronoi medium recovers background vegetation where baselines blur or darken, achieving the highest restoration score (16.81 PSNR, 0.584 SSIM).
Limitations and Future Work
The authors note that FoamSurf recovers visual appearance, not true physical oceanography. Its attenuation and backscatter values are wideband RGB approximations under a single-scattering model (ignoring complex multiple-scattering physics), and each Voronoi cell holds just one constant value rather than a smooth continuous gradient. While the paper does not lay out an explicit list of future work, the authors note that this hybrid ray-traced construction naturally extends beyond water to turn any scene captured through a murky medium into a reusable, editable 3D asset.
Summary updated