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.jpg" (UE4 requires an "X" and an "Y" before the coordinates of the tile).
Format | Extension | Description |
---|---|---|
Tiff 8 bits | .tif | Tagged Image File Format |
Png 8 bits | .png | Portable Network Graphics |
Tga 8 bits | .tga | Truevision Targa File |
Bmp 8 bits | .bmp | Windows or OS/2 Bitmap file |
Tiff 16 bits | .tif | Tagged Image File Format |
Png 16 bits | .png | Portable Network Graphics |
Raw 16 bits | .raw | Raw Image Data File Format |
Tiff 32 bits | .tif | Tagged Image File Format |
OpenExr 32 bits | .exr | ILM openEXR |
Raw 32 bits | .raw | Raw Image Data File Format |
ARC/INFO ASCII GRID | .asc | Raster GIS File Format |
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:
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 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 © 2022 · All Rights Reserved · Wysilab