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

2.5 KiB

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.

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.

The second option is to enable the Use Raw File checkbox, which lets you select a RAW file heightmap texture to use.

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.

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.

Tiles

Tiles mode lets you assign a heightmap manually to each tile slot, and there are no file naming requirements.

Information Box

The information box shows you the resolution of the imported heightmaps. It also displays the total number of Terrain tiles.

Heightmap Settings

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.