Creating Custom Height Map Mask (New for 5.5)

In theory, a Height Map Terrain is composed of one terrain mesh covered with up to 4 materials. The distribution for the materials are determined by a Height Map Mask image file in PNG format, also known as Detailmap in Earth Sculptor, a professional height map terrain generator.

Although the mask is an image, you can not open it in image editor to adjust the distributions. You must use Earth Sculptor to edit or generate the mask image instead.

The Basic Concept of Detailmap

When you decide to cover your terrain with Detailmap, you may assume that there are two invisible image plans hanging above the terrain mesh, one is the texture image and the other is the mask plane.

When you paint on the terrain mesh, you are actually modifying the mask plane so the texture plane may project texture accordingly onto the terrain.

Note:

  • The mask plane for the first channel is off by default. Therefore, if you load a texture image for the first channel, the texture will always cover the entire terrain.

  • Creating Four Materials in Earth Sculptor

    1. In Earth Sculptor, create a new terrain.
    2. In the Main Menu, execute the Import >> Heightmap Image command and load a grayscale image.
    3. Press down the Detail button in the Toolbar. Detail panel shows.
    4. Click the Set Detail Texture button. Locate a desired image (TGA, DDS, PNG or BMP) and click the Open button to load the image to replace the original one (check board).

    Obtaining Height Map and Material Mask Images for iClone

    Finding Required Images in Earth Sculptor

    After you have created a new terrain with 4 materials as described in the previous section, you may then import the Height Map and Mask images to iClone, in order to create you custom height map terrain.

    1. Take the terrain created above as an example (in Earth Sculptor).
    2. Save the terrain as *.map file (Earth Sculptor project file).
    3. Execute the Utility >> Explore command from the main menu.
    4. A system explorer will open the folder where you save the project. You will see several images inside of it.
      * Please not that only the *.png and *_d.png are necessary for creating a custom height map terrain in iClone.

    Loading Height Map and Mask Images in iClone

    1. Load a Height Map Terrain template from the Set >> Terrain >> Content Manager >> Height Map Terrain library as a base.
    2. In this case, the Butte is applied.
    3. Scroll to the Height Map Terrain section in the Set >> Terrain >> Modify panel.
    4. Double click on the Height Map channel and replace the original image with the *.png (for generating landforms) as described above.
    5. Double click on the Mask channel and replace the original image with the *_d.png as described above.

      Note:

      • The material that is applied to a specific color area defined in the original mask will be applied to the same color area defined in the loaded mask.
      • It is not recommended to use an image editor to adjust the mask image map, as material distribution may not be accurate, and the gradual texture effect can be lost.

    Re-arranging Materials

    If you are not satisfied with the material results, you can manually adjust it further via the controllers in iClone.

    1. Scroll to the Material section in the Set >> Terrain >> Modify panel.
    2. Click the Pick button and click on the desired area for retrieving its corresponding material.
    3. Click the Save Material button to save the material as a file.
    4. Repeat the same steps to save the 4 materials.
    5. Click on the Pick button again.
    6. Click on the terrain to select a target area for changing material.
    7. Click the Load Material button to load the desired material file saved in step 4.
    8. Repeat the same steps to adjust and change the materials.