Why do the drops look like ink?
The first rain had drops, merging and running, but the drops looked like ink. Putting real rain photographs beside it gave seven physical causes, and the first three carry most of the difference.
Rain is the effect I most wanted, and the first version had all the parts: drops, merging, running. On 1 October it still looked wrong in a way I could see and couldn't explain. The drops looked like ink, which pointed at colour and transparency.
So I put real rain photographs beside it and wrote down the differences, most important first. The system design from 2 October lists seven causes.
The first three carry most of it
A real drop is a clear lens. It holds a sharp, upside-down picture of what is behind it. Ours filled every drop with the average colour of half the photograph, a muddy blob.
Water doesn't dye. A drop passes about 94% of the light. Ours were tinted by the pane, like ink.
Lamps survive as sparkles. In a real photograph a street lamp is hundreds of times brighter than its surroundings, so it survives shrinking as a bright point in every drop. Ours topped out at white, so shrinking it left murk.
Checking the optics again
Once those causes were fixed, I checked the refraction, shadow, highlights and reflections of the drops a second time. The rest of the system design covers that check, including a reference scene built in a path tracer to compare the drops against.
The whole story is on the Water, rain and wind page.
Sources and notes (8)
- Garg & Nayar 2007, appearance of raindrops — a drop passes about 94% of light and shows a wide, inverted view
- You et al. 2016, raindrops on windshields — drops on glass shrink the scene
- Tatarchuk & Isidoro 2006, rain rendering — a game-grade rain-on-glass method
- raindrop-fx (SardineFish) — the open-source drop code the water began from
- Codrops RainEffect — an earlier web rain-on-glass effect
- Rain research, round 3 — the notes this was written from
- Rain system design — the notes this was written from; also records his reference photos of rain on clear glass, as recorded in the repo
- Water drops research — the notes this was written from
Water, rain & windAll 11 parts →
