jetelain / ArmaRealMap

Tools to generate realistic Arma3 terrain from OpenStreeMap data in an highly automated process.
83 stars 7 forks source link

Ability to add custom hightmap data #152

Open NeutraleNull opened 9 months ago

NeutraleNull commented 9 months ago

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 commented 9 months ago

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 commented 9 months ago

It supports also ESRI ASCII files.

NeutraleNull commented 9 months ago

Many thanks, i will take a look at it.

jetelain commented 1 month ago

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.