元编程参考文档

地形渲染

2 个节点

本页内容 2

渲染地貌

函数

用 Radeon ProRender 路径追踪渲染地貌:在生成地貌时的晴空与太阳下,水按地貌所说的外观绘制。

签名
渲染地貌 -> Pixel Image
    地貌: Landscape
    宽度: 整数
    高度: 整数
    采样数: 整数
    视角: Terrain Render View
    相机位置: Vector3
    注视点: Vector3
    焦距(毫米): 数字
PixelImage RenderLandscape(
    Landscape landscape,
    int width = 1920,
    int height = 1080,
    int samples = 128,
    TerrainRenderView view = TerrainRenderView.Diorama,
    Vector3 eye,
    Vector3 target,
    double focalLength = 35)

参数

名称类型默认值说明
地貌Landscape—Make Landscape's or Assemble Landscape's result.
宽度整数1920Width of the image, pixels.
高度整数1080Height of the image, pixels.
采样数整数128Paths traced through each pixel. More is less grainy and slower; there is no denoiser.
视角Terrain Render View全景Where the camera stands: one of the views fitted to the terrain, or Custom for the Eye and Target.
相机位置Vector3—With the Custom view, where the camera stands: metres east along the columns and south along the rows from the terrain's first cell, and elevation in metres.
注视点Vector3—With the Custom view, what the camera looks at, in the same terms.
焦距(毫米)数字35Lens, millimetres on a 36 mm wide frame.

返回

图像Pixel Image
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
地形渲染
所属包
程序化生成

渲染地形

函数

用 Radeon ProRender 路径追踪渲染带有烘焙表面的地形:由太阳和素材库的天空照明,给出水面时把水作为水平面绘制。视角为“自定义”时使用相机位置和注视点。

签名
渲染地形 -> Pixel Image
    地形: Scalar Field
    表面: Baked Terrain Surface
    水面: Scalar Field
    宽度: 整数
    高度: 整数
    采样数: 整数
    视角: Terrain Render View
    太阳方位角: 数字
    太阳高度角: 数字
    相机位置: Vector3
    注视点: Vector3
    焦距(毫米): 数字
PixelImage RenderTerrain(
    ScalarField2D terrain,
    BakedTerrainSurface surface,
    ScalarField2D water,
    int width = 1920,
    int height = 1080,
    int samples = 128,
    TerrainRenderView view = TerrainRenderView.Diorama,
    double sunBearing = 247,
    double sunAltitude = 35,
    Vector3 eye,
    Vector3 target,
    double focalLength = 35)

参数

名称类型默认值说明
地形Scalar Field—Heights in metres: the terrain the surface was baked over.
表面Baked Terrain Surface—Bake Terrain Surface's result; its maps are the ground, under the water too.
水面Scalar Field—The water surface in metres, NaN on dry ground, as Terrain Water's Fill gives it in Surface Elevation: the same that went into the bake. Without it there is no water.
宽度整数1920Width of the image, pixels.
高度整数1080Height of the image, pixels.
采样数整数128Paths traced through each pixel. More is less grainy and slower; there is no denoiser.
视角Terrain Render View全景Where the camera stands: one of the views fitted to the terrain, or Custom for the Eye and Target.
太阳方位角数字247The sun's compass bearing, degrees clockwise from north.
太阳高度角数字35The sun's height above the horizon, degrees.
相机位置Vector3—With the Custom view, where the camera stands: metres east along the columns and south along the rows from the terrain's first cell, and elevation in metres.
注视点Vector3—With the Custom view, what the camera looks at, in the same terms.
焦距(毫米)数字35Lens, millimetres on a 36 mm wide frame. The views stand further off for a longer lens, so they frame the same.

返回

图像Pixel Image

备注

The camera is chosen by the view rather than by whether Eye is wired. A vector input always holds a value - an unwired one holds zero - so "not given" cannot be told from the terrain's corner at sea level, and a camera that moved there whenever the pin was left alone would be a trap.

所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
地形渲染
所属包
程序化生成