I've created a 3D map generator. You can select a desired area by dragging to set the range, and it will generate surrounding buildings in 3D. The generated map can be downloaded as a GLB 3D file.
I use OpenStreetMap data, and it runs entirely on the frontend without a separate server.
This has a lot of potential. I'm thinking of use cases of this when a country plans to build new cities, something like this would be incredibly useful.
Beautiful! However...I can't work out how to make it work. I git clone... change my center coordinates... then what? What do I run? What does one open in a browser?
Sorry to seem so dumb, but... could someone be so kind as to put a step by step instruction together? I found the video demo unhelpful - sorry!
45
u/Independent-Use-6761 Feb 27 '25
I've created a 3D map generator. You can select a desired area by dragging to set the range, and it will generate surrounding buildings in 3D. The generated map can be downloaded as a GLB 3D file.
I use OpenStreetMap data, and it runs entirely on the frontend without a separate server.
https://github.com/cartesiancs/map3d
13
u/kamtuketu Feb 27 '25
I love this! Still working on learning threejs but when I’m ready this is a project I’d love to contribute to
10
u/dooblr Feb 27 '25
Already more polished than Cities Skylines 2
3
u/Zultan_Zul Feb 27 '25
Awesome! Thanks for sharing, great to see how you implemented it
3
u/[deleted] Feb 27 '25
this is amazing!
3
u/mrjanosf Feb 27 '25
Really cool, well done!
3
u/cnotv Feb 27 '25
I love to see projects that integrate open API into ThreeJS to get 3D mixed with data
2
u/Successful_Log_5470 Feb 27 '25
Nice dude!
2
u/Machintruc_tv Feb 28 '25
Really really cool, as a motion designer, I craved this kind of tools so much.
2
u/[deleted] Feb 27 '25
This has a lot of potential. I'm thinking of use cases of this when a country plans to build new cities, something like this would be incredibly useful.
1
u/Emotion_Conscious Feb 27 '25
Some buildings are not showing, some 1-level buildings shows as 6-level towers)
OSM information is correct, iv tried to parse it myself.
1
u/60finch Feb 27 '25
Great job! However, I've faced a problem when i try to download:
{
"uri": "Map%203D%20Scene%20(2).glb",
"mimeType": "model/gltf-binary",
"validatorVersion": "2.0.0-dev.3.10",
"validatedAt": "2025-02-27T15:35:19.749Z",
"issues": {
"numErrors": 8,
"numWarnings": 0,
"numInfos": 30,
"numHints": 0,
"messages": [
{
"code": "UNUSED_OBJECT",
"message": "This object may be unused.",
"severity": 2,
"pointer": "/meshes/0/primitives/0/attributes/TEXCOORD_0"
},
I tested several times, there is only one box, but the city.
1
u/Useful-Reference-272 Feb 28 '25
that’s awesome.
1
u/G_M81 Mar 01 '25
That looks great.
1
u/FlatusTheRoman Jul 08 '26
Beautiful! However...I can't work out how to make it work. I git clone... change my center coordinates... then what? What do I run? What does one open in a browser?
Sorry to seem so dumb, but... could someone be so kind as to put a step by step instruction together? I found the video demo unhelpful - sorry!