This node exports a vector map as several image files from a terrain or a terrain composition linked to a Compute vector map node.
The advantage of exporting multiple files is to optimize the rendering times for very large vector maps in an external engine where it is more practical to manage parts of the vector map in different files.
To add a node, right-click in the Graph Editor and select Create Node > Export > Multi file export vector map.
Double click on the node to open its parameters:
To export a vector map 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 normal map 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).
The width, height and overlapping can be
driven by calculation nodes
linked to the optional connectors. In the example below, the width
of the export is controlled by a constant value of 40. See
Optional connectors for more details.
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 vector map.
The replacement rules in the file names (or directory) are:
|vector map/$0x/$0y/file.bmp||vector map/00/00/file.bmp
|vector map/$0x/$0y/file_$x_$y.bmp||vector map/00/00/file_0_0.bmp
|File pattern||Name and directory of the files to export|
|File format||Format of the files to export|
|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