Global Mapper 16.2 and later can export elevation and raster data to Unity Raw format.
The Unity RAW Terrain/ Texturecommand can be accessed through File> Export > Raster/Image Format... or File> Export > Elevation Grid Format. Individual layers can also be exported from the Control Center by right-click on the layer and going to Layer > EXPORT. Either method will export the loaded terrain and elevation data.
The export to Unity RAW Terrain/ Texture command creates a RAW terrain
file with unsigned 16-bit values scaled from 0-65535 for the elevation
range of the data being exported. It also creates a JPG texture file covering
the same area as each RAW terrain file. This means the height values are scaled to use the full data range for the export bounds. It may be necessary to scale the terrain values first, using theAlter Elevation Values tab for the layer, in order to align the export with other existing terrain data.
The RAW file is flipped horizontally and the JPG rotated 180 degrees to
conform with Unity requirements. The output RAW files are encoded in big endian byte order, referred to as 'Mac encoding' in applications like Photoshop and Unity.
If not exporting the full extent, first specify the bounds for the export on the Export Bounds tab
Set the Terrain size and Texture Image Size to specify the pixel dimensions of the output terrain (raw) and texture (jpg) files.
There are two methods to derive a tiling scheme for the export extent:
- Select Specify Terrain Resolution. Specify the resolution to use for the terrain layer. This will auto-derive tiles that match the tile dimensions listed above, while preserving the terrain resolution.
2. Select Use Layout Specified on Tiling Tab to Fill Bounds. Use the Tiling tab to define a custom tiling
scheme. The linear resolution of each pixel will be auto-calculated to match the tiling scheme and tile dimensions specified in Terrain Size and Texture Image Size.