FoamSurf: A Voronoi-Surfel Representation for Differentiable Rendering
Authors: Grzegorz Wilczyński, Julia Farganus, Krzysztof Byrski, Rafał Tobiasz, Mikołaj Zieliński, Dominik Belter, Przemysław Spurek
Organizations: Jagiellonian University · IDEAS Research Institute · Wrocław University of Science and Technology · Poznan University of Technology · Jagiellonian Center for Artificial Intelligence
Scenes inside a scattering medium contain solid surfaces, such as the seabed or rocks, and a semi-transparent medium, such as water, fog, or smoke. Recent Gaussian-based methods produce realistic images of scenes in scattering media, but traces of the medium can remain visible in surface-only renders. Neural fields separate surfaces and medium more accurately, but they are slow to train and difficult to edit. Both approaches evaluate the medium only along camera rays, so its effects along reflected and refracted rays are not modeled. These limitations prevent reliable surface recovery, independent editing of surfaces and the medium, and consistent rendering of inserted objects. We present FoamSurf, a hybrid representation that models surfaces with planar Gaussian surfels and the medium with space-filling Voronoi cells. A single differentiable ray tracer composites both along arbitrary rays, while training priors keep them separate without segmentation masks. Across real underwater scenes, synthetic scenes, and dense fog, FoamSurf achieves image quality on par with the state of the art and the most accurate surface-medium separation among the compared methods. The recovered components can be removed, edited, or stylized independently, and the same reconstruction supports inserted mesh objects with attenuation and scattering along both direct and reflected or refracted rays. Together, these capabilities enable scene restoration, editing, and composition within a single reconstructed model. Project page: https://grzegorzwilczynski.com/foamsurf/
Figures & tables
Figure 2: Applications on reconstructed real scenes, re-rendered by our tracer after each change and without retraining. (a) The seabed is deformed while the water stays as reconstructed, and the inset shows the scene before. The close-ups follow rays that no camera carried. (b) The medium is edited inside a chosen region, and copies of one mesh stand at several distances. Each copy is attenuated and veiled in proportion to the water in front of it. (c) Inserted lights scatter in the water and reach the seabed. (d) Surfaces and water are stylized separately, and the close-ups show each component alone, because the reconstruction keeps them apart.
Figure 3: Overview of FoamSurf. Surfels (left, bottom) hold the surfaces and Voronoi cells (left, top) hold the water. One differentiable ray tracer visits surfel hits and cell boundaries in their order along the ray. It tracks one transmittance for the direct signal and one for the backscatter (bottom plot). Each medium segment lowers them at its own rates, and each surfel hit lowers both. The tracer also renders the surface alone, the medium alone, and the surfel opacity. The loss compares the rendered view with the photo. Its gradients update both representations, and densification and pruning adapt the surfels.
Image quality
Efficiency
Disentanglement
Method
PSNR ↑
SSIM ↑
LPIPS ↓
FPS ↑
Train (min) ↓
Size (MB) ↓
Separation ↑
SeaThru-NeRF (JAX)
27.11 ± 0.05
.845 ± .003
.341 ± .003
0.10 ± 0.00
614 ± 4
3 ± 0
.762 ± .058
SeaThru-NeRF (Nerfstudio)
28.31 ± 0.20
.914 ± .000
.188 ± .002
0.06 ± 0.00
722 ± 3
282 ± 0
.851 ± .031
Zip-NeRF
29.62 ± 0.09
.923 ± .000
.173 ± .002
0.13 ± 0.01
160 ± 2
310 ± 0
n/a
3DGS
25.91 ± 0.09
.872 ± .002
.217 ± .000
346 ± 6
13.2 ± 0.4
131 ± 1
n/a
RadFoam
23.52 ± 0.78
.810 ± .022
.359 ± .022
33 ± 1
n/a
831 ± 0
n/a
Table 1: Novel view synthesis and separation on SeaThru-NeRF. Values are means over four scenes, with standard deviations over three seeds at the final iteration. LPIPS uses VGG. Timings use an RTX 4090, excluding RadFoam training. Size counts the parameters of the trained model at four bytes each, not the checkpoint file. Separation evaluates surface-only opacity against seabed and water masks, and requires a separate medium. Throughout the result tables, colors scale each column from yellow (worst) through orange to red (best), and the best value is bold. Gray marks unavailable values or † author-reported results, excluded from the scale. Per-scene results are in Appendix L .
Figure 4: Lowering the water level of a reconstructed scene. The medium of every ray is clipped below a wavy surface that reflects and refracts. (a) The reconstruction. (b) The surface enters the view, with the seabed reflected on its underside. (c) The seabed is exposed. The waves and the sky are visual effects.
Figure 5: Novel views on two scenes of the SeaThru-NeRF dataset. Under each full view, the crop in the red box is shown next to its absolute error against the photo. All error maps share one color scale. The value in each crop is its PSNR. FoamSurf has the lowest error in both crops.
Figure 6: Surface–medium separation on IUI3 Red Sea. Water-free renders appear above surface-only opacity maps, with per-view separation scores. White denotes seabed in the evaluation mask and opaque surfaces in predictions. FoamSurf retains seabed structure while leaving open water nearly free of surfels. An additional scene is shown in Appendix M .
Figure 7: Lego with three surrounding clouds. Rows show the full scene, object, and medium, with PSNR against separate ground truth. All methods share initial surface points. Red boxes highlight cloud structure retained in baseline surfaces but assigned to the medium by FoamSurf. The white background differs from .
Easy fog
Hard fog
Method
PSNR ↑
SSIM ↑
LPIPS ↓
PSNR ↑
SSIM ↑
LPIPS ↓
SeaThru-NeRF (JAX)
15.20 ± 0.01
.341 ± .003
.622 ± .006
13.97 ± 0.55
.289 ± .025
.740 ± .033
SeaThru-NeRF (Nerfstudio)
12.89 ± 2.47
.288 ± .040
.594 ± .023
10.02 ± 0.14
.211 ± .007
.650 ± .013
SeaSplat
13.96 ± 0.03
.634 ± .002
.315 ± .002
10.44 ± 0.13
.380 ± .010
.487 ± .009
WaterSplatting
19.69 ± 0.14
.696 ± .001
.318 ± .001
15.46 ± 0.00
.495 ± .010
.489 ± .001
Plenodium
17.83 ± 0.13
.601 ± .002
.351 ± .003
15.29 ± 0.05
.423 ± .002
.522 ± .001
Table 2: Foggy Garden restoration against clear reference images. Means and standard deviations over two seeds for FoamSurf and WaterSplatting, three otherwise. Hard-fog parameters are fitted to the published figure ( Appendix K ).
Figure 8: Hard-fog restoration with the medium removed. FoamSurf recovers background vegetation where baselines show residual haze, darkening or blur. See Tab. 2 for quantitative results.
Image quality
Disentanglement
Variant
PSNR ↑
Δ PSNR
SSIM ↑
Water ↓
Separation ↑
FoamSurf (full)
30.76 ± 0.02
0.00
.929 ± .000
.005 ± .001
.901 ± .001
w/o medium (surfels only)
29.03 ± 0.45
− 1.73
.915 ± .002
.977 ± .000
.506 ± .001
homogeneous medium instead of cells
30.53 ± 0.02
− 0.23
.929 ± .000
.214 ± .011
.857 ± .005
w/o separation priors
30.52 ± 0.17
− 0.23
.928 ± .000
.030 ± .002
.883 ± .001
w/o directional scattering
30.64 ± 0.04
− 0.12
.929 ± .000
.005 ± .002
.902 ± .000
Table 3: Ablation on SeaThru-NeRF, removing or replacing one component per variant. Values are means over four scenes and two seeds at the final iteration, with standard deviations in small numbers. Δ PSNR is relative to the full method. Water is the surface-only opacity on water pixels, one component of the separation score of Tab. 1 .
Appendix figures & tables27 assets
Supplementary material from the paper’s appendix.
Appendix
term
weight
ramp (s,n)
threshold
photometric
1
none
surfel scale
10−3
none
binarization
0.01
(667,2000) *
smoothness
0.1 , 0.1 , 1
(0,167)
coverage
0.003
(667,667)
ηcov=0.9
clearing
0.01
(2667,1333)
ηclr=0.3
Appendix
Table S1: Weights and schedules of the training terms. The three smoothness weights apply to the log attenuation, the log backscatter coefficient, and the water color, with Huber thresholds 0.1 , 0.1 and 0.05 . * Cosine ramp.
Parameter
Learning rate
Surfel center
2.5⋅10−3e−1.5⋅10−4n
Color coefficients
max(0.005h(n),0.001)
Opacity
max(0.05h(n),0.025)
Rotation
max(0.01h(n),0.001)
Log scales
0.0396538
Shape exponent
0.1
Appendix
Table S2 : Learning rates for real underwater reconstruction. Arrows denote the medium schedule described in the text.
IUI3 Red Sea
Curaçao
J. Gardens Red Sea
Panama
Method
PSNR ↑
SSIM ↑
LPIPS ↓
PSNR ↑
SSIM ↑
LPIPS ↓
PSNR ↑
SSIM ↑
LPIPS ↓
PSNR ↑
SSIM ↑
LPIPS ↓
SeaThru-NeRF (JAX)
26.87 ± 0.02
.845 ± .002
.334 ± .003
30.89 ± 0.08
.898 ± .003
.324 ± .005
22.16 ± 0.05
.789 ± .006
.351 ± .002
28.53 ± 0.07
.850 ± .003
.353 ± .004
SeaThru-NeRF (Nerfstudio)
26.92 ± 0.23
.888 ± .002
.233 ± .003
31.19 ± 0.95
.940 ± .002
.192 ± .002
23.45 ± 0.15
.882 ± .001
.178 ± .003
31.68 ± 0.08
.947 ± .001
.148 ± .002
Zip-NeRF
30.91 ± 0.09
.901 ± .001
.211 ± .000
30.96 ± 0.12
.945 ± .001
.173 ± .002
24.06 ± 0.20
.895 ± .002
.172 ± .008
32.55 ± 0.12
.953 ± .000
.136 ± .001
3DGS
25.44 ± 0.16
.867 ± .002
.241 ± .003
27.95 ± 0.67
.867 ± .012
.226 ± .002
21.15 ± 0.56
.856 ± .001
.206 ± .002
29.08 ± 0.32
.897 ± .000
.195 ± .001
RadFoam
24.94 ± 2.66
.850 ± .048
.339 ± .052
20.63 ± 1.47
.728 ± .064
.447 ± .063
20.77 ± 0.58
.781 ± .007
.367 ± .014
27.75 ± 0.09
.882 ± .001
.285 ± .003
Appendix
Table S3 : Per-scene image quality on the SeaThru-NeRF dataset. Mean and standard deviation over three seeds at the final iteration. LPIPS uses VGG features.
IUI3 Red Sea
Curaçao
J. Gardens Red Sea
Panama
Method
Seabed ↑
Water ↓
Separation ↑
Seabed ↑
Water ↓
Separation ↑
Seabed ↑
Water ↓
Separation ↑
Seabed ↑
Water ↓
Separation ↑
SeaThru-NeRF (JAX)
.936 ± .044
.222 ± .160
.857 ± .064
.778 ± .086
.156 ± .026
.811 ± .030
.922 ± .110
.724 ± .472
.599 ± .181
.901 ± .047
.342 ± .101
.779 ± .027
SeaThru-NeRF (Nerfstudio)
.914 ± .008
.160 ± .003
.877 ± .005
.958 ± .035
.419 ± .289
.769 ± .131
.881 ± .012
.110 ± .007
.885 ± .010
.890 ± .035
.144 ± .043
.873 ± .039
SeaSplat
.823 ± .009
.336 ± .075
.743 ± .033
.508 ± .002
.544 ± .026
.482 ± .014
.630 ± .031
.368 ± .092
.631 ± .031
.487 ± .026
.842 ± .089
.322 ± .046
WaterSplatting
.998 ± .002
.997 ± .003
.500 ± .002
.994 ± .001
.690 ± .041
.652 ± .021
.990 ± .003
.809 ± .114
.591 ± .057
.992 ± .004
.489 ± .024
.751 ± .010
WaterSplatting + PPISP
.993 ± .004
.865 ± .144
.564 ± .070
.996 ± .001
.928 ± .013
.534 ± .006
.991 ± .003
.710 ± .021
.640 ± .009
.990 ± .004
.535 ± .015
.727 ± .006
Appendix
Table S4 : Per-scene separation on the SeaThru-NeRF dataset. Seabed and Water give mean surface-only opacity on the respective evaluation masks. Separation averages seabed opacity and water transparency, as in Tab. 1 . Values are means and standard deviations over three seeds at the final iteration.
Figure S1 : Novel-view reconstruction on three SeaThru-NeRF views. Each block shows a full view, the red-box crop with its PSNR, and absolute error against the reference photograph. Error maps share one color scale. All methods use seed 42.
Figure S2 : Surface–medium separation on Japanese Gardens. Water-free renders appear above surface-only opacity maps, with per-view separation scores. White denotes seabed in the evaluation mask and opaque surfaces in predictions. Methods and visualization conventions match Fig. 6 .
Figure S3 : A camera path on IUI3 Red Sea. Each block is one moment of the path. The upper row is the rendered frame and the lower row is the same frame with the medium removed. Columns follow the order of Tab. 1 .
Figure S4 : A camera path on Curaçao. Rows, columns and conventions follow Appendix N . The open water above the reef stays empty only under FoamSurf.
Figure S5 : Object insertion on Lego. Each row is one test camera, named on the left with what stands between the camera and the sphere. The first column is the Blender rendering with the crop marked, the second its crop, and the rest the same crop from each reconstruction with the PSNR inside the sphere’s silhouette. Both baselines start from our initial points.
Figure S6 : Object insertion on Ficus, with the conventions of Appendix O .
Lego
Ficus
Scene
Object
Object (pooled) ↑
MAE ↓
Scene
Object
Object (pooled) ↑
MAE ↓
Method
PSNR ↑
PSNR ↑
PSNR ↑
PSNR ↑
WaterSplatting, own init.
11.80
4.09
3.72
.5663
15.62
4.00
3.92
.5601
WaterSplatting
32.85
17.25
15.89
.1406
19.27
20.82
18.84
.0764
SeaSplat, own init.
35.16
33.11
26.16
.0180
30.60
26.23
19.94
.0519
SeaSplat
35.30
33.09
26.16
.0179
31.58
26.78
23.28
.0446
Appendix
Table S5 : Object insertion, all variants and metrics. Scene: the reconstruction without the sphere. Object: the mean over cameras inside its silhouette. Object (pooled): one value from the squared error of every silhouette pixel of every camera, which weights the hard views more. MAE: the mean absolute error in the same region. Own init.: the baseline started from its own initial points instead of ours.
Figure S7 : Insertion into a reconstructed reef, with lighting left in. Look at the bubbles, which the recovered medium alone lights. Look also at the darkening of the reef under the body in the last panel.
Figure S8 : Restoration of a Garden test view under easy fog (top) and hard fog (bottom). Each method renders the scene without its medium. Below each view are the red-box crop, its PSNR against the clear photograph, and its absolute error. Error maps share one color scale. The crop was selected to maximize the margin of FoamSurf over the best baseline, so it shows a larger gap than the full-image averages in Tab. 2 . All methods use seed 42.
Lego
Ficus
Method
PSNR ↑
SSIM ↑
LPIPS ↓
Object ↑
Cloud ↑
Opac. ↓
PSNR ↑
SSIM ↑
LPIPS ↓
Object ↑
Cloud ↑
Opac. ↓
WaterSplatting, own init.
11.80 ± 0.01
.640 ± .000
.303 ± .000
4.85 ± 0.16
19.51 ± 0.01
.915 ± .011
15.58 ± 0.04
.654 ± .000
.255 ± .003
4.79 ± 0.13
18.62 ± 0.60
.977 ± .003
WaterSplatting, our init.
32.90 ± 0.06
.971 ± .001
.112 ± .000
15.44 ± 0.21
19.47 ± 0.00
.603 ± .003
24.10 ± 4.18
.822 ± .101
.149 ± .066
18.07 ± 3.56
21.71 ± 0.00
.207 ± .143
SeaSplat, own init.
35.27 ± 0.10
.975 ± .000
.094 ± .000
19.03 ± 0.06
19.47 ± 0.00
.340 ± .004
31.06 ± 0.54
.972 ± .003
.094 ± .002
21.21 ± 0.37
21.71 ± 0.00
.229 ± .020
SeaSplat, our init.
35.44 ± 0.12
.975 ± .000
.094 ± .000
19.02 ± 0.05
19.47 ± 0.00
.329 ± .008
31.69 ± 0.10
.975 ± .000
.091 ± .001
21.31 ± 0.30
21.71 ± 0.00
.201 ± .006
FoamSurf
34.13 ± 0.08
.970 ± .000
.098 ± .000
34.77 ± 0.09
38.04 ± 0.03
.000 ± .000
32.88 ± 0.02
.978 ± .000
.089 ± .000
32.89 ± 0.08
45.12 ± 4.02
.000 ± .000
Appendix
Table S6 : Synthetic reconstruction on a black background. Values are means and standard deviations over three seeds, except WaterSplatting with its own initialization on Ficus (two seeds, one run failed). PSNR, SSIM and LPIPS evaluate full images. Object and Cloud evaluate surface-only and medium-only renders against their respective references. Opac. measures mean surface opacity on cloud-only pixels. Own init. and our init. distinguish each baseline’s initialization from our procedure.
Figure S9 : One test view of each synthetic scene on a white background. Columns show the full image, surface alone, medium alone, and medium opacity (black is opaque). Baselines use our initialization procedure. Reference opacity describes the clouds alone. For WaterSplatting and SeaSplat, opacity is derived from attenuation up to each pixel’s surface depth. Their medium renders do not recover the cloud shapes, whereas FoamSurf represents the clouds in its spatial medium. Quantitative evaluation uses a black background ( Appendix Q ), since a white background can favor a uniformly light medium.
Figure S10 : Surface edits on one real scene. A deformation moves the surfels, while the water stays as reconstructed. The water in front of the seabed therefore keeps its attenuation and backscatter, and the raised hill is veiled by it in the same way as the original seabed.
Figure S11 : The surfels of Appendix R rendered alone. The deformation changes the surfaces and nothing else. Where a deformation uncovers places that no camera saw, such as the far side of a rock, no surfels exist and the view passes through.
Figure S12 : Medium edits on the same scene and the same view. The surfels are the reconstructed ones in every panel. Scaling the cell coefficients clears or thickens the water, the water of another scene is transplanted by matching per-channel statistics, and a plume and a haze layer are painted into locally refined cells. In the last panel the water of each ray is clipped below a wavy surface, which exposes the seabed.
Figure S13 : The medium of Appendix R rendered alone. Each edit is confined to the cells, and the spatial pattern of the reconstructed water survives the transplant.
Figure S14 : Sediment raised by an impact, one, three and five seconds after it. The surfels carry the deformed seabed and the cells carry the cloud. Look at the far side of the mound, which the cloud veils. Look also at the refracting body on the left, which shows the same cloud through it.
Figure S15 : Style transfer applied to each component separately, on three real scenes. The style of the water is an image in the first row and a text prompt in the others. Each component is optimized against its own render, so the stylized water and the stylized surfaces can be viewed alone or combined. The attenuation of the water is never optimized, so the seabed stays visible through it. For the fire prompt the backscatter coefficients are frozen as well ( Appendix J ).
Figure S16 : The teaser of the main paper, separated into the steps that built it. One edit is added per panel and the reconstruction underneath is the same throughout. Light shafts, waves and sky are visual effects.
Prior removed
Δ PSNR
Δ Seabed
Δ Water
Δ Separation
Medium smoothness
-0.45
-0.009
-0.001
-0.004
Backscatter chroma
-0.07
-0.011
+0.001
-0.006
Opacity binarization
-0.06
-0.019
0.000
-0.010
Seabed coverage
-0.02
-0.016
0.000
-0.008
Water clearing
-0.01
+0.052
+0.047
+0.002
Homogeneous water at the cameras
+0.01
-0.001
0.000
-0.001
Appendix
Table S7 : Each separation prior removed on its own. Values are changes against the full method, paired on the scene and the seed, then averaged over four scenes and two seeds. Seabed and Water give surface-only opacity on the evaluation masks of Tab. 1 . Rows run from the largest loss in PSNR to the smallest.
Figure S17 : One prior removed, the same photograph. A single test view of Panama, rendered by the full method and by each variant. Nothing is marked because the eight renders agree. Appendices T , T and T show the decompositions behind them.
Figure S18 : Surface-only opacity on the view of Appendix T . White is opaque surface. The band of open water above the reef is empty under the full method and takes opacity once the clearing prior is removed. Coverage and binarization leave holes in the seabed instead. Each box marks the window that departs most from the full method, measured on the difference between the two renders. The differences extend beyond the box.
Figure S19 : The medium rendered alone, same view and box convention as Appendix T . Without the chroma prior the haze takes a brown cast that the water does not have. Without medium smoothness the field breaks into patches. Both changes cover the whole frame, not only the marked window.
Figure S20 : The surfels rendered alone, with the medium removed. The view and the box follow Appendix T . The full method keeps the surface dark where the water carried the brightness. Removing either the overlap prior or the camera water prior leaves that brightness in the surface albedo.
Jagiellonian University, Faculty of Mathematics and Computer Science · IDEAS Research Institute · Poznań University of Technology, Institute of Robotics and Machine Intelligence