Godot Map Loader

An asset by Toshiwo
The page banner background of a mountain and forest
Godot Map Loader thumbnail image
Godot Map Loader thumbnail image
Godot Map Loader thumbnail image
Godot Map Loader hero image

Quick Information

0 ratings
Godot Map Loader icon image
Toshiwo
Godot Map Loader

Loads maps from Mapbox and renders it in 3D.The module tries to represent that data as accurate as possible and being as fast as possible, being this way ideal to load dynamically the terrain (imagine flight simulator that can load terrain from anywhere in the world as you go).TRY IT YOURSELFCreate a scene with directional light, a camera, etc. Then add a TerrainLoader node. And then in the node's properties set latitude, longitude and zoom level (It's the Cordinates setting, or Tilecoords if you want to enter directly the tile X/Y/Z). You can load multiple tiles by just changing the coordinates, usually, once entered the first Lat/Lon/Zoom you may want to just change the tile, so that you have contiguous tiles. The "Arrange Tiles" checkbox will enable automatic alignment of the tiles, based on their tile position.MAPBOXYou will need to open an account to Mapbox and paste the API key in the settings of the node.It is also required from Mapbox that you use their watermark, see the main scene example or look here: https://www.mapbox.com/help/how-attribution-works/FUTUREI am working on a totally new version of this add-on, but it is not ready yet.

Supported Engine Version
3.1
Version String
0.8.32
License Version
MIT
Support Level
community
Modified Date
5 years ago
Git URL
Issue URL

GodotMapLoader

Loads maps from MapBox and renders it in 3D README Mount Fuji area README Himalaya

This is still a work in progress, some features need improvement (and help is welcome).

The module tries to represent that data as accurate as possible and being as fast as possible, being this way ideal to load dynamically the terrain (imagine flight simulator that can load terrain from anywhere in the world as you go).

Try it yourself

Fisrt thing fisrt (after you downloaded the addon files in the "addon" folder, or added it from the Godot Asset Library) you have to activate the addon in the Project Settings page.

README Demo usage

Create a scene with directional light, a camera, etc. Then add a TerrainLoader node. And then in the node's properties set latitude, longitude and zoom level (It's the Cordinates setting, or Tilecoords if you want to enter directly the tile X/Y/Z). You can load multiple tiles by just changing the coordinates, usually, once entered the first Lat/Lon/Zoom you may want to just change the tile, so that you have contiguous tiles. The "Arrange Tiles" checkbox will enable automatic alignment of the tiles, based on their tile position.

Some coordinate you can use to test the script

IGUAZU FALLS lat: -25.695277777778 lon: -54.436666666667

FLORENCE - lat: 43.771388888889 lon: 11.254166666667

COTOPAXI lat: -0.680556, lon: -78.437778

MOUNT FUJI lat: 35.36 lon: 138.73

HIMALAYA lat: 27.988056, lon: 86.925278

Mapbox Attribution

As this mdule is using Mapbox services, you should follow the guidelines mentioned here: How attribution works, if you plan to use the maps publicly. You can see an example in the main scene.

TODOs

Mesh dimensions should adapt so that lower zoom levels will result in bigger meshes, a rudimental LOD system.

The earth curvature at low zoom levels (up to 6 but should be less probably), is not rendering correctly, there should be some precision error, or I am misunderstanding someting about tile/pixel to latitute conversion.

Mesh size is still too big (approx 25MB per tile generated), need some logic to skip unnecessary vertices (It's almos implemented, but needs a better logic).

Dinamically generated normal maps would come handy too, especially at low zooms (approx 1 to 4), as altitudes are irrelevant, but still at certain light inclinations it should project some sort of shadows.

Loads maps from Mapbox and renders it in 3D.
The module tries to represent that data as accurate as possible and being as fast as possible, being this way ideal to load dynamically the terrain (imagine flight simulator that can load terrain from anywhere in the world as you go).

TRY IT YOURSELF
Create a scene with directional light, a camera, etc. Then add a TerrainLoader node. And then in the node's properties set latitude, longitude and zoom level (It's the Cordinates setting, or Tilecoords if you want to enter directly the tile X/Y/Z). You can load multiple tiles by just changing the coordinates, usually, once entered the first Lat/Lon/Zoom you may want to just change the tile, so that you have contiguous tiles. The "Arrange Tiles" checkbox will enable automatic alignment of the tiles, based on their tile position.

MAPBOX
You will need to open an account to Mapbox and paste the API key in the settings of the node.
It is also required from Mapbox that you use their watermark, see the main scene example or look here: https://www.mapbox.com/help/how-attribution-works/

FUTURE
I am working on a totally new version of this add-on, but it is not ready yet.

Reviews

0 ratings

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

0 ratings
Godot Map Loader icon image
Toshiwo
Godot Map Loader

Loads maps from Mapbox and renders it in 3D.The module tries to represent that data as accurate as possible and being as fast as possible, being this way ideal to load dynamically the terrain (imagine flight simulator that can load terrain from anywhere in the world as you go).TRY IT YOURSELFCreate a scene with directional light, a camera, etc. Then add a TerrainLoader node. And then in the node's properties set latitude, longitude and zoom level (It's the Cordinates setting, or Tilecoords if you want to enter directly the tile X/Y/Z). You can load multiple tiles by just changing the coordinates, usually, once entered the first Lat/Lon/Zoom you may want to just change the tile, so that you have contiguous tiles. The "Arrange Tiles" checkbox will enable automatic alignment of the tiles, based on their tile position.MAPBOXYou will need to open an account to Mapbox and paste the API key in the settings of the node.It is also required from Mapbox that you use their watermark, see the main scene example or look here: https://www.mapbox.com/help/how-attribution-works/FUTUREI am working on a totally new version of this add-on, but it is not ready yet.

Supported Engine Version
3.1
Version String
0.8.32
License Version
MIT
Support Level
community
Modified Date
5 years ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers