Texture Height Maps
8 nodes
On this page 8
Ambient Occlusion
FunctionAmbient occlusion from a height: how much of the sky each point sees, dark in crevices and the mortar between bricks, white on open tops. Measured by looking for the horizon in several directions around each point.
AmbientOcclusion -> Texture
height: Texture
depth: Number
radius: Number
directions: IntegerTexture AmbientOcclusion(
Texture height,
double depth = 0.04,
double radius = 0.05,
int directions = 12)Parameters
| name | type | default | description |
|---|---|---|---|
| height | Texture | — | The height, 0 to 1. |
| depth | Number | 0.04 | How deep the surface is: a height of 1 rises this share of the texture's width. |
| radius | Number | 0.05 | How far around each point is looked at, as a share of the texture's width. |
| directions | Integer | 12 | How many directions are looked in; more is smoother. |
Returns
| result | Texture |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Texture Height Maps
- Package
- Image Processing
Curvature
FunctionCurvature from a height: bright on ridges and edges (convex), dark in grooves and dents (concave), middle grey where flat. The map edge wear and dirt are made from.
Curvature -> Texture
height: Texture
radius: Number
intensity: NumberTexture Curvature(
Texture height,
double radius = 2,
double intensity = 1)Parameters
| name | type | default | description |
|---|---|---|---|
| height | Texture | — | The height, 0 to 1. |
| radius | Number | 2 | The size of the features measured, in pixels of a 1024-pixel texture: small catches sharp edges, large catches broad forms. |
| intensity | Number | 1 | How far from grey a given curvature goes. |
Returns
| result | Texture |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Texture Height Maps
- Package
- Image Processing
Curvature From Normal
FunctionCurvature from a normal map: bright where the surface turns away (edges), dark where it turns in (grooves). For a normal map baked from a model, where no height exists.
CurvatureFromNormal -> Texture
normal: Texture
intensity: NumberTexture CurvatureFromNormal(
Texture normal,
double intensity = 1)Parameters
| name | type | default | description |
|---|---|---|---|
| normal | Texture | — | The normal map, OpenGL convention. |
| intensity | Number | 1 | How far from grey a given curvature goes. |
Returns
| result | Texture |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Texture Height Maps
- Package
- Image Processing
Flat Normal
FunctionA flat normal map: every point facing straight out.
FlatNormal(size: Integer) -> Texture
Texture FlatNormal(int size = 1024)
Parameters
| name | type | default | description |
|---|---|---|---|
| size | Integer | 1024 | Width and height in pixels. |
Returns
| result | Texture |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Texture Height Maps
- Package
- Image Processing
Flip Normal Green
FunctionConverts a normal map between OpenGL's convention (green up: glTF, Blender, Unity, Godot) and DirectX's (green down: Unreal), by inverting its green channel.
FlipNormalGreen(normal: Texture) -> Texture
Texture FlipNormalGreen(Texture normal)
Parameters
| name | type | default | description |
|---|---|---|---|
| normal | Texture | — | The normal map. |
Returns
| result | Texture |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Texture Height Maps
- Package
- Image Processing
Normal Blend
FunctionLays a detail normal map over a base one so both read - the detail's bumps follow the base's slopes - rather than averaging them flat (reoriented normal mapping).
NormalBlend -> Texture
baseNormal: Texture
detailNormal: Texture
detailStrength: NumberTexture NormalBlend(
Texture baseNormal,
Texture detailNormal,
double detailStrength = 1)Parameters
| name | type | default | description |
|---|---|---|---|
| baseNormal | Texture | — | The large forms. |
| detailNormal | Texture | — | The fine detail. |
| detailStrength | Number | 1 | How strong the detail is, 0 to 1 and beyond. |
Returns
| result | Texture |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Texture Height Maps
- Package
- Image Processing
Normal From Height
FunctionThe normal map of a height: which way each point of the surface faces, packed into red (across), green (up) and blue (out). OpenGL's convention (green up) is glTF's and Blender's; DirectX's (green down) is Unreal's.
NormalFromHeight -> Texture
height: Texture
intensity: Number
directX: TruthTexture NormalFromHeight(
Texture height,
double intensity = 4,
bool directX = false)Parameters
| name | type | default | description |
|---|---|---|---|
| height | Texture | — | The height, 0 to 1. |
| intensity | Number | 4 | How steep the surface is for a given change of height; doubling it doubles the slopes. |
| directX | Truth | False | Use DirectX's convention, green pointing down. |
Returns
| result | Texture |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Texture Height Maps
- Package
- Image Processing
Shade
FunctionA height lit from one side, as a greyscale: the quickest way to see a height's form, and an emboss effect.
Shade -> Texture
height: Texture
lightAngle: Number
lightElevation: Number
intensity: NumberTexture Shade(
Texture height,
double lightAngle = 225,
double lightElevation = 40,
double intensity = 4)Parameters
| name | type | default | description |
|---|---|---|---|
| height | Texture | — | The height, 0 to 1. |
| lightAngle | Number | 225 | Where the light comes from, in degrees round: 0 from the right, 90 from below, 225 from the upper left. |
| lightElevation | Number | 40 | How high the light is, in degrees above the surface. |
| intensity | Number | 4 | How steep the surface is for a given change of height. |
Returns
| result | Texture |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Texture Height Maps
- Package
- Image Processing