元編程參考文件

地形表面

14 個節點

本頁內容 14

地形分析貼圖

函數

自然風格據以鋪設調色盤的分析貼圖:侵蝕留下的岩屑、沉積與磨蝕,水面與溼潤岸地。

簽名
地形分析貼圖 -> Terrain Analysis Maps
    岩屑: Scalar Field
    沉積: Scalar Field
    磨蝕: Scalar Field
    水面: Scalar Field
    溼潤岸地: Scalar Field
TerrainAnalysisMaps AnalysisMaps(
    ScalarField2D debris,
    ScalarField2D deposition,
    ScalarField2D wear,
    ScalarField2D water,
    ScalarField2D wetBanks)

參數

名稱型別預設值說明
岩屑Scalar Field—Rock fallen and left by erosion: talus.
沉積Scalar Field—Sediment water laid down.
磨蝕Scalar Field—Where water and weather wore the surface.
水面Scalar Field—Where water stands, 1 on water.
溼潤岸地Scalar Field—The damp ground above the waterline.

返回

分析貼圖Terrain Analysis Maps
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
地形表面
所屬包
程序化生成

劣地地形調色盤

函數

劣地:臺地與緩坡上的草原,高處裸露的淺黃黏土,地勢陡落處條帶狀的黏土與軟砂岩崖壁,崖腳衝下的同樣黏土,以及溝谷平地上龜裂的黏土。

簽名
劣地地形調色盤() -> Terrain Palette
TerrainPalette BadlandsPalette()

返回

調色盤Terrain Palette

備註

Badland walls are lower and less steep than a canyon's: lay this with a cliff slope in the low thirties of degrees (Natural Texturing Settings), as Make Landscape's Badlands style does, or much of the banding is laid as ground.

所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
地形表面
所屬包
程序化生成

烘焙地形表面

函數

把調色盤鋪在地形上,烘焙成顏色、法線、粗糙度和高度貼圖。

簽名
烘焙地形表面 -> Baked Terrain Surface
    地形: Scalar Field
    調色盤: Terrain Palette
    烘焙尺寸: 整數
    風格: Terrain Texture Style
    水面: Scalar Field
    分析貼圖: Terrain Analysis Maps
    設定: Natural Terrain Settings
BakedTerrainSurface BakeTerrainSurface(
    ScalarField2D terrain,
    TerrainPalette palette,
    int bakeSize = 2048,
    TerrainTextureStyle style = TerrainTextureStyle.Natural,
    ScalarField2D water,
    TerrainAnalysisMaps analysis,
    NaturalTerrainSettings settings)

參數

名稱型別預設值說明
地形Scalar Field—Heights in metres; its PhysicalScale, metres per cell, decides how large the materials are laid.
調色盤Terrain Palette—The materials by role; the default palette when omitted.
烘焙尺寸整數2048Pixels across the result; the depth follows the terrain's shape.
風格Terrain Texture Style自然How the palette is laid: by the land's shape, by height bands, or in flat colours.
水面Scalar Field—The water surface in metres, a number on water and NaN on dry ground, as Terrain Water's Fill gives it in Surface Elevation: the shore and the bed are laid along and under it, and the images show the water over them. Give the same to the viewer, which lays the water level. Without it there is no water.
分析貼圖Terrain Analysis Maps—Maps from analysis that the natural style lays by: an erosion's debris, deposition and wear, and wet banks. Without them it reads the land's shape alone.
設定Natural Terrain Settings—Where the natural style's roles go: the slope a cliff starts at, how far fallen rock reaches, the snow line and the rest. The defaults suit any landscape, with snow on the top fifth of its relief when the palette has snow.

返回

表面Baked Terrain Surface
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
地形表面
所屬包
程序化生成

地形調色盤

函數

調色盤:地貌中每種角色各一種材質。只有地面是必需的。

簽名
地形調色盤 -> Terrain Palette
    地面: Terrain Surface Material
    地面變化: Terrain Surface Material
    裸露山頂: Terrain Surface Material
    懸崖: Terrain Surface Material
    崩落岩屑: Terrain Surface Material
    沉積物: Terrain Surface Material
    岸邊: Terrain Surface Material
    溼潤岸地: Terrain Surface Material
    雪: Terrain Surface Material
TerrainPalette CreatePalette(
    TerrainSurfaceMaterial ground,
    TerrainSurfaceMaterial groundVariation,
    TerrainSurfaceMaterial exposedTops,
    TerrainSurfaceMaterial cliff,
    TerrainSurfaceMaterial talus,
    TerrainSurfaceMaterial sediment,
    TerrainSurfaceMaterial shore,
    TerrainSurfaceMaterial wetBank,
    TerrainSurfaceMaterial snow)

參數

名稱型別預設值說明
地面Terrain Surface Material—Everywhere, beneath everything.
地面變化Terrain Surface Material—A second ground in large patches, so the ground is not one colour throughout.
裸露山頂Terrain Surface Material—Ridges and rises, paler and barer; with height bands, the mountain band.
懸崖Terrain Surface Material—Faces too steep to hold soil, projected from the side so they do not stretch.
崩落岩屑Terrain Surface Material—Rock fallen from the faces above, at their feet.
沉積物Terrain Surface Material—Fine material in hollows and on flats.
岸邊Terrain Surface Material—The water's edge; with height bands, the beach.
溼潤岸地Terrain Surface Material—Damp ground and moss where water gathers.
雪Terrain Surface Material—Above the snow line.

返回

調色盤Terrain Palette
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
地形表面
所屬包
程序化生成

預設地形調色盤

函數

來自素材庫的溫帶山地調色盤。

簽名
預設地形調色盤() -> Terrain Palette
TerrainPalette DefaultPalette()

返回

調色盤Terrain Palette

備註

The materials and their tints are the terrain studio's alpine palette, which was tuned against renders of real mountains; the shore is sand rather than the alpine palette's gravel, so that height bands draw a beach.

所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
地形表面
所屬包
程序化生成

荒漠地形調色盤

函數

來自素材庫的峽谷地區調色盤:礫質沙地、砂岩崖壁、崩落岩石、淤泥色的河流。

簽名
荒漠地形調色盤() -> Terrain Palette
TerrainPalette DesertPalette()

返回

調色盤Terrain Palette

備註

The terrain studio's desert palette, which dressed the Goosenecks of the San Juan and Horseshoe Bend from their lidar; its tints pull the sands toward the sandstone's pink-brown.

所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
地形表面
所屬包
程序化生成

沙丘地形調色盤

函數

石膏沙丘,如白沙:近乎白色的沙,丘間平地上龜裂的硬殼,積水處的灌叢。

簽名
沙丘地形調色盤() -> Terrain Palette
TerrainPalette DunePalette()

返回

調色盤Terrain Palette

備註

Gypsum sand is far paler than quartz: the dunes reflect nearly as much light as old snow, so their ground is the library's snow, warmed, with the fine grain of its sand in patches over it; slip faces stand at about 33 degrees, below the slope at which the stack lays cliffs, so dunes take none.

所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
地形表面
所屬包
程序化生成

熔岩地形調色盤

函數

新鮮熔岩,如基拉韋厄:灰黑色的玄武岩,平滑的熔岩流與粗糙的碎塊,風化處少許草和蕨。

簽名
熔岩地形調色盤() -> Terrain Palette
TerrainPalette LavaPalette()

返回

調色盤Terrain Palette
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
地形表面
所屬包
程序化生成

素材庫材質

函數

Divooka 素材庫中的材質(Poly Haven 的 CC0 材質集),按真實尺寸。

簽名
素材庫材質(名稱: 文字) -> Terrain Surface Material
TerrainSurfaceMaterial LibraryMaterial(string id)

參數

名稱型別預設值說明
名稱文字—The set, such as forest_ground_01 or rock_face_03.

返回

材質Terrain Surface Material
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
地形表面
所屬包
程序化生成

載入紋理集

函數

從按 Poly Haven 命名的貼圖資料夾讀取材質。

簽名
載入紋理集 -> Terrain Surface Material
    資料夾: 文字
    名稱: 文字
    解析度: 文字
    尺寸(米): 數字
TerrainSurfaceMaterial LoadTextureSet(
    string folder,
    string id,
    string resolution = "1k",
    double sizeMetres = 2)

參數

名稱型別預設值說明
資料夾文字—The folder holding the maps.
名稱文字—The set's name, the part of each file name before the map's.
解析度文字1kThe resolution in the file names: 1k, 2k, 4k.
尺寸(米)數字2The width in metres of the ground one copy of the texture shows; Poly Haven gives it on each set's page.

返回

材質Terrain Surface Material
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
地形表面
所屬包
程序化生成

自然紋理設定

函數

自然風格各角色的鋪設位置,以米和度為單位。預設值適用於任何地貌。

簽名
自然紋理設定 -> Natural Terrain Settings
    懸崖坡度(度): 數字
    懸崖過渡(度): 數字
    岩屑範圍(米): 數字
    裸露山頂半徑(米): 數字
    溼潤岸地寬度(米): 數字
    岸邊寬度(米): 數字
    雪線(米): 數字
    變化尺度(米): 數字
    坡度尺度(米): 數字
    懸崖交由渲染器: 真否
    種子: 整數
NaturalTerrainSettings NaturalTexturingSettings(
    double cliffSlopeDegrees = 38,
    double cliffSoftnessDegrees = 6,
    double talusReachMetres = 60,
    double exposedTopRadiusMetres = 150,
    double wetBankWidthMetres = 12,
    double shoreWidthMetres = 4,
    double snowLineMetres = double.NaN,
    double variationMetres = 350,
    double slopeScaleMetres = 4,
    bool cliffsAtRender = true,
    int seed = 1337)

參數

名稱型別預設值說明
懸崖坡度(度)數字38The slope at which ground gives way to cliff.
懸崖過渡(度)數字6How many degrees the change from ground to cliff takes.
岩屑範圍(米)數字60How far below a cliff fallen rock reaches.
裸露山頂半徑(米)數字150The size of the rises that count as exposed tops: a ridge or a plateau, not every rim.
溼潤岸地寬度(米)數字12Width of the damp band along water.
岸邊寬度(米)數字4Width of the washed stones at the water's edge.
雪線(米)數字NaNElevation above which snow lies; NaN for the top fifth of the terrain's relief when the palette has snow. Higher than the terrain for none.
變化尺度(米)數字350Size of the large patches of ground variation.
坡度尺度(米)數字4The scale slope is judged at: the terrain is smoothed over this first, so cliffs are found as landforms and not as the noise of fine data.
懸崖交由渲染器真否TrueLeave cliffs to a renderer that lays them from the side at full detail, as Render Terrain does; the images show them baked in either way.
種子整數1337The seed of the patterns that break up each role.

返回

設定Natural Terrain Settings
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
地形表面
所屬包
程序化生成

雨林地形調色盤

函數

溫帶雨林:樹下的落葉與林地,岩石和高處的苔蘚,長滿苔蘚的灰色巖壁,水邊的河礫與卵石。

簽名
雨林地形調色盤() -> Terrain Palette
TerrainPalette RainforestPalette()

返回

調色盤Terrain Palette
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
地形表面
所屬包
程序化生成

沼澤地形調色盤

函數

沼澤:落葉下的泥地,較幹高地上的草,水漲水落處裸露的溼泥與淤泥。沒有岩石:沼澤是平的。

簽名
沼澤地形調色盤() -> Terrain Palette
TerrainPalette SwampPalette()

返回

調色盤Terrain Palette
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
地形表面
所屬包
程序化生成

地形材質

函數

由影像組成的材質:顏色、法線(OpenGL 約定,綠色朝上)、粗糙度、高度與環境光遮蔽中的任意幾種。

簽名
地形材質 -> Terrain Surface Material
    顏色: Pixel Image
    法線: Pixel Image
    粗糙度: Pixel Image
    高度: Pixel Image
    環境光遮蔽: Pixel Image
    尺寸(米): 數字
    名稱: 文字
TerrainSurfaceMaterial TerrainMaterial(
    PixelImage albedo,
    PixelImage normal,
    PixelImage roughness,
    PixelImage height,
    PixelImage ambientOcclusion,
    double sizeMetres = 2,
    string name = "Material")

參數

名稱型別預設值說明
顏色Pixel Image—Colour, sRGB.
法線Pixel Image—Tangent-space normals, green up (Poly Haven's nor_gl, Blender); flip the green channel of a DirectX (nor_dx, Unreal) map first.
粗糙度Pixel Image—Roughness, white rough.
高度Pixel Image—Height or displacement, white high; it decides which material shows where two meet.
環境光遮蔽Pixel Image—Ambient occlusion, white open.
尺寸(米)數字2The width in metres of the ground one copy of the texture shows.
名稱文字MaterialA name for the material.

返回

材質Terrain Surface Material
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
地形表面
所屬包
程序化生成