

Copy the HeightmapFrom GridFloat to the Editor folder. Create a folder in Unity called ‘Editor’Ģ. Be sure the header file (HDR) for the GridFloat DEM also resides in the Asset folder.ġ.
UNITY 3D TERRAIN DOWNLOAD
You’ll need to download the script to do this from here. Using GridFloat format If the DEM is in the GridFloat format, then you can enable Unity to read into a Unity terrain. If you drop a First Person Controller onto the terrain and hit play, the terrain will appear smooth. In the scene view, the terrain may appear pixelated with jagged edges, but this is mainly due to the Scene view using LOD to render the terrain. The result Unity will create the terrain from the DEM. Check and make sure the Depth is 8bit, (if you used Terragen) and that the Byte order is your respective OS.

The width and height of the selection box go into the X and Z. You’ll need the data we collected from step 4 and enter it into the correct slots. Go to Terrain > Import Height – Raw… and select the raw file we exported from Terragenġ3. A large terrain will appear in the scene view.ġ2. Go to Export > Terrain > Export Make sure it is 8 bit Raw. The area you selected should now appear in the Landscape and the Rendering Control dialog.ĩ. File > SaveTerragen Terrain > Selected Area and save it in an accessible area Similarly, if we find the lowest elevation and subtract it from the highest elevation, we have our elevation height that Unity will need.Ħ. If we point the cursor on the left edge of the box and then the right edge, we subtract the value from each and find the width of the box. We can use this to extract the width of the selection box. When you move the cursor, the Northing, Easting and Elevation info appears in the lower right hand corner.

We will have to point our cursor in severa spots inside the selection box to extract this data. The selection box does not give us any information concerning the width, length and elevation of the selected area and Unity will need this information.
UNITY 3D TERRAIN FREE
We use the free program 3DEM, which you can download here.Ģ. Convert DEM to Terragen File The first step is to convert the DEM into a Terragen file. For many users of Unity, the most cost effective solution is to use a two step rocess using Terragen and 3DEM, but if you can obtain a heightmap from DEM by any other means, you can skip to the Import into Unity section. Using Terragen/3DEM The goal of this method is to convert the DEM into a RAW heightmap that Unity reads natively.
