高度圖視覺化
20 個節點
本頁內容 20
應用顏色漸層
函數過載 1/4
應用顏色漸層(高度圖: Scalar Field) -> Pixel Image
PixelImage ApplyColorRamp(ScalarField2D heightmap)
此節點沒有文件說明。
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 高度圖 | Scalar Field | — |
返回
| 結果 | Pixel Image |
過載 2/4
應用顏色漸層 -> Pixel Image
源場: Scalar Field
漸層色標: IReadOnlyList<Color Stop>PixelImage ApplyColorRamp(
ScalarField2D sourceField,
IReadOnlyList<ColorStop> colorStops)Applies full range color ramp on a source field.
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 源場 | Scalar Field | — | Source heightmap, mask, etc. |
| 漸層色標 | IReadOnlyList<Color Stop> | — |
返回
| 結果 | Pixel Image |
過載 3/4
應用顏色漸層 -> Pixel Image
源場: Scalar Field
顏色漸層: Color RampPixelImage ApplyColorRamp(
ScalarField2D sourceField,
ColorRamp colorRamp)Applies a normalized color ramp to a source field using its own min/max range.
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 源場 | Scalar Field | — | |
| 顏色漸層 | Color Ramp | — |
返回
| 結果 | Pixel Image |
過載 4/4
應用顏色漸層 -> Pixel Image
源場: Scalar Field
顏色漸層: Color Ramp
最小值: 數字
最大值: 數字PixelImage ApplyColorRamp(
ScalarField2D sourceField,
ColorRamp colorRamp,
double minimumValue,
double maximumValue)Applies a normalized color ramp to a source field using an explicit value range.
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 源場 | Scalar Field | — | |
| 顏色漸層 | Color Ramp | — | |
| 最小值 | 數字 | — | |
| 最大值 | 數字 | — |
返回
| 結果 | Pixel Image |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 高度圖視覺化
- 所屬包
- 程序化生成
應用帶陰影的顏色漸層
函數此節點沒有文件說明。
過載 1/2
應用帶陰影的顏色漸層 -> Pixel Image
高度圖: Scalar Field
陰影強度: 數字PixelImage ApplyShadedColorRamp(
ScalarField2D heightmap,
double shadeStrength = 0.5)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 高度圖 | Scalar Field | — | |
| 陰影強度 | 數字 | 0.5 |
返回
| 結果 | Pixel Image |
過載 2/2
應用帶陰影的顏色漸層 -> Pixel Image
高度圖: Scalar Field
漸層色標: IReadOnlyList<Color Stop>
陰影強度: 數字
方位角(度): 數字
高度角: 數字PixelImage ApplyShadedColorRamp(
ScalarField2D heightmap,
IReadOnlyList<ColorStop> colorStops,
double shadeStrength = 0.5,
double azimuthDegrees = 315,
double altitudeDegrees = 45)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 高度圖 | Scalar Field | — | |
| 漸層色標 | IReadOnlyList<Color Stop> | — | |
| 陰影強度 | 數字 | 0.5 | |
| 方位角(度) | 數字 | 315 | |
| 高度角 | 數字 | 45 |
返回
| 結果 | Pixel Image |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 高度圖視覺化
- 所屬包
- 程序化生成
烘焙陰影圖
函數過載 1/2
烘焙陰影圖 -> Pixel Image
高度圖: Scalar Field
太陽方向: Vector3
解析度比例: 整數
太陽大小: 數字
軟陰影取樣數: 整數
平行計算: 真否PixelImage BakeShadowMap(
ScalarField2D heightmap,
Vector3 sunDirection,
int resolutionScale = 1,
double sunSize = 0,
int softShadowSamples = 32,
bool parallelCompute = false)Bakes a grayscale shadow map from a terrain scalar field.
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 高度圖 | Scalar Field | — | Source terrain height field. |
| 太陽方向 | Vector3 | — | Direction from a terrain point toward the sun. For example, Vector3.UnitZ represents a sun directly overhead. |
| 解析度比例 | 整數 | 1 | Output resolution multiplier. Values greater than one currently use bilinear height sampling to evaluate the higher-resolution output pixels. |
| 太陽大小 | 數字 | 0 | Angular radius of the sun in degrees. Zero produces sharp shadows. |
| 軟陰影取樣數 | 整數 | 32 | Number of sun-disc samples used when Sun Size is greater than zero. |
| 平行計算 | 真否 | False | Enables row-level parallel processing. Gives big speed up on multi-core CPUs. |
返回
| 結果 | Pixel Image |
過載 2/2
烘焙陰影圖 -> Pixel Image
高度圖: Scalar Field
地理座標: Geographic Coordinate
時間日期: DateTimeOffset
解析度比例: 整數
太陽大小: 數字
軟陰影取樣數: 整數
平行計算: 真否
高度圖 Y 軸朝北: 真否PixelImage BakeShadowMap(
ScalarField2D heightmap,
GeographicCoordinate geographicCoordinate,
DateTimeOffset dateTime,
int resolutionScale = 1,
double sunSize = 0,
int softShadowSamples = 32,
bool parallelCompute = false,
bool heightmapYPointsNorth = true)Bakes a grayscale Earth sunlight shadow map for a geographic location and date.
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 高度圖 | Scalar Field | — | Source terrain height field. |
| 地理座標 | Geographic Coordinate | — | Geographic location represented by the terrain. |
| 時間日期 | DateTimeOffset | — | Absolute date and time for which the Sun direction is calculated. The supplied UTC offset is honored. |
| 解析度比例 | 整數 | 1 | Output resolution multiplier. Values greater than one currently use bilinear height sampling to evaluate the higher-resolution output pixels. |
| 太陽大小 | 數字 | 0 | Angular radius of the sun in degrees. Zero produces sharp shadows. The real Sun has an approximate angular radius of 0.27 degrees. |
| 軟陰影取樣數 | 整數 | 32 | Number of sun-disc samples used when Sun Size is greater than zero. |
| 平行計算 | 真否 | False | Enables row-level parallel processing. Gives big speed up on multi-core CPUs. |
| 高度圖 Y 軸朝北 | 真否 | True | True when increasing heightmap Y coordinates point north. Set to false for conventional north-up raster (DEM) data where row indices increase southward. |
返回
| 結果 | Pixel Image |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 高度圖視覺化
- 所屬包
- 程序化生成
烘焙可見性圖
函數過載 1/2
烘焙可見性圖 -> Scalar Field
高度圖: Scalar Field
相機: Camera SpecificationScalarField2D BakeVisibilityMap(
ScalarField2D heightmap,
HeightmapCameraVisibilityMapBaker.CameraSpecification camera)Bakes a terrain visibility mask using default bake settings.
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 高度圖 | Scalar Field | — | Source terrain height field. |
| 相機 | Camera Specification | — | Camera used to determine terrain visibility. |
返回
| 結果 | Scalar Field |
過載 2/2
烘焙可見性圖 -> Scalar Field
高度圖: Scalar Field
相機: Camera Specification
設定: Visibility Map Bake SettingsScalarField2D BakeVisibilityMap(
ScalarField2D heightmap,
HeightmapCameraVisibilityMapBaker.CameraSpecification camera,
HeightmapCameraVisibilityMapBaker.VisibilityMapBakeSettings settings)Bakes a terrain visibility mask using detailed bake settings.
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 高度圖 | Scalar Field | — | Source terrain height field. |
| 相機 | Camera Specification | — | Camera used to determine terrain visibility. |
| 設定 | Visibility Map Bake Settings | — | Visibility baking configuration. |
返回
| 結果 | Scalar Field |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 高度圖視覺化
- 所屬包
- 程序化生成
配置可見性相機
函數Configures the camera a visibility map is baked for: where it stands, where it looks, and how wide it sees.
配置可見性相機 -> Camera Specification
位置: Vector3d
前方: Vector3d
水平視野角: 數字
垂直視野角: 數字
遠平面: 數字HeightmapCameraVisibilityMapBaker.CameraSpecification ConfigureVisibilityCamera(
Vector3d position,
Vector3d forward,
double horizontalFieldOfView = 90,
double verticalFieldOfView = 60,
double farPlane = 10000)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 位置 | Vector3d | — | Where the camera stands, in terrain world space: rows run along +X and columns along +Y at the heightmap's physical scale, and heights are Z. To see the terrain from above, stand higher than its highest point. |
| 前方 | Vector3d | — | The direction the camera looks. Looking across a terrain from its corner is a positive X and Y with a negative Z. |
| 水平視野角 | 數字 | 90 | How wide the camera sees, in degrees. |
| 垂直視野角 | 數字 | 60 | How tall the camera sees, in degrees. |
| 遠平面 | 數字 | 10000 | How far the camera sees, in world units. |
返回
| 結果 | Camera Specification |
備註
The camera's properties can only be set as it is constructed, and nodes cannot construct a type that way yet, so without this tool no graph could hand the baker a camera at all - Terrain Visibility Map failed every run with "Value cannot be null. (Parameter 'camera')". It is the same stand-in HeightmapGenerator.ConfigureHeightmapNoiseSettings is for noise settings. A perspective camera whose up is the terrain's up, which is what a person standing on or above a terrain is.
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 高度圖視覺化
- 所屬包
- 程序化生成
生成生物群系紋理
函數Generates a biome texture image based on the heightmap data.
生成生物群系紋理(高度圖: Scalar Field) -> Pixel Image
PixelImage GenerateBiomeTexture(ScalarField2D heightmap)
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 高度圖 | Scalar Field | — |
返回
| 結果 | Pixel Image |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 高度圖視覺化
- 所屬包
- 程序化生成
生成生物群系漸層紋理
函數此節點沒有文件說明。
生成生物群系漸層紋理(高度圖: Scalar Field) -> Pixel Image
PixelImage GenerateBiomeTextureGradient(ScalarField2D heightmap)
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 高度圖 | Scalar Field | — |
返回
| 結果 | Pixel Image |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 高度圖視覺化
- 所屬包
- 程序化生成
生成法線貼影像素影像
函數Generates a tangent-space normal map from a heightmap.
生成法線貼影像素影像 -> Pixel Image
高度圖: Scalar Field
法線強度: 數字
使用物理比例: 真否
反轉綠色: 真否PixelImage GenerateNormalMapPixelImage(
ScalarField2D heightmap,
double normalStrength = 1,
bool usePhysicalScale = false,
bool invertGreen = false)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 高度圖 | Scalar Field | — | Source heightmap. |
| 法線強度 | 數字 | 1 | Strength of the horizontal normal components. |
| 使用物理比例 | 真否 | False | Whether gradient calculation uses the heightmap's PhysicalScale. |
| 反轉綠色 | 真否 | False | Inverts the tangent-space Y/green channel for consumers using the opposite normal-map convention. |
返回
| 結果 | Pixel Image |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 高度圖視覺化
- 所屬包
- 程序化生成
取得蒙版範圍
函數此節點沒有文件說明。
取得蒙版範圍(蒙版: Scalar Field) -> HeightmapVisualizationRoutines.MaskRange
HeightmapVisualizationRoutines.MaskRange GetMaskRange(ScalarField2D mask)
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 蒙版 | Scalar Field | — |
返回
| 結果 | HeightmapVisualizationRoutines.MaskRange |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 高度圖視覺化
- 所屬包
- 程序化生成
疊加等高線
函數此節點沒有文件說明。
疊加等高線 -> Pixel Image
基礎影像: Pixel Image
高度圖: Scalar Field
間隔: 數字
線條顏色: 可選顏色
不透明度: 數字PixelImage OverlayContours(
PixelImage baseImage,
ScalarField2D heightmap,
double interval,
ColorElement? lineColor,
double opacity = 1)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 基礎影像 | Pixel Image | — | |
| 高度圖 | Scalar Field | — | |
| 間隔 | 數字 | — | |
| 線條顏色 | 可選顏色 | — | |
| 不透明度 | 數字 | 1 |
返回
| 結果 | Pixel Image |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 高度圖視覺化
- 所屬包
- 程序化生成
渲染帶陰影的表面像素影像
函數Renders a scalar field as a lit height surface using color-ramp tint, normal-based diffuse lighting, specular highlights, fresnel tint, and optional crest foam.
過載 1/2
渲染帶陰影的表面像素影像(源場: Scalar Field) -> Pixel Image
PixelImage RenderShadedSurfacePixelImage(ScalarField2D sourceField)
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 源場 | Scalar Field | — |
返回
| 結果 | Pixel Image |
過載 2/2
渲染帶陰影的表面像素影像 -> Pixel Image
源場: Scalar Field
設定: HeightmapVisualizationRoutines.SurfaceShadingSettingsPixelImage RenderShadedSurfacePixelImage(
ScalarField2D sourceField,
HeightmapVisualizationRoutines.SurfaceShadingSettings settings)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 源場 | Scalar Field | — | |
| 設定 | HeightmapVisualizationRoutines.SurfaceShadingSettings | — |
返回
| 結果 | Pixel Image |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 高度圖視覺化
- 所屬包
- 程序化生成
轉為等高線圖
函數此節點沒有文件說明。
轉為等高線圖 -> Pixel Image
高度圖: Scalar Field
間隔: 數字
線條顏色: 可選顏色
背景顏色: 可選顏色PixelImage ToContourMap(
ScalarField2D heightmap,
double interval = 0.1,
ColorElement? lineColor,
ColorElement? backgroundColor)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 高度圖 | Scalar Field | — | |
| 間隔 | 數字 | 0.1 | |
| 線條顏色 | 可選顏色 | — | |
| 背景顏色 | 可選顏色 | — |
返回
| 結果 | Pixel Image |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 高度圖視覺化
- 所屬包
- 程序化生成
轉為灰度像素影像
函數過載 1/2
轉為灰度像素影像 -> Pixel Image
源場: Scalar Field
最小值: 數字
最大值: 數字
反轉: 真否PixelImage ToGrayscalePixelImage(
ScalarField2D sourceField,
double minimumValue,
double maximumValue,
bool invert = false)Converts a scalar field to grayscale using an explicit fixed value range.
Values outside the range are clamped.
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 源場 | Scalar Field | — | |
| 最小值 | 數字 | — | |
| 最大值 | 數字 | — | |
| 反轉 | 真否 | False |
返回
| 結果 | Pixel Image |
過載 2/2
轉為灰度像素影像(高度圖: Scalar Field) -> Pixel Image
PixelImage ToGrayscalePixelImage(ScalarField2D heightmap)
此節點沒有文件說明。
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 高度圖 | Scalar Field | — |
返回
| 結果 | Pixel Image |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 高度圖視覺化
- 所屬包
- 程序化生成
轉為熱力圖
函數此節點沒有文件說明。
轉為熱力圖(高度圖: Scalar Field) -> Pixel Image
PixelImage ToHeatmap(ScalarField2D heightmap)
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 高度圖 | Scalar Field | — |
返回
| 結果 | Pixel Image |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 高度圖視覺化
- 所屬包
- 程序化生成
轉為山體陰影圖
函數此節點沒有文件說明。
轉為山體陰影圖 -> Pixel Image
高度圖: Scalar Field
方位角(度): 數字
高度角: 數字
垂直誇張: 數字PixelImage ToHillshade(
ScalarField2D heightmap,
double azimuthDegrees = 315,
double altitudeDegrees = 45,
double verticalExaggeration = 1)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 高度圖 | Scalar Field | — | |
| 方位角(度) | 數字 | 315 | |
| 高度角 | 數字 | 45 | |
| 垂直誇張 | 數字 | 1 |
返回
| 結果 | Pixel Image |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 高度圖視覺化
- 所屬包
- 程序化生成
轉為法線貼圖
函數此節點沒有文件說明。
轉為法線貼圖(高度圖: Scalar Field) -> Pixel Image
PixelImage ToNormalMap(ScalarField2D heightmap)
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 高度圖 | Scalar Field | — |
返回
| 結果 | Pixel Image |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 高度圖視覺化
- 所屬包
- 程序化生成
轉為坡度圖
函數此節點沒有文件說明。
轉為坡度圖 -> Pixel Image
高度圖: Scalar Field
最大坡度(度): 數字PixelImage ToSlopeMap(
ScalarField2D heightmap,
double maxSlopeDegrees = 60)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 高度圖 | Scalar Field | — | |
| 最大坡度(度) | 數字 | 60 |
返回
| 結果 | Pixel Image |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 高度圖視覺化
- 所屬包
- 程序化生成
轉為體素空間影像
函數過載 1/4
轉為體素空間影像 -> Pixel Image
高度圖: Scalar Field
寬度: 整數
高度: 整數
相機: VoxelCameraPixelImage ToVoxelSpaceImage(
ScalarField2D heightmap,
int width,
int height,
VoxelCamera camera)Renders a VoxelSpace-style first-person terrain view into a PixelImage.
Camera X/Y are in heightmap pixel coordinates. Camera Height is in normalized 0..255 height units.
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 高度圖 | Scalar Field | — | |
| 寬度 | 整數 | — | |
| 高度 | 整數 | — | |
| 相機 | VoxelCamera | — |
返回
| 結果 | Pixel Image |
過載 2/4
轉為體素空間影像 -> Pixel Image
高度圖: Scalar Field
顏色貼圖: Pixel Image
寬度: 整數
高度: 整數
相機: VoxelCameraPixelImage ToVoxelSpaceImage(
ScalarField2D heightmap,
PixelImage colorMap,
int width,
int height,
VoxelCamera camera)Renders a VoxelSpace-style first-person terrain view into a PixelImage.
Camera X/Y are in heightmap pixel coordinates. Camera Height is in normalized 0..255 height units.
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 高度圖 | Scalar Field | — | |
| 顏色貼圖 | Pixel Image | — | |
| 寬度 | 整數 | — | |
| 高度 | 整數 | — | |
| 相機 | VoxelCamera | — |
返回
| 結果 | Pixel Image |
過載 3/4
轉為體素空間影像 -> Pixel Image
高度圖: Scalar Field
寬度: 整數
高度: 整數
相機 X: 低精度數字
相機 Y: 低精度數字
相機高度: 低精度數字
角度: 低精度數字
地平線: 可選低精度數字
距離: 低精度數字PixelImage ToVoxelSpaceImage(
ScalarField2D heightmap,
int width,
int height,
float cameraX,
float cameraY,
float cameraHeight = 100f,
float angle = 0f,
float? horizon,
float distance = 1000f)Convenience overload that creates a camera from common parameters.
Camera X/Y are in heightmap pixel coordinates. Camera Height is in normalized 0..255 height units.
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 高度圖 | Scalar Field | — | |
| 寬度 | 整數 | — | |
| 高度 | 整數 | — | |
| 相機 X | 低精度數字 | — | |
| 相機 Y | 低精度數字 | — | |
| 相機高度 | 低精度數字 | 100 | |
| 角度 | 低精度數字 | 0 | |
| 地平線 | 可選低精度數字 | — | |
| 距離 | 低精度數字 | 1000 |
返回
| 結果 | Pixel Image |
備註
Similar to Divooka.Terrains.VoxelSpaceRenderer.Renderers.VoxelRenderer.
過載 4/4
轉為體素空間影像 -> Pixel Image
高度圖: Scalar Field
顏色貼圖: Pixel Image
寬度: 整數
高度: 整數
相機 X: 低精度數字
相機 Y: 低精度數字
相機高度: 低精度數字
角度: 低精度數字
地平線: 可選低精度數字
距離: 低精度數字PixelImage ToVoxelSpaceImage(
ScalarField2D heightmap,
PixelImage colorMap,
int width,
int height,
float cameraX,
float cameraY,
float cameraHeight = 100f,
float angle = 0f,
float? horizon,
float distance = 1000f)Convenience overload with explicit color map.
Camera X/Y are in heightmap pixel coordinates. Camera Height is in normalized 0..255 height units.
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 高度圖 | Scalar Field | — | |
| 顏色貼圖 | Pixel Image | — | |
| 寬度 | 整數 | — | |
| 高度 | 整數 | — | |
| 相機 X | 低精度數字 | — | |
| 相機 Y | 低精度數字 | — | |
| 相機高度 | 低精度數字 | 100 | |
| 角度 | 低精度數字 | 0 | |
| 地平線 | 可選低精度數字 | — | |
| 距離 | 低精度數字 | 1000 |
返回
| 結果 | Pixel Image |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 高度圖視覺化
- 所屬包
- 程序化生成
高程分層著色像素影像
函數An alternative color theme.
高程分層著色像素影像 -> Pixel Image
高度圖: Scalar Field
反轉: 真否
海平面: 低精度數字
漸層: IReadOnlyList<Color Stop>PixelImage VisualizeHypsometricPixelImage(
ScalarField2D heightmap,
bool invert = false,
float seaLevel = 0.35f,
IReadOnlyList<ColorStop> ramp)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 高度圖 | Scalar Field | — | |
| 反轉 | 真否 | False | |
| 海平面 | 低精度數字 | 0.35 | |
| 漸層 | IReadOnlyList<Color Stop> | — |
返回
| 結果 | Pixel Image |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 高度圖視覺化
- 所屬包
- 程序化生成
把帶陰影的表面寫入像素
函數Renders a row-major float height field directly into a tightly packed RGBA byte buffer.
Intended for realtime preview paths that should avoid PixelImage/ScalarField2D allocation per frame.
過載 1/2
把帶陰影的表面寫入像素
源資料行優先: 低精度數字陣列
寬度: 整數
高度: 整數
物理比例: 數字
像素: 位元組陣列
設定: HeightmapVisualizationRoutines.SurfaceShadingSettingsvoid WriteShadedSurfaceToPixels(
float[] sourceRowMajor,
int width,
int height,
double physicalScale,
byte[] pixels,
HeightmapVisualizationRoutines.SurfaceShadingSettings settings)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 源資料行優先 | 低精度數字陣列 | — | |
| 寬度 | 整數 | — | |
| 高度 | 整數 | — | |
| 物理比例 | 數字 | — | |
| 像素 | 位元組陣列 | — | |
| 設定 | HeightmapVisualizationRoutines.SurfaceShadingSettings | — |
備註
TODO: This function modifies incoming source. Refactor to return output instead.
過載 2/2
把帶陰影的表面寫入像素
源: 低精度數字陣列陣列
寬度: 整數
高度: 整數
物理比例: 數字
像素: 位元組陣列
設定: HeightmapVisualizationRoutines.SurfaceShadingSettingsvoid WriteShadedSurfaceToPixels(
float[][] source,
int width,
int height,
double physicalScale,
byte[] pixels,
HeightmapVisualizationRoutines.SurfaceShadingSettings settings)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 源 | 低精度數字陣列陣列 | — | |
| 寬度 | 整數 | — | |
| 高度 | 整數 | — | |
| 物理比例 | 數字 | — | |
| 像素 | 位元組陣列 | — | |
| 設定 | HeightmapVisualizationRoutines.SurfaceShadingSettings | — |
備註
TODO: This function modifies incoming source. Refactor to return output instead.
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 高度圖視覺化
- 所屬包
- 程序化生成