<feed xmlns='http://www.w3.org/2005/Atom'>
<title>drift/tools, branch main</title>
<subtitle>maps for a solarpunk future | odoo hackathon</subtitle>
<id>https://git.nsrddyn.com/drift/atom/tools?h=main</id>
<link rel='self' href='https://git.nsrddyn.com/drift/atom/tools?h=main'/>
<link rel='alternate' type='text/html' href='https://git.nsrddyn.com/drift/'/>
<updated>2026-11-21T20:03:11Z</updated>
<entry>
<title>belgium mask (everything stays over Belgium), globe view of the world, merged with street view</title>
<updated>2026-11-21T20:03:11Z</updated>
<author>
<name>nasr</name>
<email>nsrddyn@gmail.com</email>
</author>
<published>2026-11-21T20:03:11Z</published>
<link rel='alternate' type='text/html' href='https://git.nsrddyn.com/drift/commit/?id=7be15072a2141aa8713fdd8f440236a1abfe1ded'/>
<id>urn:sha1:7be15072a2141aa8713fdd8f440236a1abfe1ded</id>
<content type='text'>
</content>
</entry>
<entry>
<title>3D buildings around the cities, tree clumps in the parks and woods, clouds from the forecast</title>
<updated>2026-11-21T17:47:09Z</updated>
<author>
<name>Lars Cowe</name>
<email>120098061+LarsCowe@users.noreply.github.com</email>
</author>
<published>2026-11-21T17:47:09Z</published>
<link rel='alternate' type='text/html' href='https://git.nsrddyn.com/drift/commit/?id=1991f6509bb7f18a5ee6c28633d8b8c8f4d99be1'/>
<id>urn:sha1:1991f6509bb7f18a5ee6c28633d8b8c8f4d99be1</id>
<content type='text'>
Buildings: tools/extract_buildings.sh takes the OSM buildings within 1 km of the 15 cities, tools/bake_buildings
simplifies them (1.5 m), drops the ones under 60 m2 and writes assets/buildings.bin.gz (70582 buildings,
896 KB). One mesh per city with walls and a flat roof, height from the OSM height or levels tag, lower towards
the edge of the circle and 1.6x taller than real so they read in the chase view. They grow out of the ground
while zooming in.

Trees: low six-sided crowns placed by a hash in the park and wood triangles within 14 km of the camera,
70 per km2, rebuilt when the camera moved 4 km. Same shader as the buildings, color tree in both palettes.

Clouds: puff spots on a 1.6 km lattice, clumped by value noise and thinned to the forecast cloud cover,
650-1100 m up, drifting with the top layer wind. Soft sprites in screen space with a shadow on the ground,
fading in with the zoom and out when the camera gets close.
</content>
</entry>
<entry>
<title>realistic car: Car Concept model (CC BY 4.0) baked by tools/bake_car, lit shader with paint, glass and metal, wheels fold into thrusters; other cars from signed presence gossip</title>
<updated>2026-11-21T17:16:39Z</updated>
<author>
<name>Lars Cowe</name>
<email>120098061+LarsCowe@users.noreply.github.com</email>
</author>
<published>2026-11-21T17:16:39Z</published>
<link rel='alternate' type='text/html' href='https://git.nsrddyn.com/drift/commit/?id=d05795cd5b6373818fd184699964c7ec062c5ebc'/>
<id>urn:sha1:d05795cd5b6373818fd184699964c7ec062c5ebc</id>
<content type='text'>
</content>
</entry>
<entry>
<title>bake a main road graph with junction nodes and directed edges</title>
<updated>2026-11-21T16:05:41Z</updated>
<author>
<name>Lars Cowe</name>
<email>120098061+LarsCowe@users.noreply.github.com</email>
</author>
<published>2026-11-21T16:05:41Z</published>
<link rel='alternate' type='text/html' href='https://git.nsrddyn.com/drift/commit/?id=f688457367f5b836eab05ba2b01f2858e5aea117'/>
<id>urn:sha1:f688457367f5b836eab05ba2b01f2858e5aea117</id>
<content type='text'>
</content>
</entry>
<entry>
<title>warp Copernicus DEM to 250 m cells, bake heightmap and hillshade blocks</title>
<updated>2026-11-21T16:03:07Z</updated>
<author>
<name>Lars Cowe</name>
<email>120098061+LarsCowe@users.noreply.github.com</email>
</author>
<published>2026-11-21T16:03:07Z</published>
<link rel='alternate' type='text/html' href='https://git.nsrddyn.com/drift/commit/?id=ecdd8c3e186f72d2765b34c8011471fdf8f53ee2'/>
<id>urn:sha1:ecdd8c3e186f72d2765b34c8011471fdf8f53ee2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>bake land use areas as triangles</title>
<updated>2026-11-21T16:01:18Z</updated>
<author>
<name>Lars Cowe</name>
<email>120098061+LarsCowe@users.noreply.github.com</email>
</author>
<published>2026-11-21T16:01:18Z</published>
<link rel='alternate' type='text/html' href='https://git.nsrddyn.com/drift/commit/?id=0370e3449fcb28b2fafa475d178caff326bd2174'/>
<id>urn:sha1:0370e3449fcb28b2fafa475d178caff326bd2174</id>
<content type='text'>
</content>
</entry>
<entry>
<title>bake a 10 km name index, add map_nearest_name</title>
<updated>2026-11-21T15:52:11Z</updated>
<author>
<name>Lars Cowe</name>
<email>120098061+LarsCowe@users.noreply.github.com</email>
</author>
<published>2026-11-21T15:52:11Z</published>
<link rel='alternate' type='text/html' href='https://git.nsrddyn.com/drift/commit/?id=4af82c976f43858eb44a5524d3d8182646a0f918'/>
<id>urn:sha1:4af82c976f43858eb44a5524d3d8182646a0f918</id>
<content type='text'>
</content>
</entry>
<entry>
<title>bake road and river names and road refs into belgium.bin</title>
<updated>2026-11-21T15:48:42Z</updated>
<author>
<name>Lars Cowe</name>
<email>120098061+LarsCowe@users.noreply.github.com</email>
</author>
<published>2026-11-21T15:48:42Z</published>
<link rel='alternate' type='text/html' href='https://git.nsrddyn.com/drift/commit/?id=b8bd01a9e264315676b4da21bfc9cd91b57f2378'/>
<id>urn:sha1:b8bd01a9e264315676b4da21bfc9cd91b57f2378</id>
<content type='text'>
</content>
</entry>
<entry>
<title>merge dev into main (#74)</title>
<updated>2026-11-21T15:16:20Z</updated>
<author>
<name>Abdellah El Morabit</name>
<email>nsrddyn@gmail.com</email>
</author>
<published>2026-11-21T15:16:20Z</published>
<link rel='alternate' type='text/html' href='https://git.nsrddyn.com/drift/commit/?id=6c37a9848fc16d6b0d892d12f363a6d21d3e058b'/>
<id>urn:sha1:6c37a9848fc16d6b0d892d12f363a6d21d3e058b</id>
<content type='text'>
* claim cost per mode in todo.txt

* add cost per mode: fastest (time), greenest (energy), calmest (time x gusts)

Edge cost per spec with per-mode airspeed, wind and gust cached per node for the forecast hour,
admissible estimate from the strongest wind and calmest gust of the hour. Windy test snapshot
checks that each mode picks its own layers.

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
Claude-Session: https://claude.ai/code/session_013bYve58HnqwnLceqpZHAeh

* claim ground speed in todo.txt

* add ground speed: tailwind + sqrt(v^2 - crosswind^2), +6 m/s retry, 1.5 m/s floor

Replaces the airspeed + tailwind placeholder in edge_cost with the spec rule. The A* estimate adds a
bound for edges flown at the boosted airspeed, only when the wind can trigger the retry, so calm
routes are unchanged. headwind.snap checks that the retry, the floor and the crosswind limit each
decide a route. windy_routes.expected regenerated: greenest moves its diagonals to calm 550 m.

* claim energy in todo.txt

* add energy model: solar yield from cloud cover, climb and descent energy, battery constants

Greenest edges now cost (P(v, g) - S(c)) dt / 3600 + 0.25 g^2 km, vertical edges climb_kwh + 0.02
(0.12 kWh per 100 m up, 0.04 down). Cloud cover is cached per cell next to the wind cache, the A*
estimate takes the clearest sky of the hour so it stays a lower bound. cloudy.snap checks that
greenest flies around clouds and fastest does not. windy and headwind greenest expected regenerated:
the sun makes flight time cheaper next to the gust term, so greenest leaves the gusty 800 m at x 149
instead of 158 km and the headwind zigzag shifts.

* claim ground speed in todo.txt

* add ground speed: tailwind + sqrt(v^2 - crosswind^2), +6 m/s retry, 1.5 m/s floor

Replaces the airspeed + tailwind placeholder in edge_cost with the spec rule. The A* estimate adds a
bound for edges flown at the boosted airspeed, only when the wind can trigger the retry, so calm
routes are unchanged. headwind.snap checks that the retry, the floor and the crosswind limit each
decide a route. windy_routes.expected regenerated: greenest moves its diagonals to calm 550 m.

* todo: carpool network peer to peer, relay items replaced (#41, #42, #43)

* draw the OpenStreetMap credit in Roboto, embed the font with its license

* add tools/download_dem.sh: Copernicus GLO-90 tiles with pinned checksums

* claim path cleanup in todo.txt

* todo: claim expanded-node order

* record the A* expanded-node order in grid.expanded for the scan animation

* format test/main.odin

* test: mark the no-fly test zones as made-up

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;

* start the ship on the Brussels tower

* claim user-reported gust zones

* add user-reported gust zones, route around them

* draw the map as one static mesh, built once: draw 8.6 ms -&gt; 0.55 ms

* day / night palette, T toggles, every drawn color comes from it

* labels: flat array per frame, drop off-screen and overlapping names, one draw pass

* add path cleanup: string pulling, tower ramps, Chaikin, 250 m resample, slope limit, terrain clearance

* regenerate expected routes for the smoothed paths

* wind particles: 600, SoA, one update loop, drawn as one mesh with the map line shader

* immediate mode UI: ui_button, toolbar for mode, sim speed and theme

* add bounded message store: dedupe by id, expiry, author and total cap, append-only file

msg_read returns the reason instead of logging, so network threads can use it.

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;

* add peer sync: serve and sync threads, ids since T, missing messages both ways

net_dial: non-blocking connect with a timeout that checks the stop flag, so a dead peer
never holds up a hot reload.

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;

* add peer list: seeds from config, learn peers from peers and from dialers, forget dead ones

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;

* add headless node: drift --headless --node [--port n], store and sync without a window

A store file cut off mid-append moves to .bad and the store starts empty, peers resend.

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;

* add weather snapshots between peers: fetch by sha256 for live offers, bounded snapshot dir

Snapshot and snapshot_check carried over from #22, one check for disk and network.

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;

* add trip key exchange and encrypted live positions through peers (redo of #25)

Message format v2: x25519 keys in Request and Accept. Nodes keep the latest live packet per
trip and direction in memory and cannot read it.

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;

* claim route bench worst case in todo.txt

* speed up the route worst case: per-direction estimate, no division per neighbour

The A* estimate bounds the cost per km separately for each grid direction from the strongest
tailwind along it, combined into one lower bound per 45 degree sector (LP duality). The loop
precomputes node steps, unit vectors and lengths per direction. Same cheapest costs as Dijkstra;
windy_routes.expected picks other equal-cost diagonals.

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
Claude-Session: https://claude.ai/code/session_013bYve58HnqwnLceqpZHAeh

* palette = design token table, night is the default theme, palette(w)

* map colors from the design: land, land use, water, buildings, roads, routes, sky per theme

* fonts: Figtree, Roboto, Roboto Mono embedded, rasterized per size, ui_text

* todo: claim more streets (#67)

* feat: arrow keys and PgUp / PgDn as controls

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;

* todo: link the PR

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;

* feat: airship model and drawing on the flat map

Low-poly airship from the design doc, built once at startup, drawn at
the ship position through an orthographic Camera3D, 80 px long, with
shadow, bank in turns and spinning props. Replaces the red triangle.

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;

* fix: build the airship only when a window exists

Co-Authored-By: Claude Sonnet 5.5 &lt;noreply@anthropic.com&gt;

* bake trunk, primary, secondary and tertiary roads, join road pieces (#67)

* notes: fonts and icons allowed (#64)

* bake roads from gzipped geojson, keep tertiary, clip lines to the map (#71 #72 #73)

---------

Co-authored-by: Claude &lt;noreply@anthropic.com&gt;
Co-authored-by: Lars &lt;120098061+LarsCowe@users.noreply.github.com&gt;
Co-authored-by: DarioD &lt;79237412+DarioDML@users.noreply.github.com&gt;
Co-authored-by: AndreiMikha &lt;andrei.mikhaylov00500@gmail.com&gt;</content>
</entry>
<entry>
<title>debug tooling: configs, hubs, profiler, headless, log / dump, test, bench (#9)</title>
<updated>2026-11-21T10:00:05Z</updated>
<author>
<name>Abdellah El Morabit</name>
<email>nsrddyn@gmail.com</email>
</author>
<published>2026-11-21T10:00:05Z</published>
<link rel='alternate' type='text/html' href='https://git.nsrddyn.com/drift/commit/?id=5c6c06336fa83e6c2c34476cadc6a3298e143a57'/>
<id>urn:sha1:5c6c06336fa83e6c2c34476cadc6a3298e143a57</id>
<content type='text'>
* add DRIFT_DEBUG / DRIFT_PROFILE configs and their -define in compile.sh / .bat

* bake hubs into belgium.bin (version 2), fixed hub array in Map

* add profiler blocks and debug overlay with 120 frame graph

* add headless mode with snapshot loading and a route input file

* add logf with system and tick, state dump on F5 and --dump

* add test program: fixed snapshots and inputs compared to stored routes

* add bench program with min / avg / max per system and budgets

* record debug build time after the debug tooling

* remove the pull request size check</content>
</entry>
</feed>
