- Documentation
- Pullsar Noise Lab
- Layers and Masks
Layers and Masks
Layers are optional weight masks for Landscape materials, for example rock on steep slopes, snow above a height, or noise breakup. Each layer exports as an 8-bit grayscale PNG in the package ZIP.
Add layers in the Layers section of Heightmap Studio with + Slope, + Height band or + Breakup. A terrain holds at most eight layers.
How a mask byte is computed
Section titled “How a mask byte is computed”Every layer gives one weight from 0 to 1 at each exported vertex. The file stores round(weight × 255), so 0 is no weight and 255 is full weight. The PNG has the same resolution and the same row and column order as the heightmap.
Masks describe the final terrain: regions are applied and heights are quantized to 16 bits first. Each layer is an independent mask. Weights across layers are not normalized to add up to full weight.
Most layers ramp between two values. Below the first value the weight is 0, above the second it is 1, and it rises evenly between them. Equal values give a sharp edge.
Slope layer
Section titled “Slope layer”A Slope layer follows the steepness of the exported terrain.
| Field | Meaning |
|---|---|
| Starts at (°) | At and below this angle the weight is 0 |
| Full at (°) | At and above this angle the weight is 1 |
The defaults are 25° and 40°. The upper limit is 89.4°. Slope is measured on the exported heights, using the recommended Unreal scale, so it changes with World width, Vertical span and resolution. Change any of these and the same angles select different ground.
Height band layer
Section titled “Height band layer”A Height band layer follows elevation. All four values are in meters, relative to the landscape’s local Z = 0, and each is limited by its neighbors.
| Field | Meaning |
|---|---|
| Starts at | At and below this height the weight is 0, then it rises evenly |
| Full from | The lowest height with full weight |
| Full to | The highest height with full weight |
| Ends at | At and above this height the weight is 0, falling evenly from Full to |
A new band starts in the upper part of the terrain’s relief. If no height falls inside a band, the card warns that the layer would export as all 0. Your values are kept as you entered them.
Breakup layer
Section titled “Breakup layer”A Breakup layer follows its own noise pattern. It does not read the terrain heights, so it covers the whole landscape.
- It has the same noise controls as Classic Noise: Seed, Composition, Frequency, Octaves, Persistence, Contrast, and Advanced, plus its own Seamless switch.
- Starts at and Full at are pattern values from 0 to 1. The defaults, 0 and 1, keep the pattern as it is.
- Use Noise Studio pattern copies Noise Studio’s current settings into the layer once. The two stay separate afterwards.
Noise Studio’s PNG samples the pattern on its pixel grid, and a layer samples landscape vertices. The values match where the two grids meet, not pixel for pixel.
Layer names
Section titled “Layer names”A layer name is also the name of its file and of the Landscape layer in Unreal. Use the same name in your Landscape material and on the Layer Info so Unreal pairs them.
- A letter first, then letters, digits or underscores, at most 32 characters.
- Names are compared ignoring case, as in Unreal.
- A name cannot make Unreal read a
u,v,xoryfollowed by digits in the file name as a tile coordinate. Noise Lab refuses such names. - Zones is reserved for the mask that regions produce, whatever the case, when the terrain has regions.
- Noise Lab does not refuse a name that ends in an underscore and four digits, such as
Rock_2001, but the layer file’s name then matches Unreal’s UDIM naming pattern. Choose another name. See Known Limitations.
New layers are named Slope, HeightBand and Breakup, with _2, _3 and so on when a name is taken. Removing a layer shows an Undo link.
Masks view
Section titled “Masks view”Masks in Preview mode shows the selected layer as grayscale: black is weight 0 and white is full weight. Each pixel is exactly the byte the exported layer file holds at that vertex. The Terrain Inspector lists every layer’s byte at a vertex.
Zones mask
Section titled “Zones mask”The Zones mask comes from regions. It is not one of your layers, does not count toward the eight, and has nothing to set. It appears in the package as <name>_zones.png when at least one region is enabled.
A Zones byte is 255 inside a region’s core and falls to 0 across its blend, whatever the region’s flatness. Where regions overlap, the byte follows the strongest one.
To use it in Unreal, add a Landscape layer of your own, for example Zones, and assign the PNG to it. A terrain with regions and no layers exports a package that holds only the Zones mask.
Use masks in Unreal
Section titled “Use masks in Unreal”Follow Unreal Landscape Import. Two points matter most:
- Use Layer Info assets with Blend Method set to No Weight Blending. The other Blend Methods change the weights. Weight Blending (Legacy) rescales the layers at each vertex to add up to full weight, and Advanced Weight Blending scales layers down where they add up to more than full weight. Either way the imported weights differ from the files.
- Keep Layer Alphamap Type at Additive.