Nicolas Drum
  1. Work
  2. Splat Repair

Holes in 3D scans, repaired

Splat Repair is a Photoshop-style editor for Gaussian splats. You paint over what should go, and the tool fills the hole in a few seconds.

The sole before: a black block where the stand held the shoe.The sole of the scanned shoe after the fill: the pattern runs through.
scanfilled
Scene · Interior · Drawing room · Evening

Drag the ring. Left is the block the stand left in the sole, right is the same view after the fill.

Code

Open source on GitHub

Splat Repair is free under Apache 2.0. Flat surfaces fill in about a second. Hard cases such as the sole of a shoe still need patching by hand.

days to build it
8
for a fast fill, on a scan with 550,000 splats
0.3–1.5 s
for a deep fill with a 2D model, on an RTX 4090
~20 s
ways to fill a hole in 2D, compared on the same sole
5
Problem

Delete something from a splat and you leave a hole

I scanned this shoe on a red stand. The stand became part of the scan.

Most editors let you delete splats. What stays behind is a hole, and I could not find a tool that repairs it. Photoshop has done this for photos for years. A photo has one view, though, and a scan has every view, so a fill has to hold from all sides.

I built the tool with Claude before my Claude Max subscription ran out on November 10.

The shoe on the red stand it was scanned on.The shoe floating, the stand removed and the sole filled.
with standstand removed
Tools

Three ways to close a hole

Comparison

Five ways to fill the same hole

For the deep fill I tried five 2D methods on one view of the sole. LaMa needed about 6 seconds, Photoshop Generative Fill 17.

  1. The scan with the black block.
    1AScan
  2. Result of Content-Aware Fill.
    2AContent-Aware Fill
  3. Result of PatchMatch.
    3APatchMatch
  4. Result of SDXL inpainting: it painted a new object into the hole.
    4ASDXL inpainting
  5. Result of LaMa: a smooth plate that follows the sole.
    5ALaMa · 6 s
  6. Result of Photoshop Generative Fill.
    6AGenerative Fill · 17 s

Circled in red: the one the tool uses.

Scenes

It also works on a building

The beach hut with a red cross on the wall.The beach hut with the red cross painted out of the wall.
scancross removed
The sign on the hut with the red cross.The sign on the hut without the red cross.
scancross removed

The beach hut from my Gaussian splatting tutorial. On flat surfaces like this wall the fast fill is enough.

The scans as projects:The shoeThe beach hut

A self-initiated project, not commissioned by the shoe's brand and not affiliated with it.

Limits

Where it still fails

An early fill seen from the side: the patch sits in the sole as a dent.
  • On complex patterns like the sole of the shoe, fills often leave small dents.
  • From some angles you can see the patch.
  • On flat surfaces like the wall of the beach hut the fast fill works well.
Video

The eight days in under six minutes

Built in eight days, documented in the video.

Code

Open source on GitHub

Splat Repair is free under Apache 2.0. Flat surfaces fill in about a second. Hard cases such as the sole of a shoe still need patching by hand.

Enquiry

Need a scan cleaned up or a tool like this built?