Works on desktop and on phones. The desktop version downloads about 30 MB, and phones get a lighter 10 MB version automatically. Mouse and WASD to fly; on a phone, tilt to steer.
The bronze model is just off the Prešernov trg in Ljubljana. I wanted to see how many images I needed to create a good 3D model. It turned out I used too few of them. The tools are advanced, but you still need to take more shots, perhaps even orbit around it with video recording on and then extract the frames.

What a Gaussian splat is
A Gaussian splat (or 3D Gaussian Splatting, 3DGS) describes a scene not as a mesh of triangles but as a cloud of millions of small, soft, semi-transparent ellipsoids. Each one has a position, a size and orientation, a colour and an opacity. Rendered from any viewpoint and blended front to back, they add up to something that looks very much like a photograph. The ellipsoids aren’t modelled by hand; they are fitted to a set of ordinary photos by gradient descent, the way a neural network is trained, until renders from the photo positions match the photos.
This was my first one, and it shows. I’ve listed what went wrong at the end. The pipeline itself is short:
- take photos all around the object;
- recover where each photo was taken from (structure from motion);
- train the splat;
- clean it up and convert it to something a browser can load;
- write a viewer, which in my case turned into a small game.
Taking the photos
I took 51 photos with my phone, a Samsung Galaxy A54, walking around the model in under two minutes. Some photos show the whole table from a few metres away, so the reconstruction can tie everything together; most are closer, looking down at the streets from different sides, with plenty of overlap between neighbours. I didn’t use a tripod or any special app, just the normal camera at 4080 × 3060 pixels.

The phone saves HEIC files. A short Python script with pillow-heif converts them to JPEG, applies the EXIF rotation and scales them down to 1600 pixels on the long side. Full resolution would have made every later step slower, and for a first attempt I wanted fast iterations more than detail.
Finding the cameras with COLMAP
Training needs to know exactly where each photo was taken from and in which direction the camera was pointing. That comes from structure from motion: find distinctive points in every image, match them between images, and solve for the camera positions and 3D points that best explain all the matches. I used COLMAP through its Python bindings, pycolmap, in a script of about ten lines:
- SIFT feature extraction, with all photos sharing one camera (same phone, same lens) and the OPENCV lens model, which also estimates radial distortion;
- exhaustive matching: with only 51 photos, every pair can be compared;
- incremental mapping, which adds cameras one by one and refines everything with bundle adjustment;
- undistortion, which writes out straightened images for the trainer.
All 51 photos were registered in a single reconstruction, with 6,061 sparse 3D points and a mean reprojection error of 0.92 pixels. That’s a healthy result: each point lands, on average, less than a pixel from where it was seen.

Training the splat with PERF-GS
For training I used PERF-GS, an open-source 3DGS trainer from Electronic Arts. It is written in Python and Slang and runs on Vulkan, with no CUDA or PyTorch to install, and it is very fast. It opens a COLMAP scene directly.
I first ran a quick test at a quarter of the resolution (389 × 293) to check that everything was wired up, then the real run with the quality preset at full undistorted resolution (1559 × 1175):
- 3,500 optimisation steps on an RTX 3090, which took 53 seconds (about 66 steps a second);
- starting from the COLMAP points, the model grew to 2.24 million Gaussians while densifying, adding splats where the image error was high;
- a pruning pass then kept the 75% that contribute most to the images, leaving 1.68 million;
- the result is a 423 MB PLY file.
The 53 seconds are the training loop alone, without loading the photos and writing the result. Still, it was far less than I expected for something that looks like this.
From a 423 MB PLY to something a browser can load
The trainer’s PLY stores, for each Gaussian, its position, scale, rotation, opacity and 48 colour coefficients (spherical harmonics, which let the colour change with viewing angle). For the web I converted it to the compact .splat format used by many browser viewers: 32 bytes per Gaussian, with position and scale as floats, colour and opacity as four bytes, and rotation as four bytes.
The conversion script does a few more things along the way:
- Finds “up”. COLMAP’s coordinate system is arbitrary, so the model can come out tilted or upside down. I average the up-vector of all 51 cameras (people hold phones roughly upright) and rotate the scene so that it points along +Y.
- Finds the centre. I solve for the point closest to all 51 optical axes in the least-squares sense, which is roughly what I was looking at, and move it to the origin. The scale is set so that the median camera is one unit away.
- Drops view-dependent colour. Only the base colour is kept. This loses the shine of the bronze, but shrinks each Gaussian from about 250 bytes to 32.
- Drops what can’t be seen. Gaussians with almost zero opacity go, and so does everything outside a radius around the centre: the square, passers-by, buildings in the background.
The crop leaves 1.11 million Gaussians in 35 MB.
Removing the floaters
Every splat has “floaters”: blobs hanging in the air that help explain one or two photos but belong to nothing. Mine also had the stone plinth below the model and fog around the edges of the table.
To clean it up I treated the model as a volume. The script divides space into small cubes (0.006 units, about half a percent of the model’s width) and adds up the opacity of all the Gaussians in each cube. Cubes with enough opacity count as solid. Then it finds connected groups of solid cubes, keeps the largest group (the city itself), grows it by two cubes so that edges aren’t cut, and throws away every Gaussian outside. That removed 173,652 Gaussians and left 935,074, about 30 MB.


A lighter version for phones
Almost a million Gaussians is too much for most phones, both to download and to sort every frame. For phones I keep the 300,000 most important Gaussians, ranked by size times opacity, and make each survivor slightly bigger to cover the holes left by the rest. The file shrinks to 9.6 MB. It is blurrier up close, but the city still reads clearly. The viewer picks the version automatically, based on whether the device has a touch screen.
From viewer to game
My first viewer used the GaussianSplats3D library for three.js, which is the quickest way to look at a .splat file. Flying over the city made me want to do more than look at it, so I wrote my own renderer in plain WebGL2 and turned it into a small game, Maketa Strike: you fly over the model with a cannon and bombs and take it apart, one splat at a time.

A few details that made it work in a browser with no libraries:
- Sorting off the main thread. Semi-transparent splats have to be drawn in depth order, and the order changes whenever the camera moves. A Web Worker culls splats outside the view, quantises their depth to 16 bits and sorts them with a counting sort, which is linear in the number of splats. The page keeps rendering the previous order while a new one is computed.
- Splats as data in a texture. Each splat’s position, colour and 3D shape are packed into a GPU texture once at load time. A per-splat “effects” texture then holds the state of destroyed splats: when they were hit and in which direction they fly. The vertex shader moves them along a ballistic arc, makes them glow, char and fade, all on the GPU.
- Craters without searching a million splats. At load time I order the splats by ground position, in columns 0.01 units wide, so an explosion only has to look at the few columns under it. The same grid gives a height map, so bombs land on rooftops and the plane can’t fly through buildings.
What’s wrong with it
From the angle the photos were taken, the splat looks convincing. Move away from that angle and its flaws show.

- No low views. Every photo was taken from standing height, looking down. Street level, which is exactly where the game invites you to fly, was never photographed, so façades are smeared and the far edge of the model breaks up into specks.
- Castle Hill. The contour terraces are real, cast in the bronze, but the brushed, swirly look around them is not. Large smooth slopes with few distinctive features are hard for both COLMAP and the trainer.
- Bronze is shiny. Reflections and highlights move as you walk around a metal object. The trainer models some of that with view-dependent colour, which I then threw away to keep the file small. What’s left is a dull, greyish patina instead of the real warm bronze.
- Short training at reduced resolution. 3,500 steps on 1600-pixel images is a quick preset. Longer training on full-resolution photos would bring back finer detail.
Next time I’d take two or three times as many photos, including a ring of low, almost horizontal shots all around the table, prefer an overcast day for even light, and keep the full resolution.

Tools
- Photos: Samsung Galaxy A54, 51 HEIC images, converted with Pillow and
pillow-heif - Camera poses: COLMAP via
pycolmap - Training: PERF-GS, quality preset, on an NVIDIA RTX 3090
- Conversion, cleaning and decimation: short Python scripts with NumPy, SciPy and
plyfile - Viewer and game: hand-written WebGL2 and a Web Worker, no libraries
