Skip to content
Brass Orrery

Orrery Terrain · OrreryTerrain module · member function

UOrreryTerrainSplatAsset::

BakeFromPixels

Blueprint

Bake raw 8-bit RGBA pixels into this asset, replacing any baked masks (game code and tests; the editor bakes from SourceTexture).

Declaration

UFUNCTION(BlueprintCallable, Category="Orrery|Terrain|Brush")
EOrreryTerrainBrushBake BakeFromPixels(const TArray<uint8>& Rgba, int32 Width, int32 Height);
Blueprint Bake from Pixels
The graph as text
  1. Bake from Pixels (function call; Target is Orrery Terrain Splat Asset)
    • In Target (self object): self
    • In Rgba (array of Byte): not connected
    • In Width (Integer): 0
    • In Height (Integer): 0
    • Out Return Value (EOrreryTerrainBrushBake): not connected
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. (the rule of UOrreryTerrainSplatAsset)
Blueprint
Bake from Pixels, in Orrery › Terrain › Brush

Parameters

NameTypeDefaultMeaning
Rgbaconst TArray<uint8>&—

Width x Height x 4 bytes, R G B A per pixel, row-major.

Widthint32—

Pixels a row.

Heightint32—

Rows.

Returns

Ok, or why the pixels were refused (the asset is unchanged then). NoSource when no channel has a layer.