This node is available for the Pro edition only.
This node composes several input bitmap files to make a single terrain. The size and gray scale of each image is treated in the same way as for the Import terrain node and uses the same operation for file management, but instead of entering a file name, a formula is entered, which is used to determine the name of each file.
To add a node, right-click in the Graph Editor and select Create Node > Import > Import terrain from several files.
Double click on the node to open its parameters:
To import a terrain from several files, set the following parameters:
See Explanation about the formula for a detailed description about the formula.
To import them into Instant Terra, browse to the folder where your files are located. Copy and paste the path in the parameters dialog.
Replace the first number, which represents the X axis, by $x and the second number, which represents the Y axis, by $y.
Only nodes with a single channel, 8 bits, 16
bits, or 32 bits, are supported.
- For 8 bits, the values are between 0 and 255.
- For 16 bits, the values are between 0 and 65'535.
- For 32 bits, the values are floating values: for a terrain, this
is the height of the terrain.
The files are imported to form one terrain and each one is aligned in the correct position.
By default, the part corresponding to the first file (for example, file (1, 1)) is at the top left of the field and the last file (for example (4, 3)) is at the bottom right of the field. This means that we go down when the index Y increases.
For the imported files, the node:
Each file is loaded, and forms the corresponding part of the final terrain.
The replacement rules in the file names (or directory) are:
For example:
Expression | Product names |
---|---|
terrain/$0x/$0y/file.bmp | terrain/00/00/file.bmp terrain/01/00/file.bmp terrain/10/24/file.bmp |
terrain/$0x/$0y/file_$x_$y.bmp | terrain/00/00/file_0_0.bmp terrain/01/00/file_1_0.bmp terrain/10/24/file_10_24.bmp |
Parameter | Use |
---|---|
File name | Name of the file to load |
Quad size | Size of the terrain quads |
Terrain information | Shows the width, height, and bits of the terrain |
Flip Y axis | Flips the terrain around the Y axis |
Flip tiles position along Y axis | Flips the position of the tiles along the Y axis |
Override import region | Overrides the import region to specify the files to load |
Copyright © 2022 · All Rights Reserved · Wysilab