Skip to content
Stéphane Malta e Sousa edited this page Sep 12, 2019 · 6 revisions

Global requirements

This guide assumes you have FME installed and you're familiar with it (if not, check FME Home licences for free and the online tutorials Safe Software provides).

There's a shapefile containing the bounding box of your project in datasource\00_perimeter\perimeter.shp. Edit it first to get started.

Terrain

Requirements

In order to create a terrain you'll need:

  • A DEM raster
  • A landcover vector file

Importing the data

Unity uses a custom RAW raster file heightmap.

  1. Open the workbench located at import01_terrain/10_GEOTIFF2RAW.fmw
  2. Delete existing 10_terrain.raw and RAWsettings.txt files
  3. Replace the GEOTIFF reader with your own DEM
  4. Edit workbench published parameters:
  5. min_z : the lowest elevation your project could have
  6. max_z : the highest elevation your project could reach
  7. Press play. A 10_terrain.raw raster and a RAWsettings.txt should appear close to your workbench
  8. Open Unity, create a new Terrain game object
  9. Go to the settings of your terrain, under Texture Resolutions section, hit Import Raw... button.
  10. Check Flip Vertically and set the Terrain Size settings with the values found in the RAWsettings.txt file.
  11. Click import. You should see the terrain now.

Texturing

Clone this wiki locally