← Ziding Zhang

A rainy street made of 210,000 blobs

A Gaussian splat renderer written from scratch in WebGL 2, a street corner placed splat by splat in code, and a pixel-and-grain film pass. Open your own .splat or .ply in it.

December 2, 2026 · Project · What is not yet established


The interactive for “A rainy street made of 210,000 blobs”, as it first appears. Open it here
A street corner at 2 a.m. made of about 210,000 soft blobs and nothing else. Drag to look around. On its own page

Open Rain Splats →

Everything in this picture is a soft-edged blob. There are no meshes and no texture files: the wall, the neon letters, the cat on the bench and each streak of rain are Gaussians, about 210,000 of them, placed by about 500 lines of code and drawn by a renderer with no libraries under it.

A coin laundry on a rainy night in chunky, grainy pixels: a cyan COIN LAUNDRY sign and a pink 24H sign over a striped awning, washers lit behind the window, a red vending machine and bicycle, a yellow ginkgo under a street lamp, a van passing, and the signs mirrored in the wet street.
The scene with its film pass on. Open it to orbit, change the grain and pixel size, or stop the rain.

I built it after seeing Eddie Lee’s rainy Los Angeles corner, done with hand-written Gaussian splatting and a retro film finish. Splats usually come from photographs: a training run fits millions of them to a real place (Kerbl et al., 2023). I wanted to know how far you get by writing them directly.

Further than I expected, because a Gaussian is a forgiving brush:

The same view at full resolution with grain, halation and dithering switched off. Individual soft splats are visible in the awning, the tree and the paving, and the wet street shows an upside-down copy of the signs.
The same frame with the film pass off. The reflection is a second copy of the scene, upside-down under a street that is partly transparent where the puddles are.

The renderer does four things each frame: sort every splat far-to-near in a worker, project each one’s 3D covariance to an ellipse on screen, blend them, and run one film shader over a picture a third the size (halation, a tone curve, grain at 12 frames a second, ordered dither). Light and shadow are computed once, when the scene is built.

It is also a tool. Open a .splat or .ply file and your own capture gets the same finish, and its own rain; the file stays in your browser.

This sits next to Night Stacks, another small world made from code, and the rainy alley in the lens bench, where the blur was computed and the scene was a photograph. Here it is the other way round.

Agent context: sources, method and working notes

How the pieces fit

  • renderer.js: WebGL 2 only. Each splat is 20 floats in an RGBA32F texture (position, six covariance terms, colour, opacity, a velocity and an animation mode). The vertex shader computes Σ′ = J W Σ Wᵀ Jᵀ, adds 0.3 px² so no splat is thinner than a pixel, scales opacity down to compensate, and sizes one instanced quad from the ellipse’s eigenvectors. Blending is back-to-front with premultiplied alpha into a half-float target.
  • sort-worker.js: a 16-bit counting sort on view depth, re-run every frame because rain, steam, leaves and the van move.
  • scene.js: samplers for quads, boxes, cylinders, ellipsoids, rods and canvas-rasterised text; nine point lights with inverse-square falloff plus a directional fill; shadows by ray tests against four boxes; reflections as a mirrored copy masked in the shader to where the view ray meets wet ground.
  • loader.js: the 32-byte .splat layout and binary little-endian 3DGS .ply (base colour only, up to 1.5 million splats).

Checked

  • Default view in a 1280×900 window: 212,417 splats at 381×216 internal resolution, 3.6 ms of drawing per frame (60 frames timed with a GPU read-back after each) on an Apple-silicon laptop. Sorting runs separately in the worker and was not timed.
  • Checked at 375 px wide: no horizontal overflow, and the camera steps back to keep the building in frame.
  • A generated 30,000-splat .splat sphere and a 20,000-splat .ply cone both load, frame themselves and render upright; a non-splat file gives a plain error message.
Close view of the laundry front with the film pass on: the cyan COIN LAUNDRY sign, the striped awning with a scalloped edge, six washers behind the window with one mid-cycle, an orange cat on a bench, a laundry basket, two potted plants, a red bicycle and the vending machine, all behind rain streaks.
Close up, even the cat is its own little cloud of about 800 splats.

Critique or advance this

  • Weakest premise: “no meshes” is true of the data, but boxes, cylinders and text outlines are still modelling, only sampled into splats. A scene with organic shapes would test whether writing Gaussians directly scales past a tidy diorama.
  • Extensions: relight the baked colours each frame so the van’s headlights and the neon flicker reach the street; add spherical-harmonic colour and a level-of-detail scheme so multi-million-splat captures stay fast.

Have an answer, a counterexample, or a story? See Talk to me for open questions and live trials.

Credits: Ziding Zhang with Claude (Fable 5.2), which wrote the renderer, scene and page. Prompted by Eddie Lee's rainy Los Angeles street corner in hand-written Gaussian splatting; this is a different scene and separate code. Projection maths from Kerbl et al. (2023); data layout after Kevin Kwok's antimatter15/splat.