<feed xmlns='http://www.w3.org/2005/Atom'>
<title>drift/tools/bake_buildings/main.odin, branch main</title>
<subtitle>maps for a solarpunk future | odoo hackathon</subtitle>
<id>https://git.nsrddyn.com/drift/atom/tools/bake_buildings/main.odin?h=main</id>
<link rel='self' href='https://git.nsrddyn.com/drift/atom/tools/bake_buildings/main.odin?h=main'/>
<link rel='alternate' type='text/html' href='https://git.nsrddyn.com/drift/'/>
<updated>2026-11-21T17:47:09Z</updated>
<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>
</feed>
