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:
To import a terrain from a file:
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:
|.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|
|.tif, .tiff||Tagged Image File Format||8/16/32 bits allowed|
|.tga||Truevision Targa File|
|.dem||Digital Elevation Model|
Every heightmap used for a terrain may contain colors or an alpha channel. Both are converted into gray scale values.
|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 © 2018 · All Rights Reserved · Wysilab