Adding an Import terrain node

This node creates a terrain from an image file. The image is transformed into gray levels, each pixel having a value between 0 and 1. The generated terrain has the resolution of the image as its size, and the height of each point depends on its gray level and the scale of the heights (vertices with a 0 value will have their height set to the min value, and vertices with a 1 value will have their height set to the max value).

To add a node, right click in the Graph Editor and select Create Node  > Import  > Import terrain from file.

Double click on the node to open its parameters:

Importing a terrain from a file

To import a terrain from a file:

  • File name: Click on the folder button and browse to the file you want to import, or type the directory of the file to import.

File names with Unicode characters are supported.

If you have already saved your project, type just a file name or sub-directory and file name to import it from the same directory as your project. There is no need to type the file directory.

The following image formats are supported:

Extension Format Comments
.bmp Windows or OS/2 Bitmap file 8/16/24/32 bits allowed
.dem Game replay file  
.gif Graphics Interchange Format  
.jpg, .jpeg Independent JPEG Group  
.png Portable Network Graphics 8/16 bits per channel with 1/3/4 channels (gray scale/RGB/RGBA) allowed
.ico Windows Icon  
.tif, .tiff Tagged Image File Format 8/16/32 bits allowed
.tga Truevision Targa File  
.psd Adobe Photoshop  
.pgm Portable Graymap  
.pfm Portable Floatmap  
.exr ILM openEXR  
.hf2, .hfz Heightfield  

Every heightmap used for a terrain may contain colors or an alpha channel. Both are converted into gray scale values.

  • Quad size: Sets the size of the terrain quads.
  • File information: Sets the Width, Height, and Bits of the terrain.
  • Height: Sets the minimum and maximum height of the terrain.
  • Flip Y axis: Check the box to flip the terrain around the Y axis.


Parameter Use
File name Name of the file to load
Quad size Size of the terrain quads
File information Shows the width, height, and bits of the terrain
Height Sets the minimum and maximum height of the terrain
Flip Y axis Flips the terrain around the Y axis

Copyright © 2019 · All Rights Reserved · Wysilab