This node exports several files from a terrain. The images are exported as gray levels, each pixel having a value between 0 and 1. The generated images have the resolution of the terrain as its size, and the gray levels and 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) determine the height of each point.
The advantage of exporting multiple files is to optimize the rendering times for very large terrains in an external engine where it is more practical to manage parts of the terrain in different files.
To add a node, right click in the Graph Editor and select Create Node > Export > Multi file export terrain.
Double click on the node to open its parameters:
To export a terrain to multiple files, set the following parameters:
See Explanation about the formula for a detailed description about the formula.
Browse to the folder where want to save your files and copy the path.
In File pattern in the parameters dialog, paste the path and add a file name, for example here we add "Group" and then _$x_$y, where $x represents the position of the part of the terrain on the X axis and $y represents the Y axis.
The following pattern works for exporting to UE4: "filename_X$x_Y$y.png" (UE4 requires an "X" and an "Y" before the coordinates of the tile).
A pop-up dialog displays the progress of the export.
Another popup-up dialog confirms the export.
The files are exported to the directory entered in the File pattern box.
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:
|File pattern||Name and directory of the files to export|
|File format||Format of the files to export|
|Range||Sets the minimum and maximum heights of each file to export, either automatically or manually|
|Width and height||Sets the width and height of each file to export|
|Overlapping||Sets the number of rows or columns to overlap|
|Number of files||Non-editable parameter displaying the number of files to export depending on the graph and overlapping|
Copyright © 2019 · All Rights Reserved · Wysilab