元編程參考文件

高度圖紋理取樣器

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
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
高度圖紋理取樣器
所屬包
程序化生成