Skip to content
Brass Orrery

Orrery Terrain · OrreryTerrain module · class

UOrreryTerrainSplatAsset

A splat brush as an asset: one RGBA image that paints up to four terrain paint layers in one dab.

Declaration

UCLASS(BlueprintType)
class UOrreryTerrainSplatAsset : public UDataAsset
Header
#include "OrreryTerrainBrushAsset.h"
Module
PublicDependencyModuleNames.Add("OrreryTerrain"); in your module’s Build.cs.
Stability
Stable: changes within a major version only add.
Thread
Game thread.
Derives from
UDataAsset
Blueprint
“Orrery Terrain Splat Asset”, a Blueprint type

Description

Each channel with a layer bakes to its own single-channel mask (the same FBrushMask as a UOrreryTerrainBrushAsset holds, content-hashed and registered like any mask). A dab is then up to four masked Paint steps in the fixed order red, green, blue, alpha, inside one stroke, so the stroke is one undo. The bake turns the channels into per-step masks so that those steps leave each layer at its channel's weight (see BrushBake::FromSplatRgba16); a channel with no layer (-1) counts as 0 and is skipped.

Like the brush asset it keeps only the baked bytes at runtime: the source texture is editor-only data and a cooked game needs none. The layers are read live and decide which baked channels are used, but they also shaped the bake (a channel left out is not part of the sum), so change a layer to or from -1 and rebake.

Note.

Experimental in v1.0. Game thread. No format change: a splat dab is ordinary masked Paint records.

Functions

Properties

NameTypeDefaultMeaning
LayerRedBlueprintReadWriteint320

The paint layer the red channel paints, 0 to 255; -1 leaves the channel out.

LayerGreenBlueprintReadWriteint321

The paint layer the green channel paints, 0 to 255; -1 leaves the channel out.

LayerBlueBlueprintReadWriteint322

The paint layer the blue channel paints, 0 to 255; -1 leaves the channel out.

LayerAlphaBlueprintReadWriteint32-1

The paint layer the alpha channel paints, 0 to 255; -1 (the default) leaves it out, as an image's alpha is often opaque.

SideBlueprintReadOnlyint320

Samples a side of each baked mask, 0 for 256.

Rounded to the nearest power of two from 8 to 2048.

DepthBlueprintReadOnlyEOrreryTerrainBrushDepthEOrreryTerrainBrushDepth::Default

Bits a sample; Default is 8.

DefaultAngleBlueprintReadWritedouble0.0

The angle a tool starts with for this splat, degrees (FOrreryTerrainBrushBP::MaskAngle).

DefaultRadiusBlueprintReadWritedouble2000.0

The radius a tool starts with for this splat, cm.

Blueprint