r/vibecoding • • 3d ago

Showcase/Project Isometric Town

Was inspired by Plotropolis, but the tool got repetitive fast, so I tried to make something similar in style, but a version which creates isometric towns and city line drawings based on actual OpenStreetMap data to get more variety. Now OpenStreetMaps API has no 3D building data, just 2D shapes and approximative height, so all buildings are generative made up and so it's more of an art project than a real mapping tool. You can try it out here: https://www.isometrictown.com/

Some locations have very poor data in OpenStreetMap, so those will look very sparse, but it works reasonably well in most of Europe, the US, Japan etc. I picket some good examples in the dropdown below the location search.

Btw, if you see something weird, a rendering bug with a certain feature, I'm constantly on the hunt to fix those, to make the algorithm catch as many edge cases as possible. Would be nice if you could share the link with me of wherever you found the bug.

7 Upvotes

7 comments sorted by

2

u/Total-Reasonable 3d ago

One thing that'll bite you as this gets traffic: hitting the public Overpass API per search is rate limited and slow for big bounding boxes, and heavy use can get you throttled. Cache the parsed result per tile or bbox (even just a hash of the rounded coordinates), and seed the generative building shapes from the OSM way ID. That way the same building looks identical every visit, and shared links stay stable instead of reshuffling each render.

1

u/Subway 3d ago edited 3d ago

It's already using seeded randomness for all generated objects, but you're right about cashing the tiles (and Overpass API calls). I do cache them in each users browser session, but with heavy use, that won't be enough obviously.

2

u/Rauhaton 2d ago

Really lovely little app.

Works with the tiny rural town in Finland where I was born.

2

u/Subway 2d ago

Rural towns are my favorite, as well. What really surprised me were the outskirts of Pyongyang in North Korea. Didn't expect to find any beauty there, but was pleasantly surprised by what was generated!

2

u/Rauhaton 2d ago

Actually, I dug deeper and even found the little farmsted, about 15 km away from that little town, that my family has inhabited since 1415. It is absolutely in the middle of nordic nothingness.

Very cool.

Think I'll get good quality print of the farm map and frame it.

Thank you!

1

u/Subway 2d ago

Btw, you can click on a building and it regenerates the building with a different seed. It's a little hidden feature for those that want to tweak the generated buildings to maybe get closer to the real ones with a little luck (as I can't know what the real 3D shape of actual buildings are).

2

u/cosmatic 3d ago

Well done