Commit 987e3d5
committed
cockpit: north-up fix for all grid scenes + Havel white balance + /havel route
Three fixes from the operator's alignment check (Havel vs Google Maps):
1. NORTH-UP FIX (all ver-8/9 grid scenes — iceland, grand-canyon, havel — no
rebake). The bake stores z = (lat−lat0)·M (north = +z) while the default
aerial camera sits on the +z side (screen-up = −z), so every grid scene
rendered N–S MIRRORED against a real map. Caught on the Havel: the
Kölpinsee chain appeared SOUTH of the Müritz. The demgrid ground truth
verified correct — display-side only. Fix in decodeGrid: negate zrow at
read (positions + normals derive from the one table), emit the triangle
winding flipped ((a,d2,b)/(b,d2,e)) so faces keep pointing +y, negate the
concept-centroid z. Wire bytes + HHTL keys untouched.
2. WHITE BALANCE (operator: "the lighting is rather dull"). The ESRI imagery
over Mecklenburg is hazy — measured white point p98 = 171/166/145.
Bake-time per-channel p2→p98 stretch (→ 10..250) + saturation ×1.18 on the
demgrid rgb, then rebake: the corrected colour is sunk into the grid once
(the Diaprojektor model), not shader-guessed per frame. Havel asset
replaced (72.7 MB gz).
3. /havel FIRST-CLASS ROUTE (like /ice): main.tsx Route + pathScene alias →
garmin:havel + scene-menu alias so the dropdown shows it selected. First
attempt missed the top-level router (the path fell through to the AIWAR
cockpit) — caught by the headless shot.
Headless-verified on a 1.2M proxy: Müritz + Kölpinsee at NW (north-up ✓),
haze gone, /havel renders the terrain.
Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_012jEwwaT5JZ5x8qWvcnaMYC1 parent 3ce5898 commit 987e3d5
4 files changed
Lines changed: 32 additions & 4 deletions
File tree
- claude-notes/plans
- cockpit
- public
- src
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
56 | 72 | | |
57 | 73 | | |
58 | 74 | | |
| |||
Binary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
178 | 179 | | |
179 | 180 | | |
180 | 181 | | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
181 | 189 | | |
182 | 190 | | |
183 | 191 | | |
| |||
287 | 295 | | |
288 | 296 | | |
289 | 297 | | |
290 | | - | |
291 | | - | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
292 | 302 | | |
293 | 303 | | |
294 | 304 | | |
295 | 305 | | |
296 | 306 | | |
297 | 307 | | |
298 | 308 | | |
299 | | - | |
| 309 | + | |
300 | 310 | | |
301 | 311 | | |
302 | 312 | | |
| |||
1298 | 1308 | | |
1299 | 1309 | | |
1300 | 1310 | | |
1301 | | - | |
| 1311 | + | |
| 1312 | + | |
1302 | 1313 | | |
1303 | 1314 | | |
1304 | 1315 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| 122 | + | |
122 | 123 | | |
123 | 124 | | |
124 | 125 | | |
| |||
0 commit comments