Back to blog

I photographed the Antvorskov ruin 2,072 times and made it walkable in the browser, with a live AI layer on top

My last splat walk came from a phone video, and it showed. This time I brought a DSLR, sharpened every photo with a network trained on the photos themselves, cleaned the splat up, and trained a 1 MB network that runs on your graphics card and pushes the live view towards the real photos. Drag the divider and see.

Full screen
Live and interactive. Walk with W, A, S and D, drag to look around, press Space for a guided walk along my photo route. Drag the divider to compare the plain splat (left) with the AI-enhanced view (right), and press E to switch the AI layer off. Needs a desktop browser with WebGPU, such as Chrome or Edge. Open it full screen for the best experience.

What you are looking at

Antvorskov is a ruin just outside Slagelse: what is left of a medieval monastery that became a royal castle after the Reformation. Low brick walls, window openings, stumps of pillars, paths through the grass. A good place to stress-test a 3D capture, because everything is texture.

I built a walk through a ruin from one phone video earlier this month, with a small network on top that made it look more like the footage. It worked, but the base was soft, and a network can only nudge what it is given. So this time I started from better data.

A brick wall of the Antvorskov ruin with a window opening and a path, split down the middle: the plain Gaussian splat on the left and the AI-enhanced version on the right
The walk, split in the middle. Plain splat on the left, after the network on the right.

The short version

Step 1: a DSLR instead of a phone

A video frame is a compromise: motion blur, rolling shutter, heavy compression. A DSLR still is 6000 by 4000 pixels of clean data. The price is patience: I walked the ruin and took over two thousand photos.

RealityScan worked out where 1,808 of them were taken. I corrected the lens distortion so every photo is a perfect pinhole image, which matters later: the splat and the photos have to line up to the pixel.

Step 2: sharpen the photos with themselves

Even good photos are a bit soft at 100%: slight misfocus, a little shake, noise in the shadows. I wanted the cleanest possible answer key, so I trained a network to fix that, using only these photos.

The trick is that downscaling a photo makes it sharper per pixel. So the network gets a downscaled copy of a real photo as the target, and the same copy with blur, a bit of motion blur, noise and JPEG damage added as the input. Sometimes it is also tilted a few degrees first, so the network does not only learn horizontal brick lines. It learns to undo that damage on this exact kind of surface, and then I run it on the full-size photos.

A 100 percent crop of a brick and stone surface: the original photo on the left, slightly soft, and the sharpened photo on the right with crisper mortar and stone grain
A 100% crop. The original photo on the left, the sharpened one on the right. Same detail, less blur. I went through the photos one by one before I used them.

The loss is a plain pixel difference. A network trained like that undoes damage it has seen and has no reason to make up new texture, which is exactly what I want from an answer key. It trained for 39,000 steps, and then processed all 2,072 photos in about an hour and a half.

Step 3: train the splat, then clean it

Brush trained the splat on my GTX 1070, saving a checkpoint every 1,000 steps, and I watched it improve in the browser while it ran. Two problems showed up that a DSLR does not fix on its own.

Step 4: every photo is an answer key

This is the same idea as last time. Because I know exactly where each photo was taken, I can render the splat from that spot in a headless browser, with the same viewer code as the walk, and get a pair: what the splat draws, and what the camera saw.

The pairs lined up to a median of 0.03 pixels. I dropped the blurriest 10% of the photos and held back every tenth photo for testing, which left 1,464 pairs to train on.

Three views of the same corner of the ruin with grass, a path and brick walls: the splat rendered in the browser, the neural network output, and the real photo
A held-out photo the network never trained on. Left: the splat rendered in the browser. Middle: the network's version. Right: the real photo. Look at the grass and the shadows on the wall.

One thing is new. The network also gets the camera position and the direction of every pixel, so it can learn that one wall is in shadow and the grass by the path is darker, not just a general look. It trained for 70,000 steps, about an hour on the same card, and the version in this post is that snapshot.

What the AI layer does here

Less than last time, and that is the good news. On the phone-video splat the network had a lot of blur to work against. This splat is already sharp, so most of what is left is colour and contrast: the plain render is a little washed out, the photos have deeper greens and darker brick. The network closes most of that gap and calms some of the speckle on the walls.

A close-up of an old brick wall, plain Gaussian splat on the left and AI-enhanced on the right, with slightly richer colour and calmer texture on the right
Close-up from the same view. Plain splat on the left, enhanced on the right. The change is subtle in a still, more noticeable when you walk and switch it on and off with E.

What is not perfect

A window opening in a brick wall where the trees behind it are only a soft grey blur
Look through an opening and the background goes soft. Few photos saw it from this side.

Better photos beat a cleverer network. The biggest jump in this walk came from the DSLR, the lens correction and the clean-up. The AI layer is the finishing coat, not the foundation.

Why this matters

For heritage sites like this one, a walkable splat is a cheap and honest record: you see the walls as they are today, from any angle, in a browser. I wrote about why that matters in 3D scanning for historical preservation. The same recipe works for a building, a shop or a property, and the AI layer is a 1 MB file that ships next to the scene.

If you want to see the step before this one, the Eremitageslottet walk is a plain splat from 236 photos. This is the kind of 3D visualization work I find most interesting right now.

Frequently asked questions

Why use a DSLR instead of a phone video?

Every photo is a sharp, full-resolution still, 6000 by 4000 pixels, instead of a video frame with motion blur and heavy compression. RealityScan aligned 1,808 of the 2,072 photos, and the splat came out much cleaner than my earlier phone-video walk. The cost is time: walking around and taking two thousand photos takes a lot longer than filming a loop.

Does the sharpening network invent detail?

It is trained to undo blur, noise and compression that I added myself to downscaled copies of the same photos, with a plain pixel loss. That kind of network removes damage it has seen; it has no reason to make up new texture. In the 100% crops it makes mortar and stone grain crisper, and I checked the photos one by one before using them.

What does the AI layer do to the splat?

On every frame it looks at what the splat renderer draws, together with where the camera is and where it is pointing, and adds a correction that moves the picture towards what the real photos looked like from around there. Here that is mostly colour and contrast: darker grass, richer brick, a calmer surface. It is a correction on top of the render, so it can nudge the picture, not redraw it.

Do I need a special browser?

The AI layer needs WebGPU, which today means Chrome or Edge on a desktop computer with a reasonably recent graphics card. Without WebGPU the page still works and shows the plain splat. I have tested it on a desktop with a GeForce GTX 1070 from 2016, not on phones.

How big is the download?

The 3D scene is 48 MB and the neural network is 1 MB. Nothing loads until you press Start, and it takes a few seconds on fast Wi-Fi and longer on mobile data.

Want a place or product people can walk around online?

I build 3D visualization and interactive web 3D, from classic renders to Gaussian splats made from your own photos or video. Get in touch if you want to see what your space, building or product could look like.

Get in touch