Cavity - CraftKontrol/GroundGen-for-Touchdesigner GitHub Wiki

2D Operator Terrain Network Splatmap Network

Introduction

The cavity operator detects cavities and depressions in terrain by analyzing the neighborhood of each point or pixel. This is useful for identifying areas where water might collect, or for accentuating valleys and low-lying regions in your landscape.

Parameters
  • Radius: Defines the neighborhood size used for cavity detection. Larger radii capture broader depressions, while smaller radii focus on fine details.
  • Strength: Controls the intensity of the cavity effect. Higher values make cavities more pronounced.
  • Threshold: Sets the sensitivity for detecting cavities, allowing you to filter out minor depressions.
Usage

Apply the cavity operator in the Terrain Network or Splatmap Network to highlight depressions and valleys. It can be used to drive texture blending, mask generation, or to enhance visual detail in areas where terrain features dip below their surroundings. Adjust parameters to fine-tune the detection and appearance of cavities for your specific needs.