User Tools

Site Tools


arma3:terrain:real-world-data-tutorial

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
arma3:terrain:real-world-data-tutorial [2017-10-02 16:08]
snakeman brand new re-written tutorial with images.
arma3:terrain:real-world-data-tutorial [2024-03-01 04:59] (current)
snakeman updated.
Line 1: Line 1:
 ====== ArmA 3 Real World Data Terrain Tutorial ====== ====== ArmA 3 Real World Data Terrain Tutorial ======
 +
 +**2024-03-01T04:​59:​00Z Update**
  
 **How to create ArmA 3 terrain using real world data tutorial.** **How to create ArmA 3 terrain using real world data tutorial.**
Line 5: Line 7:
 This tutorial assumes you have already experience making arma3 terrains, if you do not then please read [[arma3:​terrain:​ultimate-terrain-tutorial|PMC Ultimate Terrain Tutorial]] first. This tutorial assumes you have already experience making arma3 terrains, if you do not then please read [[arma3:​terrain:​ultimate-terrain-tutorial|PMC Ultimate Terrain Tutorial]] first.
  
-This tutorial uses web browser, global mapper, QGIS, terra incognita and imagemagick to get terrain source files into terrain builder.+This tutorial uses web browser, global mapper, QGIS, terra incognita and [[arma2:​texturing:​imagemagick|Imagemagick]] ​to get terrain source files into terrain builder
 + 
 +Important Note: Global Mapper is commercial software which costs like $500, **you cannot make ArmA 3 terrain of decent size with the TRIAL version.** If you do not have full / commercial version of global mapper I suggest you read Ross's QGIS real world data tutorial instead, QGIS is a free open source software.
  
  
Line 27: Line 31:
 Global mapper is damned sluggish when you browse the maps, thats why we used google/maps to browse our location first so we know excatly where we want to go. So you //can// to tweak some detail levels, this is not necessary but especially for beginner its so much nicer to browse with quicker global mapper. Global mapper is damned sluggish when you browse the maps, thats why we used google/maps to browse our location first so we know excatly where we want to go. So you //can// to tweak some detail levels, this is not necessary but especially for beginner its so much nicer to browse with quicker global mapper.
  
-{{ http://​pmc.editing.wiki/​images/​Global-Mapper-Online-Source-To-Download.png }}+{{ https://​pmc.editing.wiki/​images/​Global-Mapper-Online-Source-To-Download.png }}
  
 In display options box, use the detail level slider to bring it down / left about 0.25 or even lower if you want. Then click connect. In display options box, use the detail level slider to bring it down / left about 0.25 or even lower if you want. Then click connect.
Line 35: Line 39:
 Now you see the whole world map. Use Zoom icon (ALT-Z) which should be selected, then drag a very small box around the austria we checked out in google/​maps. Now you see the whole world map. Use Zoom icon (ALT-Z) which should be selected, then drag a very small box around the austria we checked out in google/​maps.
  
-{{ http://​pmc.editing.wiki/​images/​Global-Mapper-Zoom-Icon.png }}+{{ https://​pmc.editing.wiki/​images/​Global-Mapper-Zoom-Icon.png }}
  
-{{ http://​pmc.editing.wiki/​images/​Global-Mapper-Globe-Map-View.png }}+{{ https://​pmc.editing.wiki/​images/​Global-Mapper-Globe-Map-View.png }}
  
 You might have to zoom few times if you dont get it right the first time, its easy to zoom at wrong spot etc. You might have to zoom few times if you dont get it right the first time, its easy to zoom at wrong spot etc.
  
-{{ http://​pmc.editing.wiki/​images/​Global-Mapper-Zoomed-In.png }}+{{ https://​pmc.editing.wiki/​images/​Global-Mapper-Zoomed-In.png }}
  
 You can drag the map around with having the hand icon pan (ALT-G) selected and then just LMB hold and drag map around, mouse wheel zooms but be careful as the loading of new data is so damn sluggish (even on lower details). You can drag the map around with having the hand icon pan (ALT-G) selected and then just LMB hold and drag map around, mouse wheel zooms but be careful as the loading of new data is so damn sluggish (even on lower details).
Line 53: Line 57:
 Select from the projection dropdown UTM. Select from the projection dropdown UTM.
  
-{{ http://​pmc.editing.wiki/​images/​Global-Mapper-Configuration-Projection.png }}+{{ https://​pmc.editing.wiki/​images/​Global-Mapper-Configuration-Projection.png }}
  
 You notice that in austria global mapper offers UTM zone 33, this is fine (yes terrain builder uses UTM 31N but we'll deal with that later). You notice that in austria global mapper offers UTM zone 33, this is fine (yes terrain builder uses UTM 31N but we'll deal with that later).
Line 65: Line 69:
 Now your project is on UTM projection. Now your project is on UTM projection.
  
-{{ http://​pmc.editing.wiki/​images/​Global-Mapper-UTM-33N-Projection.png }}+{{ https://​pmc.editing.wiki/​images/​Global-Mapper-UTM-33N-Projection.png }}
  
  
Line 72: Line 76:
 Global mapper user created feature grid is the one that will be your terrain area. Click create grid icon on top menu bar (no hotkey, hoh). Global mapper user created feature grid is the one that will be your terrain area. Click create grid icon on top menu bar (no hotkey, hoh).
  
-{{ http://​pmc.editing.wiki/​images/​Global-Mapper-Create-Grid-Icon.png }}+{{ https://​pmc.editing.wiki/​images/​Global-Mapper-Create-Grid-Icon.png }}
  
 Now click somewhere on the map view and it brings up the grid setup dialog. Now click somewhere on the map view and it brings up the grid setup dialog.
  
-{{ http://​pmc.editing.wiki/​images/​Global-Mapper-Grid-Setup.png }}+{{ https://​pmc.editing.wiki/​images/​Global-Mapper-Grid-Setup.png }}
  
 Type in width / height values for your terrain size, type in 40960 which is 40km size for terrain. Type in width / height values for your terrain size, type in 40960 which is 40km size for terrain.
Line 86: Line 90:
 Now that the grid has been selected, you can move it with (CTRL-SHIFT-M),​ RMB -> move area feature or with main menu bar move selected features icon. Now that the grid has been selected, you can move it with (CTRL-SHIFT-M),​ RMB -> move area feature or with main menu bar move selected features icon.
  
-{{ http://​pmc.editing.wiki/​images/​Global-Mapper-Move-Selected-Features-Icon.png }}+{{ https://​pmc.editing.wiki/​images/​Global-Mapper-Move-Selected-Features-Icon.png }}
  
 Here I have moved the grid to location of my liking, also zoomed the map in a bit and panned it around bit more center. Here I have moved the grid to location of my liking, also zoomed the map in a bit and panned it around bit more center.
  
-{{ http://​pmc.editing.wiki/​images/​Global-Mapper-User-Created-Feature-Grid.png }}+{{ https://​pmc.editing.wiki/​images/​Global-Mapper-User-Created-Feature-Grid.png }}
  
 As the terrain location and grid is finalized, its time to save the project. I use filename "​Tut_Austria_40km"​ when saving. As the terrain location and grid is finalized, its time to save the project. I use filename "​Tut_Austria_40km"​ when saving.
Line 103: Line 107:
 Now on global mapper untick world street map layer (we dont need it right now), then click the globe button. Now on global mapper untick world street map layer (we dont need it right now), then click the globe button.
  
-{{ http://​pmc.editing.wiki/​images/​Global-Mapper-Connect-To-Online-Data-Icon.png }}+{{ https://​pmc.editing.wiki/​images/​Global-Mapper-Connect-To-Online-Data-Icon.png }}
  
 Select openstreetmap.org global street maps, make sure select area to download -> current screen bounds is selected, then click connect button. Note; you can again choose detail level but as we already are in pretty close zoom it wont be necessary. Select openstreetmap.org global street maps, make sure select area to download -> current screen bounds is selected, then click connect button. Note; you can again choose detail level but as we already are in pretty close zoom it wont be necessary.
  
-{{ http://​pmc.editing.wiki/​images/​Global-Mapper-Connect-To-Online-Data-OpenStreetMaps.png }}+{{ https://​pmc.editing.wiki/​images/​Global-Mapper-Connect-To-Online-Data-OpenStreetMaps.png }}
  
 Have digitizer tool selected. Have digitizer tool selected.
  
-{{ http://​pmc.editing.wiki/​images/​Global-Mapper-Digitizer-Tool-Icon.png }}+{{ https://​pmc.editing.wiki/​images/​Global-Mapper-Digitizer-Tool-Icon.png }}
  
 Then click somewhere outside the grid to unselect it. Then click somewhere outside the grid to unselect it.
Line 117: Line 121:
 Use terra incognita to zoom close enough to the global mapper area. It is very difficult as there is not automated way to align these two, you just have to use mk.1 eyeball to align them. Use terra incognita to zoom close enough to the global mapper area. It is very difficult as there is not automated way to align these two, you just have to use mk.1 eyeball to align them.
  
-{{ http://​pmc.editing.wiki/​images/​Terra-Incognita-Align-Map-View-To-Global-Mapper-Grid.png }}+{{ https://​pmc.editing.wiki/​images/​Terra-Incognita-Align-Map-View-To-Global-Mapper-Grid.png }}
  
 In terra incognita use selection -> rectangle selection, now you are in the box drawing mode. In terra incognita use selection -> rectangle selection, now you are in the box drawing mode.
Line 123: Line 127:
 Drag a box and then resize it by dragging the edges so it will be about 45 x 45 kilometers. Do not click on empty dark map location because that clears the selection. You can LMB drag the selection around. Drag a box and then resize it by dragging the edges so it will be about 45 x 45 kilometers. Do not click on empty dark map location because that clears the selection. You can LMB drag the selection around.
  
-{{ http://​pmc.editing.wiki/​images/​Terra-Incognita-Selected-Rectangle.png }}+{{ https://​pmc.editing.wiki/​images/​Terra-Incognita-Selected-Rectangle.png }}
  
 Then use selection -> rectangle selection again to disable the dragging. Then use selection -> rectangle selection again to disable the dragging.
Line 135: Line 139:
 Select map source -> esri arcgis -> esri arcgis, this is the arcgis world imagery data. Select map source -> esri arcgis -> esri arcgis, this is the arcgis world imagery data.
  
-{{ http://​pmc.editing.wiki/​images/​Terra-Incognita-ESRI-ArcGIS-World-Imagery-Source.png }}+{{ https://​pmc.editing.wiki/​images/​Terra-Incognita-ESRI-ArcGIS-World-Imagery-Source.png }}
  
 Now use zoom levels -> level 17. You can also center the map location as said above, but it doesnt matter, its just nice to see the red selection rectangle there heh. Now use zoom levels -> level 17. You can also center the map location as said above, but it doesnt matter, its just nice to see the red selection rectangle there heh.
  
-{{ http://​pmc.editing.wiki/​images/​Terra-Incognita-ESRI-ArcGIS-Zoom-Level-17.png }}+{{ https://​pmc.editing.wiki/​images/​Terra-Incognita-ESRI-ArcGIS-Zoom-Level-17.png }}
  
 Now you are ready to download, create directory like Tut_Austria_40km_arcgis_17_level and use file -> save map -> oziexplorer map. Browse to the dir you just created and save under Tut_Austria_40km_arcgis_17_level filename. Now you are ready to download, create directory like Tut_Austria_40km_arcgis_17_level and use file -> save map -> oziexplorer map. Browse to the dir you just created and save under Tut_Austria_40km_arcgis_17_level filename.
Line 145: Line 149:
 Terra incognita asks "very large area selected! continue?"​ click OK to start the download. Terra incognita asks "very large area selected! continue?"​ click OK to start the download.
  
-{{ http://​pmc.editing.wiki/​images/​Terra-Incognita-Downloading-Oziexplorer-Map.png }}+{{ https://​pmc.editing.wiki/​images/​Terra-Incognita-Downloading-Oziexplorer-Map.png }}
  
 Download has started, just let terra incognita be, dont use it to make sure it wont crash etc. Download has started, just let terra incognita be, dont use it to make sure it wont crash etc.
Line 153: Line 157:
 Back in global mapper make sure digitizer tool is selected and double click on the grid to bring up modify feature info dialog. Back in global mapper make sure digitizer tool is selected and double click on the grid to bring up modify feature info dialog.
  
-{{ http://​pmc.editing.wiki/​images/​Global-Mapper-Modify-Feature-Info.png }}+{{ https://​pmc.editing.wiki/​images/​Global-Mapper-Modify-Feature-Info.png }}
  
 Delete the "​A1"​ string in the name field, the click OK to close. Delete the "​A1"​ string in the name field, the click OK to close.
Line 161: Line 165:
 Use online sources and choose STRM worldwide elevation data (1-arc-second resolution, SRTM plus v3), make sure current screen bounds is selected. Use online sources and choose STRM worldwide elevation data (1-arc-second resolution, SRTM plus v3), make sure current screen bounds is selected.
  
-{{ http://​pmc.editing.wiki/​images/​Global-Mapper-Select-Online-Data-Source-To-Download.png }}+{{ https://​pmc.editing.wiki/​images/​Global-Mapper-Select-Online-Data-Source-To-Download.png }}
  
 Click connect to load it up, this takes few moments so be patient and wait. Click connect to load it up, this takes few moments so be patient and wait.
  
-{{ http://​pmc.editing.wiki/​images/​Global-Mapper-SRTM-Heightmap-Online-Source.png }}+{{ https://​pmc.editing.wiki/​images/​Global-Mapper-SRTM-Heightmap-Online-Source.png }}
  
 Use file -> export -> export elevation grid format Use file -> export -> export elevation grid format
  
-{{ http://​pmc.editing.wiki/​images/​Global-Mapper-Export-Elevation-Grid-Format.png }}+{{ https://​pmc.editing.wiki/​images/​Global-Mapper-Export-Elevation-Grid-Format.png }}
  
 From select export format dialog choose dropdown of Arc ASCII Grid. From select export format dialog choose dropdown of Arc ASCII Grid.
  
-{{ http://​pmc.editing.wiki/​images/​Global-Mapper-Select-Export-Format.png }}+{{ https://​pmc.editing.wiki/​images/​Global-Mapper-Select-Export-Format.png }}
  
 In arc ascii grid export options dialog type in sample spacing x and y: 10 meters, which will be 40km terrain with 10 meter cell size for us. In arc ascii grid export options dialog type in sample spacing x and y: 10 meters, which will be 40km terrain with 10 meter cell size for us.
  
-{{ http://​pmc.editing.wiki/​images/​Global-Mapper-Arc-ASCII-Grid-Export-Options.png }}+{{ https://​pmc.editing.wiki/​images/​Global-Mapper-Arc-ASCII-Grid-Export-Options.png }}
  
 Select export bounds tab, then tick crop to selected area features(s) option. Select export bounds tab, then tick crop to selected area features(s) option.
  
-{{ http://​pmc.editing.wiki/​images/​Global-Mapper-Arc-ASCII-Grid-Export-Options-Export-Bounds.png }}+{{ https://​pmc.editing.wiki/​images/​Global-Mapper-Arc-ASCII-Grid-Export-Options-Export-Bounds.png }}
  
 Click OK to start exporting. Browse to the tut_austria_40km directory, then give filename "​heightmap"​ (it auto assigns .asc extension). Wait until it has downloaded the SRTM heightmap for you. Click OK to start exporting. Browse to the tut_austria_40km directory, then give filename "​heightmap"​ (it auto assigns .asc extension). Wait until it has downloaded the SRTM heightmap for you.
Line 238: Line 242:
 Make sure NOT to select "​places_a_free",​ you have to choose it without the _a_ because it designates area, we dont want areas for places. Make sure NOT to select "​places_a_free",​ you have to choose it without the _a_ because it designates area, we dont want areas for places.
  
-{{ http://​pmc.editing.wiki/​images/​Global-Mapper-OpenStreetMap-Shapefiles-Loaded.png }}+{{ https://​pmc.editing.wiki/​images/​Global-Mapper-OpenStreetMap-Shapefiles-Loaded.png }}
  
 Next click the crop to selected areas. Next click the crop to selected areas.
  
-{{ http://​pmc.editing.wiki/​images/​Global-Mapper-Crop-To-Selected-Areas-Icon.png }}+{{ https://​pmc.editing.wiki/​images/​Global-Mapper-Crop-To-Selected-Areas-Icon.png }}
  
 Now choose only types of features to crop; areas, from dropdown select create new layer for feature option. Now choose only types of features to crop; areas, from dropdown select create new layer for feature option.
  
-{{ http://​pmc.editing.wiki/​images/​Global-Mapper-Crop-To-Selected-Areas-Setup-Areas.png }}+{{ https://​pmc.editing.wiki/​images/​Global-Mapper-Crop-To-Selected-Areas-Setup-Areas.png }}
  
 Click OK to crop, give it name "​cropped_areas"​ and click OK and OK (or just hint enter twice). Click OK to crop, give it name "​cropped_areas"​ and click OK and OK (or just hint enter twice).
Line 252: Line 256:
 Now repeat the same thing; crop to selected areas, but this time select only lines tickbox (areas and points are unticked). Now repeat the same thing; crop to selected areas, but this time select only lines tickbox (areas and points are unticked).
  
-{{ http://​pmc.editing.wiki/​images/​Global-Mapper-Crop-To-Selected-Areas-Setup-Lines.png }}+{{ https://​pmc.editing.wiki/​images/​Global-Mapper-Crop-To-Selected-Areas-Setup-Lines.png }}
  
 Same thing but give it name "​cropped_roads"​ instead. Same thing but give it name "​cropped_roads"​ instead.
Line 260: Line 264:
 Now in control center SHIFT-LMB select all the "​gis.osm_"​ starting layers, hit DEL key to delete. Note that global mapper is bit bitchy with this one, when you select the layers, do not move mouse cursor away from the control center before you hit DEL key because then it somehow tries to do something else than delete the layers, heh its odd. Now in control center SHIFT-LMB select all the "​gis.osm_"​ starting layers, hit DEL key to delete. Note that global mapper is bit bitchy with this one, when you select the layers, do not move mouse cursor away from the control center before you hit DEL key because then it somehow tries to do something else than delete the layers, heh its odd.
  
-{{ http://​pmc.editing.wiki/​images/​Global-Mapper-Control-Center-Layers.png }}+{{ https://​pmc.editing.wiki/​images/​Global-Mapper-Control-Center-Layers.png }}
  
 We deleted these layers because we dont want them to the in the project to avoid dupes and all they do is to slow down global mapper. We deleted these layers because we dont want them to the in the project to avoid dupes and all they do is to slow down global mapper.
Line 272: Line 276:
 Select search -> search by attributes, name and description. Now you got search vector data dialog. Select search -> search by attributes, name and description. Now you got search vector data dialog.
  
-{{ http://​pmc.editing.wiki/​images/​Global-Mapper-Search-By-Attributes.png }}+{{ https://​pmc.editing.wiki/​images/​Global-Mapper-Search-By-Attributes.png }}
  
 Use [[road-shapefiles-real-world-data#​remove_bad_roads|road shapefiles remove bad roads]] guide to remove those extra roads. Use [[road-shapefiles-real-world-data#​remove_bad_roads|road shapefiles remove bad roads]] guide to remove those extra roads.
  
-{{ http://​pmc.editing.wiki/​images/​Global-Mapper-Seach-Vector-Data-Delete-Bad-Roads.png }}+{{ https://​pmc.editing.wiki/​images/​Global-Mapper-Seach-Vector-Data-Delete-Bad-Roads.png }}
  
 When done it looks much cleaner. When done it looks much cleaner.
  
-{{ http://​pmc.editing.wiki/​images/​Global-Mapper-OpenStreetMap-Roads-Cleaned.png }}+{{ https://​pmc.editing.wiki/​images/​Global-Mapper-OpenStreetMap-Roads-Cleaned.png }}
  
 ===== Export Shapefiles ===== ===== Export Shapefiles =====
Line 286: Line 290:
 Now export roads by file -> export -> vector/​lidar format -> shapefile, click OK. Now export roads by file -> export -> vector/​lidar format -> shapefile, click OK.
  
-{{ http://​pmc.editing.wiki/​images/​Global-Mapper-Export-Vector-Lidar-Format.png }}+{{ https://​pmc.editing.wiki/​images/​Global-Mapper-Export-Vector-Lidar-Format.png }}
  
 You should only have export lines option availbale. You should only have export lines option availbale.
  
-{{ http://​pmc.editing.wiki/​images/​Global-Mapper-Shapefile-Export-Options.png }}+{{ https://​pmc.editing.wiki/​images/​Global-Mapper-Shapefile-Export-Options.png }}
  
 click select file button, make sure you are in tut_austria_40km directory and give it file name "​cropped_roads.shp"​. click select file button, make sure you are in tut_austria_40km directory and give it file name "​cropped_roads.shp"​.
Line 307: Line 311:
 Click add raster layer icon. Click add raster layer icon.
  
-{{ http://​pmc.editing.wiki/​images/​QGIS-Add-Raster-Layer-Icon.png }}+{{ https://​pmc.editing.wiki/​images/​QGIS-Add-Raster-Layer-Icon.png }}
  
 Browse to your heightmap.asc file and open it. Browse to your heightmap.asc file and open it.
Line 313: Line 317:
 Make sure EPSG:32631 is selected. Make sure EPSG:32631 is selected.
  
-{{ http://​pmc.editing.wiki/​images/​QGIS-Bottom-Bar-Projection-Indicator.png }}+{{ https://​pmc.editing.wiki/​images/​QGIS-Bottom-Bar-Projection-Indicator.png }}
  
 You can RMB click on the heightmap layer and choose set layer CRS. You can RMB click on the heightmap layer and choose set layer CRS.
  
-{{ http://​pmc.editing.wiki/​images/​QGIS-Coordinate-Reference-System-Selector.png }}+{{ https://​pmc.editing.wiki/​images/​QGIS-Coordinate-Reference-System-Selector.png }}
  
 You need to make sure **WGS 84 / UTM ZONE 31N** is selected. This is what I meant earlier that we dont need to worry about UTM zone in global mapper. Here we do worry about it heh. You need to make sure **WGS 84 / UTM ZONE 31N** is selected. This is what I meant earlier that we dont need to worry about UTM zone in global mapper. Here we do worry about it heh.
Line 323: Line 327:
 Click add vector layer icon. Click add vector layer icon.
  
-{{ http://​pmc.editing.wiki/​images/​QGIS-Add-Vector-Layer-Icon.png }}+{{ https://​pmc.editing.wiki/​images/​QGIS-Add-Vector-Layer-Icon.png }}
  
 Browse and open cropped_areas.shp,​ cropped_roads.shp and cropped_points.shp files. Browse and open cropped_areas.shp,​ cropped_roads.shp and cropped_points.shp files.
Line 329: Line 333:
 Now SHIFT-LMB select all the new cropped_* layers, then RMB -> set layer CRS, choose UTM 31N and click OK. Now SHIFT-LMB select all the new cropped_* layers, then RMB -> set layer CRS, choose UTM 31N and click OK.
  
-{{ http://​pmc.editing.wiki/​images/​QGIS-Layers-Panel-Select-Cropped-Layers.png }}+{{ https://​pmc.editing.wiki/​images/​QGIS-Layers-Panel-Select-Cropped-Layers.png }}
  
 Now in processing toolbox search and select v.transform plugin. Now in processing toolbox search and select v.transform plugin.
Line 335: Line 339:
 The cropped_areas should be selected. Now paste in the heightmap.asc header coordinates you calculated earlier. The cropped_areas should be selected. Now paste in the heightmap.asc header coordinates you calculated earlier.
  
-{{ http://​pmc.editing.wiki/​images/​QGIS-V-Transform-Paste-New-Coordinates.png }}+{{ https://​pmc.editing.wiki/​images/​QGIS-V-Transform-Paste-New-Coordinates.png }}
  
 Put the first xllcorner number into X shift and yllcorner number to Y shift like the image above indicates. Then click Run button and wait few moments when QGIS is processing. Put the first xllcorner number into X shift and yllcorner number to Y shift like the image above indicates. Then click Run button and wait few moments when QGIS is processing.
  
-{{ http://​pmc.editing.wiki/​images/​QGIS-V-Transform-Layer-Processing-Done.png }}+{{ https://​pmc.editing.wiki/​images/​QGIS-V-Transform-Layer-Processing-Done.png }}
  
 You now should see the area shapes on top of the heightmap, perfectly aligned. You now should see the area shapes on top of the heightmap, perfectly aligned.
Line 345: Line 349:
 Now in layers panel RMB click transformed layer and choose save as. Browse to tut_austria_40km dir and save under transformed_areas.shp file name. Now in layers panel RMB click transformed layer and choose save as. Browse to tut_austria_40km dir and save under transformed_areas.shp file name.
  
-{{ http://​pmc.editing.wiki/​images/​QGIS-Save-Vector-Layer-As.png }}+{{ https://​pmc.editing.wiki/​images/​QGIS-Save-Vector-Layer-As.png }}
  
 Now on layers panel CTRL-LMB select cropped_areas,​ transformed_areas and transformed layers, then RMB -> remove, click OK to remove 3 legend entries. Now on layers panel CTRL-LMB select cropped_areas,​ transformed_areas and transformed layers, then RMB -> remove, click OK to remove 3 legend entries.
Line 357: Line 361:
 When done, you should see a lot of points on top of the heightmap. When done, you should see a lot of points on top of the heightmap.
  
-{{ http://​pmc.editing.wiki/​images/​QGIS-V-Transform-Points-Layer-Processing-Done.png }}+{{ https://​pmc.editing.wiki/​images/​QGIS-V-Transform-Points-Layer-Processing-Done.png }}
  
 Now in layers panel RMB click transformed layer and choose save as. This time choose CSV file export and give it transformed_places.csv file name Now in layers panel RMB click transformed layer and choose save as. This time choose CSV file export and give it transformed_places.csv file name
  
-{{ http://​pmc.editing.wiki/​images/​QGIS-Save-Vector-Layer-As-CSV-File.png }}+{{ https://​pmc.editing.wiki/​images/​QGIS-Save-Vector-Layer-As-CSV-File.png }}
  
 Now again CTRL-LMB select from layers panel the cropped_points,​ transformed_places and transformed layers. Hit RMB -> remove and OK. Now again CTRL-LMB select from layers panel the cropped_points,​ transformed_places and transformed layers. Hit RMB -> remove and OK.
Line 378: Line 382:
 Use file -> export -> export vector/​lidar format -> shapefile. From shapefile export options choose split export based on: FCLASS dropdown option. Use file -> export -> export vector/​lidar format -> shapefile. From shapefile export options choose split export based on: FCLASS dropdown option.
  
-{{ http://​pmc.editing.wiki/​images/​Global-Mapper-Shapefile-Export-Options-FCLASS-Split.png }}+{{ https://​pmc.editing.wiki/​images/​Global-Mapper-Shapefile-Export-Options-FCLASS-Split.png }}
  
 Then click select file, give file name "​obj",​ just obj, click OK (twice) to export. Then click select file, give file name "​obj",​ just obj, click OK (twice) to export.
Line 420: Line 424:
 ===== Place Names ===== ===== Place Names =====
  
-Next is a bit tricky part... if you do not have Qt installed. We need to use [[https://​github.com/​SnakeManPMC/​arma-3-OSM_Places_CSV2HPP|PMC OSM Places CSV to HPP converter tool]] which we at the moment of writing this tutorial dont have binary EXE available for download, so you would have to compile that yourself in Qt. Sorry for that.+Next is a bit tricky part... if you do not have Qt installed. We need to use [[https://​github.com/​SnakeManPMC/​arma-3-OSM_Places_CSV2HPP|PMC OSM Places CSV to HPP converter tool]] ​<del>which we at the moment of writing this tutorial dont have binary EXE available for download, so you would have to compile that yourself in Qt. Sorry for that.</​del>​ download [[https://​pmc.editing.wiki/​downloads/​OSM_Places_CSV2HPP_v0.1.2.7z|OSM_Places_CSV2HPP_v0.1.2.7z]].
  
-Start the tool and click open csv button, browse to transformed_places.csv file and click open. In few seconds the arma3 config class names{} compatible text appears in the text box.+Start the tool and click QGIS button, browse to transformed_places.csv file and click open. In few seconds the arma3 config class names{} compatible text appears in the text box.
  
-{{ http://​pmc.editing.wiki/​images/​PMC-OSM-Places-CSV2HPP-Converter.png }}+(image from older version of the tool) 
 +{{ https://​pmc.editing.wiki/​images/​PMC-OSM-Places-CSV2HPP-Converter.png }}
  
 Copy paste that text, then create new file pmc_names.hpp where you paste the text. Copy paste that text, then create new file pmc_names.hpp where you paste the text.
Line 505: Line 510:
  description = "TUT Austria 40km";  description = "TUT Austria 40km";
  worldName = "​\tut\tut_austria_40km\tut_austria_40km.wrp";​  worldName = "​\tut\tut_austria_40km\tut_austria_40km.wrp";​
- author = "​PMC ​http://​www.pmctactical.org";​+ author = "​PMC ​https://​www.pmctactical.org";​
  pictureMap = "​tut\tut_austria_40km_data\picturemap_ca.paa";​  pictureMap = "​tut\tut_austria_40km_data\picturemap_ca.paa";​
  pictureShot = "​tut\tut_austria_40km_data\ui_terrain_ca.paa";​  pictureShot = "​tut\tut_austria_40km_data\ui_terrain_ca.paa";​
Line 601: Line 606:
  {  {
  "​PMC Editing Wiki helps you develop terrains like this.",​  "​PMC Editing Wiki helps you develop terrains like this.",​
- "​PMC Tactical ​http://​www.pmctactical.org",​+ "​PMC Tactical ​https://​www.pmctactical.org",​
  "​This terrain is 40km in size with 1 meter / pixel satellite resolution.",​  "​This terrain is 40km in size with 1 meter / pixel satellite resolution.",​
  "​This terrain heightmap elevations are realistic made from SRTM data.",​  "​This terrain heightmap elevations are realistic made from SRTM data.",​
Line 635: Line 640:
 File -> create map catalog. Give it name, I do "​GM_Map_Catalog_tut_austria_40km_arcgis_17_level"​ which is mouthful but leaves no questions when seeing it lateron. File -> create map catalog. Give it name, I do "​GM_Map_Catalog_tut_austria_40km_arcgis_17_level"​ which is mouthful but leaves no questions when seeing it lateron.
  
-{{ http://​pmc.editing.wiki/​images/​Global-Mapper-Modify-Map-Catalog.png }}+{{ https://​pmc.editing.wiki/​images/​Global-Mapper-Modify-Map-Catalog.png }}
  
 Click add directory button, then browse to the terra incognita tut_austria_40km_arcgis_17_level directory. On enter file masks to open dialog, type *.map and hit OK. Now wait until the catalog is created, this will take a few minutes again. Click add directory button, then browse to the terra incognita tut_austria_40km_arcgis_17_level directory. On enter file masks to open dialog, type *.map and hit OK. Now wait until the catalog is created, this will take a few minutes again.
Line 641: Line 646:
 When its done creating the catalog click OK in modify map catalog dialog. When its done creating the catalog click OK in modify map catalog dialog.
  
-{{ http://​pmc.editing.wiki/​images/​Global-Mapper-Map-Catalog-Satellite-Imagery.png }}+{{ https://​pmc.editing.wiki/​images/​Global-Mapper-Map-Catalog-Satellite-Imagery.png }}
  
 File -> export -> export raster/​image format -> PNG. File -> export -> export raster/​image format -> PNG.
  
-{{ http://​pmc.editing.wiki/​images/​Global-Mapper-Export-Raster-Image-Format.png }}+{{ https://​pmc.editing.wiki/​images/​Global-Mapper-Export-Raster-Image-Format.png }}
  
 Then on PNG export options dialog you choose file type 24bit RGB, sample spacing x/y 1 meters and untick the bottom three default tickboxes. Then on PNG export options dialog you choose file type 24bit RGB, sample spacing x/y 1 meters and untick the bottom three default tickboxes.
  
-{{ http://​pmc.editing.wiki/​images/​Global-Mapper-PNG-Export-Options.png }}+{{ https://​pmc.editing.wiki/​images/​Global-Mapper-PNG-Export-Options.png }}
  
 Select tiling tab, tick specify number of rows and columns and type 4 on both. Select tiling tab, tick specify number of rows and columns and type 4 on both.
  
-{{ http://​pmc.editing.wiki/​images/​Global-Mapper-PNG-Export-Options-Tiling.png }}+{{ https://​pmc.editing.wiki/​images/​Global-Mapper-PNG-Export-Options-Tiling.png }}
  
 Select export bounds tab, tick crop to selected area features. Select export bounds tab, tick crop to selected area features.
  
-{{ http://​pmc.editing.wiki/​images/​Global-Mapper-PNG-Export-Options-Export-Bounds.png }}+{{ https://​pmc.editing.wiki/​images/​Global-Mapper-PNG-Export-Options-Export-Bounds.png }}
  
 Click OKm give file name "​sat",​ just sat. Click save to ttart exporting satellite texture tiles in PNG image format. Click OKm give file name "​sat",​ just sat. Click save to ttart exporting satellite texture tiles in PNG image format.
Line 670: Line 675:
 ===== L3DT Background Image ===== ===== L3DT Background Image =====
  
-_run_imagemagick_l3dt_8192_texture_map.bat is used to create L3DT texture map, a basically small image of satellite texture which is used as background when editing heightmap in L3DT.+_run_imagemagick_l3dt_8192_texture_map.bat is used to create ​[[tools:​l3dt|L3DT]] texture map, a basically small image of satellite texture which is used as background when editing heightmap in L3DT.
  
 **_run_imagemagick_l3dt_8192_texture_map.bat** **_run_imagemagick_l3dt_8192_texture_map.bat**
Line 679: Line 684:
 echo Creating L3DT_texture_map.jpg echo Creating L3DT_texture_map.jpg
 echo resizing A1 ... echo resizing A1 ...
-convert Dsat_A1.bmp -resize 2048x2048 temp_A1.bmp+magick ​convert Dsat_A1.bmp -resize 2048x2048 temp_A1.bmp
 echo resizing A2 ... echo resizing A2 ...
-convert Dsat_A2.bmp -resize 2048x2048 temp_A2.bmp+magick ​convert Dsat_A2.bmp -resize 2048x2048 temp_A2.bmp
 echo resizing A3 ... echo resizing A3 ...
-convert Dsat_A3.bmp -resize 2048x2048 temp_A3.bmp+magick ​convert Dsat_A3.bmp -resize 2048x2048 temp_A3.bmp
 echo resizing A4 ... echo resizing A4 ...
-convert Dsat_A4.bmp -resize 2048x2048 temp_A4.bmp+magick ​convert Dsat_A4.bmp -resize 2048x2048 temp_A4.bmp
  
 echo resizing B1 ... echo resizing B1 ...
-convert Dsat_B1.bmp -resize 2048x2048 temp_B1.bmp+magick ​convert Dsat_B1.bmp -resize 2048x2048 temp_B1.bmp
 echo resizing B2 ... echo resizing B2 ...
-convert Dsat_B2.bmp -resize 2048x2048 temp_B2.bmp+magick ​convert Dsat_B2.bmp -resize 2048x2048 temp_B2.bmp
 echo resizing B3 ... echo resizing B3 ...
-convert Dsat_B3.bmp -resize 2048x2048 temp_B3.bmp+magick ​convert Dsat_B3.bmp -resize 2048x2048 temp_B3.bmp
 echo resizing B4 ... echo resizing B4 ...
-convert Dsat_B4.bmp -resize 2048x2048 temp_B4.bmp+magick ​convert Dsat_B4.bmp -resize 2048x2048 temp_B4.bmp
  
 echo resizing C1 ... echo resizing C1 ...
-convert Dsat_C1.bmp -resize 2048x2048 temp_C1.bmp+magick ​convert Dsat_C1.bmp -resize 2048x2048 temp_C1.bmp
 echo resizing C2 ... echo resizing C2 ...
-convert Dsat_C2.bmp -resize 2048x2048 temp_C2.bmp+magick ​convert Dsat_C2.bmp -resize 2048x2048 temp_C2.bmp
 echo resizing C3 ... echo resizing C3 ...
-convert Dsat_C3.bmp -resize 2048x2048 temp_C3.bmp+magick ​convert Dsat_C3.bmp -resize 2048x2048 temp_C3.bmp
 echo resizing C4 ... echo resizing C4 ...
-convert Dsat_C4.bmp -resize 2048x2048 temp_C4.bmp+magick ​convert Dsat_C4.bmp -resize 2048x2048 temp_C4.bmp
  
 echo resizing D1 ... echo resizing D1 ...
-convert Dsat_D1.bmp -resize 2048x2048 temp_D1.bmp+magick ​convert Dsat_D1.bmp -resize 2048x2048 temp_D1.bmp
 echo resizing D2 ... echo resizing D2 ...
-convert Dsat_D2.bmp -resize 2048x2048 temp_D2.bmp+magick ​convert Dsat_D2.bmp -resize 2048x2048 temp_D2.bmp
 echo resizing D3 ... echo resizing D3 ...
-convert Dsat_D3.bmp -resize 2048x2048 temp_D3.bmp+magick ​convert Dsat_D3.bmp -resize 2048x2048 temp_D3.bmp
 echo resizing D4 ... echo resizing D4 ...
-convert Dsat_D4.bmp -resize 2048x2048 temp_D4.bmp+magick ​convert Dsat_D4.bmp -resize 2048x2048 temp_D4.bmp
  
 echo combine temp_Ax ... echo combine temp_Ax ...
-convert +append temp_A1.bmp temp_A2.bmp temp_A3.bmp temp_A4.bmp temp_Ax.bmp+magick ​convert +append temp_A1.bmp temp_A2.bmp temp_A3.bmp temp_A4.bmp temp_Ax.bmp
 echo combine temp_Bx ... echo combine temp_Bx ...
-convert +append temp_B1.bmp temp_B2.bmp temp_B3.bmp temp_B4.bmp temp_Bx.bmp+magick ​convert +append temp_B1.bmp temp_B2.bmp temp_B3.bmp temp_B4.bmp temp_Bx.bmp
 echo combine temp_Cx ... echo combine temp_Cx ...
-convert +append temp_C1.bmp temp_C2.bmp temp_C3.bmp temp_C4.bmp temp_Cx.bmp+magick ​convert +append temp_C1.bmp temp_C2.bmp temp_C3.bmp temp_C4.bmp temp_Cx.bmp
 echo combine temp_Dx ... echo combine temp_Dx ...
-convert +append temp_D1.bmp temp_D2.bmp temp_D3.bmp temp_D4.bmp temp_Dx.bmp+magick ​convert +append temp_D1.bmp temp_D2.bmp temp_D3.bmp temp_D4.bmp temp_Dx.bmp
  
 echo combine L3DT_texture_map.bmp ... echo combine L3DT_texture_map.bmp ...
-convert -append temp_Ax.bmp temp_Bx.bmp temp_Cx.bmp temp_Dx.bmp L3DT_texture_map.bmp+magick ​convert -append temp_Ax.bmp temp_Bx.bmp temp_Cx.bmp temp_Dx.bmp L3DT_texture_map.bmp
 echo creating L3DT_texture_map ... echo creating L3DT_texture_map ...
-convert -strip -interlace Plane -quality 85% L3DT_texture_map.bmp L3DT_texture_map.png+magick ​convert -strip -interlace Plane -quality 85% L3DT_texture_map.bmp L3DT_texture_map.png
 echo deleting temp files ... echo deleting temp files ...
 if exist temp_*.bmp del temp_*.bmp if exist temp_*.bmp del temp_*.bmp
Line 760: Line 765:
 Run it once with the options it came with, see how many objects terrain processor created. In my case it was 107,000 objects which is nice round number 100k. Run it once with the options it came with, see how many objects terrain processor created. In my case it was 107,000 objects which is nice round number 100k.
  
-Arma3 terrains have limit of roughly 6-6.million objects ​give or takeso lets calculate 6 / 0.107 == 56. This means we can add hectare density to 56 before running much over 6 million generated objects.+With the release of arma3 64bit version ​terrains have object count limit so high that we have not been able to import so many objects to terrain builder that it would have crashed binarize or arma3_x64.exe itself. in [[https://​www.pmctactical.org/​arma3/​terrain.php|PMC Balkans Kosovo]] we tested roughly 20 million objects ​which worked finePMC Suwalki Gap which is available for download right now has 18.1 million (18,​134,​807) objects. This tutorial was written prior to 64bit binary release. 
 + 
 +Before 64bit binary release I used this formula: So lets calculate 6 / 0.107 == 56. This means we can add hectare density to 56 before running much over 6 million generated objects.
  
 50 hectare density for forests is okay-ish I guess. Lets try that first. 50 hectare density for forests is okay-ish I guess. Lets try that first.
Line 786: Line 793:
 Before you import millions of objects we need to prepare terrain builder. Disable ALL views. Before you import millions of objects we need to prepare terrain builder. Disable ALL views.
  
-{{ http://​pmc.editing.wiki/​images/​Terrain-Builder-Disable-All-Views-Icons.png }}+{{ https://​pmc.editing.wiki/​images/​Terrain-Builder-Disable-All-Views-Icons.png }}
  
 When views are disabled start the import objects process, select all LBT files from TerrainProcessor directory. Then wait, very patiently as it takes forever to import millions of objects, over an hour on some cases. When views are disabled start the import objects process, select all LBT files from TerrainProcessor directory. Then wait, very patiently as it takes forever to import millions of objects, over an hour on some cases.
Line 797: Line 804:
 Once import is complete you see the satellite tiles in lower left corner. Once import is complete you see the satellite tiles in lower left corner.
  
-{{ http://​pmc.editing.wiki/​images/​Terrain-Builder-Satellite-Tiles-After-Import.png }}+{{ https://​pmc.editing.wiki/​images/​Terrain-Builder-Satellite-Tiles-After-Import.png }}
  
 Now use [[import-satellite-in-smaller-tiles#​tile_example_values|import satelite in smaller tiles examples]] page to get the coordinates. Now use [[import-satellite-in-smaller-tiles#​tile_example_values|import satelite in smaller tiles examples]] page to get the coordinates.
Line 805: Line 812:
 Not sure what more I can say about that tile setup, you can copy paste the values from the above link and then its all aligned up nicely. Not sure what more I can say about that tile setup, you can copy paste the values from the above link and then its all aligned up nicely.
  
-{{ http://​pmc.editing.wiki/​images/​Terrain-Builder-Satellite-Tiles-After-Alignment.png }}+{{ https://​pmc.editing.wiki/​images/​Terrain-Builder-Satellite-Tiles-After-Alignment.png }}
  
  
Line 872: Line 879:
 **2007 - 2009** ArmA, fictional\\ **2007 - 2009** ArmA, fictional\\
 **2009 - 2013** ArmA 2, fictional (maybe few close to real world terrains with hard work started to appear)\\ **2009 - 2013** ArmA 2, fictional (maybe few close to real world terrains with hard work started to appear)\\
-**2013 - now?** ArmA 3, fictional + accurate real world data :)+**2013 - 2020** ArmA 3, fictional + accurate real world data :)
  
 Just a small side note, until these PMC Editing Wiki tutorials, there was no **comprehensive step by step** tutorial sets how to make real world data terrains, few guys had global mapper / qgis tutorials but none were complete tutorials from having nothing to getting terrain in-game. Just a small side note, until these PMC Editing Wiki tutorials, there was no **comprehensive step by step** tutorial sets how to make real world data terrains, few guys had global mapper / qgis tutorials but none were complete tutorials from having nothing to getting terrain in-game.
Line 882: Line 889:
  
 Credits: Credits:
 +  * [PTR] brenden0309
   * Digital Centurion   * Digital Centurion
 +  * Hydrra
   * Ice   * Ice
 +  * JakerRod
   * M1lkm8n   * M1lkm8n
   * pooface   * pooface
-  * Hydrra 
-  * [PTR] brenden0309 
   * Richie   * Richie
 And everyone I forgot who helped in arma discord, your help made these pages possible, you should be proud of yourselves! And everyone I forgot who helped in arma discord, your help made these pages possible, you should be proud of yourselves!
arma3/terrain/real-world-data-tutorial.1506960483.txt.gz · Last modified: 2017-10-02 16:08 by snakeman