FTerrainNoiseAsset
FTerrainNoiseAsset (.mnoise) — an authored procedural noise stack, the thing UE5 has no equivalent of: World Machine's layer list as a first-class asset. It stores the LAYERS, not a baked heightfield, so the same stack drives a whole-field generate on a 1025² terrain, a brush pattern that keeps its grain at any radius, and a 128² preview thumbnail from one description.
- Module
- Game
- Header
#include "Terrain/TerrainNoiseAsset.h"- Namespace
Mowo
The stack is deliberately resolution-independent — every frequency is cycles per METER — which is what lets a stack authored against a 256 m terrain be dropped on a 4 km one and still read as the same landscape.
Properties
| Type | Name | Description |
|---|---|---|
std::string | name | |
float | baseHeight | The value every blend starts from, so a Multiply-only or Min-only stack still has something to act on. Default 0.0f. |
float | previewWorldSize | The world span the PREVIEW is rendered over. Not a property of the stack — the stack is scale-free — but a preview needs some window, and storing it means reopening the asset shows the framing it was authored against instead of an arbitrary default. Default 512.0f. |
std::vector<FTerrainNoiseLayer> | layers |
Public functions
| Returns | Name | Description |
|---|---|---|
FTerrainNoiseAsset | Default | |
void | RenderPreview | Grayscale preview, size x size, row-major, normalized so the lowest sample is 0 and the highest 255. |
void | PreviewRange | Min/max of the stack over the preview window, in meters. |
bool | Load | |
bool | SaveToFile | |
std::string | SerializeToString | |
bool | LoadFromString |
Function details
Default
static FTerrainNoiseAsset Default()RenderPreview
void RenderPreview(uint32_t size, std::vector<uint8_t>& outGray) constGrayscale preview, size x size, row-major, normalized so the lowest sample is 0 and the highest 255. Empty when the stack evaluates flat — a flat stack has no contrast to stretch and any normalization would amplify float noise into visible banding.
PreviewRange
void PreviewRange(uint32_t size, float& outMin, float& outMax) constMin/max of the stack over the preview window, in meters. The panel shows it because amplitude is the one stack property a normalized preview deliberately hides.
Load
bool Load(const std::string& path)SaveToFile
bool SaveToFile(const std::string& path) constSerializeToString
std::string SerializeToString() constLoadFromString
bool LoadFromString(const std::string& text)