Heightmap Visualization Routines
20 nodes
On this page 20
Apply Color Ramp
FunctionOverload 1 of 4
ApplyColorRamp(heightmap: Scalar Field) -> Pixel Image
PixelImage ApplyColorRamp(ScalarField2D heightmap)
This node carries no documentation.
Parameters
| name | type | default | description |
|---|---|---|---|
| heightmap | Scalar Field | — |
Returns
| result | Pixel Image |
Overload 2 of 4
ApplyColorRamp -> Pixel Image
sourceField: Scalar Field
colorStops: IReadOnlyList<Color Stop>PixelImage ApplyColorRamp(
ScalarField2D sourceField,
IReadOnlyList<ColorStop> colorStops)Applies full range color ramp on a source field.
Parameters
| name | type | default | description |
|---|---|---|---|
| sourceField | Scalar Field | — | Source heightmap, mask, etc. |
| colorStops | IReadOnlyList<Color Stop> | — |
Returns
| result | Pixel Image |
Overload 3 of 4
ApplyColorRamp -> Pixel Image
sourceField: Scalar Field
colorRamp: Color RampPixelImage ApplyColorRamp(
ScalarField2D sourceField,
ColorRamp colorRamp)Applies a normalized color ramp to a source field using its own min/max range.
Parameters
| name | type | default | description |
|---|---|---|---|
| sourceField | Scalar Field | — | |
| colorRamp | Color Ramp | — |
Returns
| result | Pixel Image |
Overload 4 of 4
ApplyColorRamp -> Pixel Image
sourceField: Scalar Field
colorRamp: Color Ramp
minimumValue: Number
maximumValue: NumberPixelImage ApplyColorRamp(
ScalarField2D sourceField,
ColorRamp colorRamp,
double minimumValue,
double maximumValue)Applies a normalized color ramp to a source field using an explicit value range.
Parameters
| name | type | default | description |
|---|---|---|---|
| sourceField | Scalar Field | — | |
| colorRamp | Color Ramp | — | |
| minimumValue | Number | — | |
| maximumValue | Number | — |
Returns
| result | Pixel Image |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Heightmap Visualization Routines
- Package
- Procedural Generation
Apply Shaded Color Ramp
FunctionThis node carries no documentation.
Overload 1 of 2
ApplyShadedColorRamp -> Pixel Image
heightmap: Scalar Field
shadeStrength: NumberPixelImage ApplyShadedColorRamp(
ScalarField2D heightmap,
double shadeStrength = 0.5)Parameters
| name | type | default | description |
|---|---|---|---|
| heightmap | Scalar Field | — | |
| shadeStrength | Number | 0.5 |
Returns
| result | Pixel Image |
Overload 2 of 2
ApplyShadedColorRamp -> Pixel Image
heightmap: Scalar Field
colorStops: IReadOnlyList<Color Stop>
shadeStrength: Number
azimuthDegrees: Number
altitudeDegrees: NumberPixelImage ApplyShadedColorRamp(
ScalarField2D heightmap,
IReadOnlyList<ColorStop> colorStops,
double shadeStrength = 0.5,
double azimuthDegrees = 315,
double altitudeDegrees = 45)Parameters
| name | type | default | description |
|---|---|---|---|
| heightmap | Scalar Field | — | |
| colorStops | IReadOnlyList<Color Stop> | — | |
| shadeStrength | Number | 0.5 | |
| azimuthDegrees | Number | 315 | |
| altitudeDegrees | Number | 45 |
Returns
| result | Pixel Image |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Heightmap Visualization Routines
- Package
- Procedural Generation
Bake Shadow Map
FunctionOverload 1 of 2
BakeShadowMap -> Pixel Image
heightmap: Scalar Field
sunDirection: Vector3
resolutionScale: Integer
sunSize: Number
softShadowSamples: Integer
parallelCompute: TruthPixelImage 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.
Parameters
| name | type | default | description |
|---|---|---|---|
| heightmap | Scalar Field | — | Source terrain height field. |
| sunDirection | Vector3 | — | Direction from a terrain point toward the sun. For example, Vector3.UnitZ represents a sun directly overhead. |
| resolutionScale | Integer | 1 | Output resolution multiplier. Values greater than one currently use bilinear height sampling to evaluate the higher-resolution output pixels. |
| sunSize | Number | 0 | Angular radius of the sun in degrees. Zero produces sharp shadows. |
| softShadowSamples | Integer | 32 | Number of sun-disc samples used when Sun Size is greater than zero. |
| parallelCompute | Truth | False | Enables row-level parallel processing. Gives big speed up on multi-core CPUs. |
Returns
| result | Pixel Image |
Overload 2 of 2
BakeShadowMap -> Pixel Image
heightmap: Scalar Field
geographicCoordinate: Geographic Coordinate
dateTime: DateTimeOffset
resolutionScale: Integer
sunSize: Number
softShadowSamples: Integer
parallelCompute: Truth
heightmapYPointsNorth: TruthPixelImage 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.
Parameters
| name | type | default | description |
|---|---|---|---|
| heightmap | Scalar Field | — | Source terrain height field. |
| geographicCoordinate | Geographic Coordinate | — | Geographic location represented by the terrain. |
| dateTime | DateTimeOffset | — | Absolute date and time for which the Sun direction is calculated. The supplied UTC offset is honored. |
| resolutionScale | Integer | 1 | Output resolution multiplier. Values greater than one currently use bilinear height sampling to evaluate the higher-resolution output pixels. |
| sunSize | Number | 0 | Angular radius of the sun in degrees. Zero produces sharp shadows. The real Sun has an approximate angular radius of 0.27 degrees. |
| softShadowSamples | Integer | 32 | Number of sun-disc samples used when Sun Size is greater than zero. |
| parallelCompute | Truth | False | Enables row-level parallel processing. Gives big speed up on multi-core CPUs. |
| heightmapYPointsNorth | Truth | True | True when increasing heightmap Y coordinates point north. Set to false for conventional north-up raster (DEM) data where row indices increase southward. |
Returns
| result | Pixel Image |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Heightmap Visualization Routines
- Package
- Procedural Generation
Bake Visibility Map
FunctionOverload 1 of 2
BakeVisibilityMap -> Scalar Field
heightmap: Scalar Field
camera: Camera SpecificationScalarField2D BakeVisibilityMap(
ScalarField2D heightmap,
HeightmapCameraVisibilityMapBaker.CameraSpecification camera)Bakes a terrain visibility mask using default bake settings.
Parameters
| name | type | default | description |
|---|---|---|---|
| heightmap | Scalar Field | — | Source terrain height field. |
| camera | Camera Specification | — | Camera used to determine terrain visibility. |
Returns
| result | Scalar Field |
Overload 2 of 2
BakeVisibilityMap -> Scalar Field
heightmap: Scalar Field
camera: Camera Specification
settings: Visibility Map Bake SettingsScalarField2D BakeVisibilityMap(
ScalarField2D heightmap,
HeightmapCameraVisibilityMapBaker.CameraSpecification camera,
HeightmapCameraVisibilityMapBaker.VisibilityMapBakeSettings settings)Bakes a terrain visibility mask using detailed bake settings.
Parameters
| name | type | default | description |
|---|---|---|---|
| heightmap | Scalar Field | — | Source terrain height field. |
| camera | Camera Specification | — | Camera used to determine terrain visibility. |
| settings | Visibility Map Bake Settings | — | Visibility baking configuration. |
Returns
| result | Scalar Field |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Heightmap Visualization Routines
- Package
- Procedural Generation
Configure Visibility Camera
FunctionConfigures the camera a visibility map is baked for: where it stands, where it looks, and how wide it sees.
ConfigureVisibilityCamera -> Camera Specification
position: Vector3d
forward: Vector3d
horizontalFieldOfView: Number
verticalFieldOfView: Number
farPlane: NumberHeightmapCameraVisibilityMapBaker.CameraSpecification ConfigureVisibilityCamera(
Vector3d position,
Vector3d forward,
double horizontalFieldOfView = 90,
double verticalFieldOfView = 60,
double farPlane = 10000)Parameters
| name | type | default | description |
|---|---|---|---|
| position | 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. |
| forward | Vector3d | — | The direction the camera looks. Looking across a terrain from its corner is a positive X and Y with a negative Z. |
| horizontalFieldOfView | Number | 90 | How wide the camera sees, in degrees. |
| verticalFieldOfView | Number | 60 | How tall the camera sees, in degrees. |
| farPlane | Number | 10000 | How far the camera sees, in world units. |
Returns
| result | Camera Specification |
Remarks
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.
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Heightmap Visualization Routines
- Package
- Procedural Generation
Generate Biome Texture
FunctionGenerates a biome texture image based on the heightmap data.
GenerateBiomeTexture(heightmap: Scalar Field) -> Pixel Image
PixelImage GenerateBiomeTexture(ScalarField2D heightmap)
Parameters
| name | type | default | description |
|---|---|---|---|
| heightmap | Scalar Field | — |
Returns
| result | Pixel Image |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Heightmap Visualization Routines
- Package
- Procedural Generation
Generate Biome Texture Gradient
FunctionThis node carries no documentation.
GenerateBiomeTextureGradient(heightmap: Scalar Field) -> Pixel Image
PixelImage GenerateBiomeTextureGradient(ScalarField2D heightmap)
Parameters
| name | type | default | description |
|---|---|---|---|
| heightmap | Scalar Field | — |
Returns
| result | Pixel Image |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Heightmap Visualization Routines
- Package
- Procedural Generation
Generate Normal Map Pixel Image
FunctionGenerates a tangent-space normal map from a heightmap.
GenerateNormalMapPixelImage -> Pixel Image
heightmap: Scalar Field
normalStrength: Number
usePhysicalScale: Truth
invertGreen: TruthPixelImage GenerateNormalMapPixelImage(
ScalarField2D heightmap,
double normalStrength = 1,
bool usePhysicalScale = false,
bool invertGreen = false)Parameters
| name | type | default | description |
|---|---|---|---|
| heightmap | Scalar Field | — | Source heightmap. |
| normalStrength | Number | 1 | Strength of the horizontal normal components. |
| usePhysicalScale | Truth | False | Whether gradient calculation uses the heightmap's PhysicalScale. |
| invertGreen | Truth | False | Inverts the tangent-space Y/green channel for consumers using the opposite normal-map convention. |
Returns
| result | Pixel Image |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Heightmap Visualization Routines
- Package
- Procedural Generation
Get Mask Range
FunctionThis node carries no documentation.
GetMaskRange(mask: Scalar Field) -> HeightmapVisualizationRoutines.MaskRange
HeightmapVisualizationRoutines.MaskRange GetMaskRange(ScalarField2D mask)
Parameters
| name | type | default | description |
|---|---|---|---|
| mask | Scalar Field | — |
Returns
| result | HeightmapVisualizationRoutines.MaskRange |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Heightmap Visualization Routines
- Package
- Procedural Generation
Overlay Contours
FunctionThis node carries no documentation.
OverlayContours -> Pixel Image
baseImage: Pixel Image
heightmap: Scalar Field
interval: Number
lineColor: Optional Color
opacity: NumberPixelImage OverlayContours(
PixelImage baseImage,
ScalarField2D heightmap,
double interval,
ColorElement? lineColor,
double opacity = 1)Parameters
| name | type | default | description |
|---|---|---|---|
| baseImage | Pixel Image | — | |
| heightmap | Scalar Field | — | |
| interval | Number | — | |
| lineColor | Optional Color | — | |
| opacity | Number | 1 |
Returns
| result | Pixel Image |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Heightmap Visualization Routines
- Package
- Procedural Generation
Render Shaded Surface Pixel Image
FunctionRenders a scalar field as a lit height surface using color-ramp tint, normal-based diffuse lighting, specular highlights, fresnel tint, and optional crest foam.
Overload 1 of 2
RenderShadedSurfacePixelImage(sourceField: Scalar Field) -> Pixel Image
PixelImage RenderShadedSurfacePixelImage(ScalarField2D sourceField)
Parameters
| name | type | default | description |
|---|---|---|---|
| sourceField | Scalar Field | — |
Returns
| result | Pixel Image |
Overload 2 of 2
RenderShadedSurfacePixelImage -> Pixel Image
sourceField: Scalar Field
settings: HeightmapVisualizationRoutines.SurfaceShadingSettingsPixelImage RenderShadedSurfacePixelImage(
ScalarField2D sourceField,
HeightmapVisualizationRoutines.SurfaceShadingSettings settings)Parameters
| name | type | default | description |
|---|---|---|---|
| sourceField | Scalar Field | — | |
| settings | HeightmapVisualizationRoutines.SurfaceShadingSettings | — |
Returns
| result | Pixel Image |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Heightmap Visualization Routines
- Package
- Procedural Generation
To Contour Map
FunctionThis node carries no documentation.
ToContourMap -> Pixel Image
heightmap: Scalar Field
interval: Number
lineColor: Optional Color
backgroundColor: Optional ColorPixelImage ToContourMap(
ScalarField2D heightmap,
double interval = 0.1,
ColorElement? lineColor,
ColorElement? backgroundColor)Parameters
| name | type | default | description |
|---|---|---|---|
| heightmap | Scalar Field | — | |
| interval | Number | 0.1 | |
| lineColor | Optional Color | — | |
| backgroundColor | Optional Color | — |
Returns
| result | Pixel Image |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Heightmap Visualization Routines
- Package
- Procedural Generation
To Grayscale Pixel Image
FunctionOverload 1 of 2
ToGrayscalePixelImage -> Pixel Image
sourceField: Scalar Field
minimumValue: Number
maximumValue: Number
invert: TruthPixelImage 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.
Parameters
| name | type | default | description |
|---|---|---|---|
| sourceField | Scalar Field | — | |
| minimumValue | Number | — | |
| maximumValue | Number | — | |
| invert | Truth | False |
Returns
| result | Pixel Image |
Overload 2 of 2
ToGrayscalePixelImage(heightmap: Scalar Field) -> Pixel Image
PixelImage ToGrayscalePixelImage(ScalarField2D heightmap)
This node carries no documentation.
Parameters
| name | type | default | description |
|---|---|---|---|
| heightmap | Scalar Field | — |
Returns
| result | Pixel Image |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Heightmap Visualization Routines
- Package
- Procedural Generation
To Heatmap
FunctionThis node carries no documentation.
ToHeatmap(heightmap: Scalar Field) -> Pixel Image
PixelImage ToHeatmap(ScalarField2D heightmap)
Parameters
| name | type | default | description |
|---|---|---|---|
| heightmap | Scalar Field | — |
Returns
| result | Pixel Image |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Heightmap Visualization Routines
- Package
- Procedural Generation
To Hillshade
FunctionThis node carries no documentation.
ToHillshade -> Pixel Image
heightmap: Scalar Field
azimuthDegrees: Number
altitudeDegrees: Number
verticalExaggeration: NumberPixelImage ToHillshade(
ScalarField2D heightmap,
double azimuthDegrees = 315,
double altitudeDegrees = 45,
double verticalExaggeration = 1)Parameters
| name | type | default | description |
|---|---|---|---|
| heightmap | Scalar Field | — | |
| azimuthDegrees | Number | 315 | |
| altitudeDegrees | Number | 45 | |
| verticalExaggeration | Number | 1 |
Returns
| result | Pixel Image |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Heightmap Visualization Routines
- Package
- Procedural Generation
To Normal Map
FunctionThis node carries no documentation.
ToNormalMap(heightmap: Scalar Field) -> Pixel Image
PixelImage ToNormalMap(ScalarField2D heightmap)
Parameters
| name | type | default | description |
|---|---|---|---|
| heightmap | Scalar Field | — |
Returns
| result | Pixel Image |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Heightmap Visualization Routines
- Package
- Procedural Generation
To Slope Map
FunctionThis node carries no documentation.
ToSlopeMap -> Pixel Image
heightmap: Scalar Field
maxSlopeDegrees: NumberPixelImage ToSlopeMap(
ScalarField2D heightmap,
double maxSlopeDegrees = 60)Parameters
| name | type | default | description |
|---|---|---|---|
| heightmap | Scalar Field | — | |
| maxSlopeDegrees | Number | 60 |
Returns
| result | Pixel Image |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Heightmap Visualization Routines
- Package
- Procedural Generation
To Voxel Space Image
FunctionOverload 1 of 4
ToVoxelSpaceImage -> Pixel Image
heightmap: Scalar Field
width: Integer
height: Integer
camera: 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.
Parameters
| name | type | default | description |
|---|---|---|---|
| heightmap | Scalar Field | — | |
| width | Integer | — | |
| height | Integer | — | |
| camera | VoxelCamera | — |
Returns
| result | Pixel Image |
Overload 2 of 4
ToVoxelSpaceImage -> Pixel Image
heightmap: Scalar Field
colorMap: Pixel Image
width: Integer
height: Integer
camera: 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.
Parameters
| name | type | default | description |
|---|---|---|---|
| heightmap | Scalar Field | — | |
| colorMap | Pixel Image | — | |
| width | Integer | — | |
| height | Integer | — | |
| camera | VoxelCamera | — |
Returns
| result | Pixel Image |
Overload 3 of 4
ToVoxelSpaceImage -> Pixel Image
heightmap: Scalar Field
width: Integer
height: Integer
cameraX: Low Accuracy Number
cameraY: Low Accuracy Number
cameraHeight: Low Accuracy Number
angle: Low Accuracy Number
horizon: Optional Low Accuracy Number
distance: Low Accuracy NumberPixelImage 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.
Parameters
| name | type | default | description |
|---|---|---|---|
| heightmap | Scalar Field | — | |
| width | Integer | — | |
| height | Integer | — | |
| cameraX | Low Accuracy Number | — | |
| cameraY | Low Accuracy Number | — | |
| cameraHeight | Low Accuracy Number | 100 | |
| angle | Low Accuracy Number | 0 | |
| horizon | Optional Low Accuracy Number | — | |
| distance | Low Accuracy Number | 1000 |
Returns
| result | Pixel Image |
Remarks
Similar to Divooka.Terrains.VoxelSpaceRenderer.Renderers.VoxelRenderer.
Overload 4 of 4
ToVoxelSpaceImage -> Pixel Image
heightmap: Scalar Field
colorMap: Pixel Image
width: Integer
height: Integer
cameraX: Low Accuracy Number
cameraY: Low Accuracy Number
cameraHeight: Low Accuracy Number
angle: Low Accuracy Number
horizon: Optional Low Accuracy Number
distance: Low Accuracy NumberPixelImage 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.
Parameters
| name | type | default | description |
|---|---|---|---|
| heightmap | Scalar Field | — | |
| colorMap | Pixel Image | — | |
| width | Integer | — | |
| height | Integer | — | |
| cameraX | Low Accuracy Number | — | |
| cameraY | Low Accuracy Number | — | |
| cameraHeight | Low Accuracy Number | 100 | |
| angle | Low Accuracy Number | 0 | |
| horizon | Optional Low Accuracy Number | — | |
| distance | Low Accuracy Number | 1000 |
Returns
| result | Pixel Image |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Heightmap Visualization Routines
- Package
- Procedural Generation
Visualize Hypsometric Pixel Image
FunctionAn alternative color theme.
VisualizeHypsometricPixelImage -> Pixel Image
heightmap: Scalar Field
invert: Truth
seaLevel: Low Accuracy Number
ramp: IReadOnlyList<Color Stop>PixelImage VisualizeHypsometricPixelImage(
ScalarField2D heightmap,
bool invert = false,
float seaLevel = 0.35f,
IReadOnlyList<ColorStop> ramp)Parameters
| name | type | default | description |
|---|---|---|---|
| heightmap | Scalar Field | — | |
| invert | Truth | False | |
| seaLevel | Low Accuracy Number | 0.35 | |
| ramp | IReadOnlyList<Color Stop> | — |
Returns
| result | Pixel Image |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Heightmap Visualization Routines
- Package
- Procedural Generation
Write Shaded Surface To Pixels
FunctionRenders 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.
Overload 1 of 2
WriteShadedSurfaceToPixels
sourceRowMajor: Low Accuracy Number Array
width: Integer
height: Integer
physicalScale: Number
pixels: Byte Array
settings: HeightmapVisualizationRoutines.SurfaceShadingSettingsvoid WriteShadedSurfaceToPixels(
float[] sourceRowMajor,
int width,
int height,
double physicalScale,
byte[] pixels,
HeightmapVisualizationRoutines.SurfaceShadingSettings settings)Parameters
| name | type | default | description |
|---|---|---|---|
| sourceRowMajor | Low Accuracy Number Array | — | |
| width | Integer | — | |
| height | Integer | — | |
| physicalScale | Number | — | |
| pixels | Byte Array | — | |
| settings | HeightmapVisualizationRoutines.SurfaceShadingSettings | — |
Remarks
TODO: This function modifies incoming source. Refactor to return output instead.
Overload 2 of 2
WriteShadedSurfaceToPixels
source: Low Accuracy Number Array Array
width: Integer
height: Integer
physicalScale: Number
pixels: Byte Array
settings: HeightmapVisualizationRoutines.SurfaceShadingSettingsvoid WriteShadedSurfaceToPixels(
float[][] source,
int width,
int height,
double physicalScale,
byte[] pixels,
HeightmapVisualizationRoutines.SurfaceShadingSettings settings)Parameters
| name | type | default | description |
|---|---|---|---|
| source | Low Accuracy Number Array Array | — | |
| width | Integer | — | |
| height | Integer | — | |
| physicalScale | Number | — | |
| pixels | Byte Array | — | |
| settings | HeightmapVisualizationRoutines.SurfaceShadingSettings | — |
Remarks
TODO: This function modifies incoming source. Refactor to return output instead.
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Heightmap Visualization Routines
- Package
- Procedural Generation