-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Stéphane Malta e Sousa edited this page Sep 12, 2019
·
6 revisions
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.
In order to create a terrain you'll need:
- A DEM raster
- A landcover vector file
Unity uses a custom RAW raster file heightmap.
- Open the workbench located at
import01_terrain/10_GEOTIFF2RAW.fmw
- Delete existing
10_terrain.raw
andRAWsettings.txt
files - Replace the GEOTIFF reader with your own DEM
- Edit workbench published parameters:
- min_z : the lowest elevation your project could have
- max_z : the highest elevation your project could reach
- Press play. A
10_terrain.raw
raster and aRAWsettings.txt
should appear close to your workbench - Open Unity, create a new Terrain game object
- Go to the settings of your terrain, under Texture Resolutions section, hit Import Raw... button.
- Check Flip Vertically and set the Terrain Size settings with the values found in the
RAWsettings.txt
file. - Click import. You should see the terrain now.