Apex GP

Devlog

Wet roads in daylight: two days of fighting the reflections

Fifty-one commits on one problem - the rain looks right under floodlights and wrong under a grey sky. What the mirror tint, per-circuit substrate tone and tunnel masking had to change.

Fifty-one commits since Sunday night, and nearly all of them are one problem: the rain looks right at night and wrong in daylight.

That is my own fault. The wet road was tuned under floodlights, where a mirror-bright reflection reads as water. Put the same shader under a grey sky and the pools turn into sheets of grey plastic. The fix is not one number. Daylight water has to reflect the sky it is actually under, and that sky is different at Monte Carlo, Silverstone and Apex Park.

The reflection became an emission

Standing water now uses the planar mirror as an emission rather than a gloss pass, with a per-circuit wet substrate tone, so each track's wet road is measured against the one that looks right rather than against a single global value. Monte Carlo is the reference.

I did not trust my eye for that comparison. There is a scorer that measures each circuit's wet road against the night look and prints the distance, and a set of blind A/B sheets where the labels are hidden until after the judgement.

Two things bit me

The warm mirror tint was 6.8, 3.8, 3.0. On circuits with open sky in the reflection - Apex and Silverstone, where there is no building to reflect - that painted the road flat rust-brown. It is now 4.6, 3.8, 3.0, and the mobile path gets its own neutral tint, because a phone falls back to a flat reflection with no planar mirror at all.

The tunnel water popped. The shelter mask switched and the pools jumped with it, because global road wetness was being changed by the mask instead of held constant while the pools were masked locally. It now thins and thickens as you drive through.

The rest of the two days

The strategy view keeps its session clocks and minimap, tyre selection is allowed during a pit stop, held brake gives reverse without losing forward throttle, track limits are judged by whether a cut actually gained you time, and there is an in-game feedback form.

That went out as 0.11.5, after five test builds - vc68 to vc72 - each one gated and installed on a real phone.

Next: the daylight water on the two circuits that still miss, and a pass on how the wet line reads at speed rather than standing still.

← All devlog posts ยท RSS