Adding an Import masks from several RGBA files node

This node is available for the Pro edition only.

This node creates masks from several RGBA file. The operation is the same as for importing terrains from an RGBA file and the same file formats are supported.
This node has four output masks instead of a single one in the Import mask node.

  • The first mask is extracted from the red channel of the texture.
  • The second one is from the green channel.
  • The third one is extracted from the blue channel.
  • The fourth one is extracted from the alpha channel.

To add a node, right click in the Graph Editor and select Create Node  > Import  > Import masks from several RGBA files.

Double click on the node to open its parameters:

Importing masks from several RGBA files

To import masks from several files, set the following parameters:

  • Pattern for finding files: This is the formula used to retrieve the files to load. Copy and paste the directory containing the masks you want to import (see Explanation about the formula for more details).
  • Quad size: Sets the mask quad size.
  • Mask information: Sets the Width, Height, and Bits of the mask.
  • Flip Y axis: Check the box to flip the mask around the Y axis.
  • Flip tiles position along Y axis: Check the box to flip the position of the tiles along the Y axis. The files with the smallest Y axis are at the bottom, and the files with the largest Y index are at the top. The X axis does not change.

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. It means we go down when the index Y increases.

  • Override import region: Check the box to override the import region if you want to specify the files to load; otherwise, Instant Terra detects the files to load automatically.

For example, if you have 12 files, you can load only some of them, (1, 1) up to (2, 2).

  • Click OK to load the mask files.

Parameters

Parameter Use
File name Name of the file to load
Quad size Size of the mask quads
Mask information Shows the width, height, and bits of the mask
Flip Y axis Flips the mask 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 © 2019 · All Rights Reserved · Wysilab