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.
The short version
- Source2,072 photos on a Nikon D3500, taken on 24 November 2026. RealityScan placed 1,808 of them
- Photo clean-upA sharpening network trained on the same photos, run on all 2,072 into a separate folder. The originals were never touched
- The splatTrained in Brush on a GeForce GTX 1070 from 2016, 130,000 steps, 2.1 million splats. Floaters and sky streaks removed, sky painted in. 1.5 million splats (48 MB) on the web
- Training pairs1,627 pairs. The splat rendered in a browser from each photo position, matched to the photo
- The networkA UNet with 256,000 parameters that also knows where the camera is. The file is 1 MB
- ScoreOn 60 held-out photos: 22.8 dB against 21.2 dB for the plain render. Higher means closer to the real photo
- SpeedAbout 47 fps at 960 by 640 in the browser, on the same GTX 1070
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.
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.
- Floaters. Small blobs hanging in mid-air. I checked every splat against the cameras: if many photos see straight through the spot where it sits, to something further away or to open sky, it should not be there. That removed 537 of them, plus 1,277 streaks in the sky.
- A black sky. RealityScan finds no points in the sky, so the splat had nothing there and tree tops stretched into the void. I put a dome of splats around the scene, and in the viewer a painted sky panorama made from the sky colours the splat did learn. The sky is painted, not captured.
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.
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.
What is not perfect
- Looking through openings. What is behind a window or a gap was usually photographed from the front only, at an angle, by a handful of photos. The splat fills it with soft blobs, and the network cannot fix missing data. The real fix is more photos through every opening.
- Up close to a wall it can make things worse. Walk right up to a wall where the splat turns into long stretched streaks, and the network brightens the streaks instead of fixing them. Step back and it behaves.
- The sky is painted. It is made from the colours the splat learned and filled in where no photo looked. It looks calm, but it is not the real sky.
- The gain is moderate. 1.6 dB on held-out photos. It makes the splat look more like the photos, it does not make it a photo.
- The test is flattering. The held-out photos sit between training photos on the same walk. They show the network is not memorising single images, not how it behaves far from where I stood.
- It needs WebGPU. Chrome or Edge on a desktop. Without it you get the plain splat. It is also 48 MB plus 1 MB to download.
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.