ZMWSLI0-SL2021-GR11/Projekt/MWSProjekt/Library/PackageCache/com.unity.terrain-tools@3.0.2-preview.3/Documentation~/toolbox-import-heightmap.md

53 lines
2.5 KiB
Markdown
Raw Permalink Normal View History

2021-07-05 21:20:56 +02:00
## Import Heightmap
The **Create New Terrain** wizard has an **Import Heightmap** section, which allows you to import a heightmap or a series of heightmaps for creating new Terrain. Click the checkbox on the expander menu to enable this option.
![](images/Toolbox_Create_Heightmap.png)
### Import Mode
Heightmaps must be in the RAW format, and the size of each heightmap must be a power of two. There are three import modes: **Global**, **Batch**, and **Tiles**.
#### Global
**Global** mode lets you import one heightmap for use on all Terrain tiles. There are two options for the heightmap format.
By default, you can select a single channel heightmap from the project in the Texture field.
![](images/Toolbox_Heightmap_UseTexture2D.png)
The second option is to enable the **Use Raw File** checkbox, which lets you select a RAW file heightmap texture to use.
![](images/Toolbox_Heightmap_UseRawFile.png)
#### Batch
**Batch** mode lets you import a list of heightmaps, and applies one heightmap per tile. Provide the folder path where heightmaps reside. The Toolbox will then import each heightmap, and automatically assign them to the respective tiles. For auto-assignment to work, you must name the heightmaps properly.
![](images/Toolbox_Heightmap_Batch.png)
Heightmap filenames must end with two index digits — the index along the X axis, and the index along the Z axis. For example, `MtStHelens_0_0`, `MtStHelens_0_1`, `MtStHelens_1_0`, and `MtStHelens_1_1` creates a 2 x 2 tiled Terrain comprising the four heightmaps. The heightmap files look like this in file explorer.
![](images/Toolbox_Heightmap_BatchFileNaming.png)
#### Tiles
**Tiles** mode lets you assign a heightmap manually to each tile slot, and there are no file naming requirements.
![](images/Toolbox_Heightmap_Tiles.png)
### Information Box
![](images/Toolbox_Heightmap_InfoBox.png)
The information box shows you the resolution of the imported heightmaps. It also displays the total number of Terrain tiles.
### Heightmap Settings
![](images/Toolbox_Heightmap_Settings.png)
| **Property** | **Description** |
| -------------------------- | ------------------------------------------------------------ |
| **Tile Height Resolution** | The heightmap resolution on the Terrain, which is identical to the information under Group Settings. |
| **Height Remap** | Remaps the 0 and 1 values of the heightmap to minimum and maximum Terrain heights. |
| **Flip Axis** | Flips the axis horizontally or vertically, or does not flip them. |