Created: January10, 2024 Updated: January10, 2024
In some cases after generating terrains we don't get the expected result because of some missing data in the DEM file, in this tutorial we will try to see almost of deformation cases:
- Case 01 : Empty Hole inside the DEM file.
- Case 02 : Missing Max or Min Elevation or wrong read values.
- Case 03 : The DEM bound is not a rectangle shape.
Empty Hole inside the DEM file (Download Example)
In this example we have a GeoTiff with a small empty hole.
GIS Terrain Loader is unable to detect the Min elevation.
Terrain not generated correctly and very far from unity editor origin.
Set 'Fix Terrain' Option to 'Auto Fix'.
Set 'Elevation For Null Point' to 'Average'.
Now terrain is generated correctly.
Missing Max or Min Elevation or wrong read values. (Download Example)
This DEM file is not exported correctly (the left side contains some empty points), this will cause so deformation in unity terrain.
When we disable 'Fix Terrain ' option we will not have the expected result.
When we set 'Fix Terrain' to 'Auto Fix' we will have an acceptable result but we still have some walls around the terrain.
The solution is to change 'Elevation for Null Point' to 'Manual' and set the min elevation (in this case 800m).
The DEM bound is not a rectangle shape. (Download Example)
First image the terrain generated without 'Auto Fix' Option.
When we disable 'Fix Terrain ' option we will not have the expected result.
When we set 'Fix Terrain' to 'Auto Fix' we will have an acceptable result but we still have some walls around the terrain.
The solution is to change 'Elevation for Null Point' to 'Manual' and set the min elevation (in this case 800m).
Disable 'Fix Terrain' Option ' if you don't need it, it may be expensive for memory when using huge DEM files.