Your browser sucks, JavaScript disabled! Gunnar's console needs JavaScript and WebAssembly. Git over SSH on port 2222 does not.

nordisk/facett

facett-map3d-flight/.nornir/daycycle-for-idiots.md

Time-of-day sun + weather — for idiots

The problem. Before this, the 3D world was frozen at noon. One flat, boring light, all day, forever. Real places don't look like that — the magic is dawn, golden sunsets, and night.

The fix. A little machine called DayCycle. You tell it three things:

  1. where you are (latitude — Sweden is 59.5),
  2. what day it is (0–365; midsummer is ~172),
  3. what time it is (0–24; 12 is noon).

…and it tells you exactly where the sun is and what colour everything should be.

What you see when you slide the clock:

Why the sunset is orange (the cool part): we don't paint it orange. The same air that makes the daytime sky blue also strips the blue out of the low evening sun — so it goes red by itself, using real physics we already had (atmos). Free realism.

Weather knob: flip overcast and the sky turns flat grey, the sun hides, and everything gets soft + even — a proper cloudy day.

Where to play with it: open the demo, find the Photoreal day-cycle panel, drag the hour slider, tick overcast. Watch the little sun/sky colour squares change.

That's it. Time of day now works.