Returns a map in the range of 0 to 1 in relation to the Slope of the original map. The slope is represented with a 1 for a wall of 90 degrees and a value of 0 for a completely flat ground.

  • Feature Mode: Defines if the slope should be defined by the world normal or the terrain normal. In doubt it is recommended to leave it as default and tweak it in the Mesh Generation Settings.
    • World: It will take into account the rotation of the generation.
    • Terrain: It will not take into account the rotation of the world.

Slope from a HeightMap

Examples

Feature Extraction

Notes

We start by creating the terrain using a simple Perlin Noise with a few octaves.

Next, we connect it to the Height Output to ensure the data will be used, and then extract features using the Get Slope and Get Cavity nodes. We use the data generated by these nodes to select specific regions—such as areas with high slope or regions where the terrain is relatively flat—and paint them using the Color Output.

Finally, using the Fold node, we transform the flat region mask into a selection of all concave and convex areas.

Node system

Result