Skip to content

Ability to add custom hightmap data #152

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
NeutraleNull opened this issue Sep 24, 2023 · 4 comments
Open

Ability to add custom hightmap data #152

NeutraleNull opened this issue Sep 24, 2023 · 4 comments
Labels
enhancement New feature or request GRM Core Core logic, common to all game engines

Comments

@NeutraleNull
Copy link

I'd like to supply my own hightmap data, that is much more detailed than the 30m/px resolution data of SRTM.
If you can supply some guiding i can try to add it myself but i am not familiar with the codebase but have a solid understanding of C# and GIS data.

@jetelain
Copy link
Owner

Hi,
To work with SRTM/AW3D data I've built a specific toolkit : https://github.com/jetelain/mapkit / git submodule mapkit
It's able to read SRTM and GeoTIFF file format. GRM needs a "mapkit" compatible index file to fetch the data.
The index list the data cell with coordinates, pixel format (IsPoint or IsArea) and file location.
DemUtility should be able to process any GeoTIFF source to build a such index file, but it only have been tested against AW3D 30.
Then the location to the index will have to be changed, it's hard coded here : https://github.com/jetelain/ArmaRealMap/blob/master/GameRealisticMap/ElevationModel/RawElevationBuilder.cs#L90

To sum-up, with GeoTIFF files :

  1. Create an index file with DemUtility
  2. Change the location to index file in RawElevationBuilder (I will make a change to make it configurable)

With other file format:

  1. Convert file to something that mapkit can handle / or change mapkit to support
  2. Create an index file with DemUtility
  3. Change the location to index file in RawElevationBuilder (I will make a change to make it configurable)

@jetelain jetelain added enhancement New feature or request GRM Core Core logic, common to all game engines labels Sep 24, 2023
@jetelain
Copy link
Owner

It supports also ESRI ASCII files.

@NeutraleNull
Copy link
Author

Many thanks, i will take a look at it.

@jetelain
Copy link
Owner

jetelain commented Jun 9, 2024

Hi,
As of beta 10 you can set custom mapkit index location in the application settings.
You can also export/import heightmap in ESRI ASCII file format for a single generated map.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request GRM Core Core logic, common to all game engines
Projects
None yet
Development

No branches or pull requests

2 participants