Adding an Import terrains from RGBA file node

This node creates terrains from an RGBA 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 terrains from RGBA file.

Double click on the node to open its parameters:

Importing terrains from an RGBA file

To import terrains from an RGBA file:

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

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.

File names with Unicode characters are supported.

The bitmap file composed of the equivalent of a heightmap per channel (1 is the red channel, 2 is the green channel, 3 is the blue channel, and 4 is the Alpha one channel) is imported.

The following image formats are supported:

Extension Format Comments
.bmp Windows or OS/2 Bitmap file 8/16/24/32 bits allowed
.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  

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 Sets the 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 © 2018 · All Rights Reserved · Wysilab