元编程参考文档

高度图纹理采样器

13 个节点

本页内容 13

应用平铺纹理

函数

Applies a tiled texture over an existing base layer.

签名
应用平铺纹理 -> Pixel Image
    基础图层: Pixel Image
    纹理样本: Pixel Image
    变换: Image Transform
    蒙版: Scalar Field
PixelImage ApplyTiledTexture(
    PixelImage baseLayer,
    PixelImage textureSample,
    ImageTransform transform,
    ScalarField2D mask)

参数

名称类型默认值说明
基础图层Pixel Image—Base layer. Its dimensions decide the final output size.
纹理样本Pixel Image—The source texture sample to tile over Base Layer.
变换Image Transform—Texture-placement transform applied in destination pixel space.
蒙版Scalar Field—Optional opacity mask. Must match Base Layer size.

返回

结果Pixel Image

备注

Base Layer decides the final output size. Texture Sample is tiled to fit
that size, then composited over Base Layer using normal source-over alpha composition.

With ImageTransform.Identity, one source texture pixel maps to one destination pixel. If the base
layer is larger than Texture Sample, the texture repeats automatically through wrapped sampling.

ImageTransform.Scale controls the visual size of each repeated tile. A scale of (2, 2) makes
each tile twice as large in destination pixels, producing fewer visible repetitions. A scale of (0.5, 0.5)
makes each tile half as large, producing more visible repetitions.

If Mask is provided, it must have the same dimensions as Base Layer.
The mask controls the opacity of the tiled texture before it is composited over the base layer: 0 means no
texture effect, 1 means full tiled texture opacity. If the mask is not already normalized to 0..1, it is
interpreted by rescaling its current elevation range to 0..1.

所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
高度图纹理采样器
所属包
程序化生成

快速纹理

函数

一步为地形上纹理并返回其颜色:Divooka 素材库的材质按高度或地形形态铺设,按真实尺寸,以自身的分辨率烘焙。

签名
快速纹理 -> Pixel Image
    高度场: Scalar Field
    蒙版: Scalar Field
    方案: Quick Color Scheme
    调色板: Terrain Palette
    烘焙尺寸: 整数
    水面: Scalar Field
PixelImage AutoLayering(
    ScalarField2D heightField,
    ScalarField2D mask,
    HeightmapTextureSampler.QuickColorScheme scheme = QuickColorScheme.Height,
    TerrainPalette palette,
    int bakeSize = 2048,
    ScalarField2D water)

参数

名称类型默认值说明
高度场Scalar Field—Heights in metres; its PhysicalScale must be metres per cell.
蒙版Scalar Field—Not used; kept so that documents saved with it still open.
方案Quick Color Scheme高度By height bands, by the land's shape, or in flat colours.
调色板Terrain Palette—The materials by role; Divooka's default palette when omitted.
烘焙尺寸整数2048Pixels across the result; the depth follows the terrain's shape.
水面Scalar Field—The water surface in metres, NaN on dry ground, as Terrain Water's Fill gives it in Surface Elevation; give the same to the viewer, which lays it level. Without it there is no water.

返回

纹理Pixel Image

备注

Scale is what decides whether this looks convincing or plainly wrong. Each material covers a known width of ground (two metres of forest floor, ninety of rock seen from the air) and the terrain's PhysicalScale says how much ground a cell covers, so the materials are laid at their true size, and each is filtered down to the bake's pixel size before it is sampled. A bake no finer than the terrain shows little but each material's average colour; a bake at twice its width or more lets the textures show.

所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
高度图纹理采样器
所属包
程序化生成

合成

函数

Blends two solid images by mask.

签名
合成 -> Pixel Image
    基础图层: Pixel Image
    叠加量: Pixel Image
    蒙版: Scalar Field
PixelImage Composite(
    PixelImage baseLayer,
    PixelImage addition,
    ScalarField2D mask)

参数

名称类型默认值说明
基础图层Pixel Image—
叠加量Pixel Image—
蒙版Scalar Field—Will use normalized.

返回

结果Pixel Image
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
高度图纹理采样器
所属包
程序化生成

创建平铺纹理

函数

Creates a tiled texture that fits the target pixel size.

签名
创建平铺纹理 -> Pixel Image
    宽度: 整数
    高度: 整数
    纹理样本: Pixel Image
    变换: Image Transform
    蒙版: Scalar Field
PixelImage CreateTiledTexture(
    int width,
    int height,
    PixelImage textureSample,
    ImageTransform transform,
    ScalarField2D mask)

参数

名称类型默认值说明
宽度整数—The destination width in pixels.
高度整数—The destination height in pixels.
纹理样本Pixel Image—The source texture sample to tile.
变换Image Transform—Texture-placement transform applied in destination pixel space.
蒙版Scalar Field—Optional opacity mask. Must match the destination size.

返回

结果Pixel Image

备注

The destination size is authoritative. Repetition is determined automatically from the destination size,
the source texture size, and Transform.

With ImageTransform.Identity, one source pixel maps to one destination pixel. If the destination
is larger than Texture Sample, the texture repeats automatically through wrapped sampling.

ImageTransform.Scale controls the visual size of each repeated tile. A scale of (2, 2) makes
each tile twice as large in destination pixels, producing fewer visible repetitions. A scale of (0.5, 0.5)
makes each tile half as large, producing more visible repetitions.

ImageTransform.Translation is measured in destination pixels.
ImageTransform.Rotation is measured in degrees.
ImageTransform.Pivot is measured in source texture UV space, where (0.5, 0.5) is the center of
one source texture tile.

If Mask is provided, it must have the same dimensions as the destination. The mask is used as
opacity for the tiled texture: 0 means fully transparent, 1 means fully opaque according to the tiled texture's
own alpha. If the mask is not already normalized to 0..1, it is interpreted by rescaling its current elevation
range to 0..1.

所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
高度图纹理采样器
所属包
程序化生成

沙滩纹理

函数

此节点没有文档说明。

签名
沙滩纹理() -> Pixel Image
PixelImage BeachTexture()

返回

结果Pixel Image
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
高度图纹理采样器
所属包
程序化生成

悬崖纹理

函数

此节点没有文档说明。

签名
悬崖纹理() -> Pixel Image
PixelImage CliffTexture()

返回

结果Pixel Image
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
高度图纹理采样器
所属包
程序化生成

深水纹理

函数

此节点没有文档说明。

签名
深水纹理() -> Pixel Image
PixelImage DeepWaterTexture()

返回

结果Pixel Image
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
高度图纹理采样器
所属包
程序化生成

泥土纹理

函数

此节点没有文档说明。

签名
泥土纹理() -> Pixel Image
PixelImage DirtTexture()

返回

结果Pixel Image
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
高度图纹理采样器
所属包
程序化生成

草地纹理

函数

此节点没有文档说明。

签名
草地纹理() -> Pixel Image
PixelImage GrasslandTexture()

返回

结果Pixel Image
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
高度图纹理采样器
所属包
程序化生成

山地纹理

函数

此节点没有文档说明。

签名
山地纹理() -> Pixel Image
PixelImage MountainTexture()

返回

结果Pixel Image
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
高度图纹理采样器
所属包
程序化生成

岩石纹理

函数

此节点没有文档说明。

签名
岩石纹理() -> Pixel Image
PixelImage RockTexture()

返回

结果Pixel Image
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
高度图纹理采样器
所属包
程序化生成

浅水纹理

函数

此节点没有文档说明。

签名
浅水纹理() -> Pixel Image
PixelImage ShallowWaterTexture()

返回

结果Pixel Image
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
高度图纹理采样器
所属包
程序化生成

雪地纹理

函数

此节点没有文档说明。

签名
雪地纹理() -> Pixel Image
PixelImage SnowTexture()

返回

结果Pixel Image
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
高度图纹理采样器
所属包
程序化生成