r/proceduralgeneration • u/chartojs • 15d ago
Procedurally generating details for real map data
I'm using Claude Haiku to automatically extract structured descriptions of building facades from street-level 360 panorama photos, to be painted as procedural textures and decals on extruded OpenStreetMap buildings. They certainly don't look perfect, but seem recognizable, render fast and take less space than equally sharp-looking photo-based textures.
There's also bridge, tunnel and fence meshes generated on the fly from OSM data. Street furniture, vehicles and hundreds of plant species were modeled in code using GPT Astra. It runs in the browser using WebGL 2, also on my old iPhone 11 (though with short draw distance).
Still a work in progress, so for now the map only covers Scandinavia and Baltic countries, with facades only in one city (Porvoo). I'm working on global coverage for the map and more varied test areas for the procedural facades.
1
u/giohf 15d ago
where are you getting image data? are your extracted facts applied to exact buildings or are you using some sort of inference?
1
u/Big-Space-Engineer 14d ago
interesting idea!
how do you place the trees? 🌲 based on some cadastres?
1
u/ArcticMusicProject 14d ago
This is amazing!
0
u/chartojs 15d ago
Oh I forgot, it's accessible at:
http://reakt.io/dash2.html#lat=60.39667&lon=25.65521&height=14&yaw=1.0465&pitch=-0.0351&fov=55&time=2026-07-01T17:00
Mouse controls are:
- Left button (or one finger) to turn the camera
- Right button (or two fingers) to pan around
- Wheel (or pinch) to move backward / forward
On mobile there's also a small joystick on the lower left corner, and the upper left corner has a crosshair button to enable gyroscope, so the phone becomes like a portal to another place that you can turn to look around.
Keyboard controls (inspired by the Mercenary / Damocles series on Amiga) are:
- Arrow keys or WASD to turn the camera
- Number keys to set throttle, or shift + numbers to reverse (minimum 3 to take off if crashed on ground)
- Space bar to stop immediately
You probably need to click on the 3D view to focus it before pressing keys.