Also known as: Rescale, Clip, Expand
Constrains heightfield, color, or VDM data to a range you choose, by rescaling, clipping, or expanding it. Rescaling changes every height proportionally, so the whole terrain keeps its shape at a different size; clipping leaves heights inside the range alone and flattens anything beyond the limits.
When to Use
- Fit a terrain into a height band: Use Rescale to fit the whole terrain into a narrower band of heights without cutting anything off.
- Limit extreme values: Use Clip to flatten peaks or valleys beyond a limit. Soft clipping produces more natural results when limiting terrain heights, avoiding sudden plateaus.
- Isolate an elevation band: Use Expand to stretch a specific range to fill the full 0-1 space.
- Elevation threshold masks: Set both bounds of the Height Range to the same height in Expand mode to turn the device into a quick elevation threshold mask.
How to Use
Connect terrain, color, or VDM data to the Primary Input. The default Rescale over the full height range leaves the data unchanged until you narrow the Height Range.
- Connect terrain, color, or VDM data to the input.
- Choose the Operation mode based on your goal (see When to Use).
- Set the Height Range manually or click Find Extents to auto-detect.
- Enable Soft clipping to reduce harsh edges when clipping or expanding.
- Review the Output Histogram to verify the result distribution.
Inputs
| Port | Type | Required | Description |
|---|---|---|---|
| Primary Input | Heightfield, RGB, or VDM | Yes | The data to process |
| Mask Input | Heightfield | Optional | Controls where the effect is applied |
Outputs
| Port | Type | Description |
|---|---|---|
| Primary Output | Heightfield, RGB, or VDM | The range-adjusted output |
Parameters
Operation (Default: Rescale) – Choose the clamp mode. The device’s label in the workview shows the current operation unless you rename it.
- Rescale: Squeezes the full input range into the Height Range. Nothing is cut off: the bottom of the full height range maps to the lower bound and the top maps to the upper bound, with everything in between compressed proportionally.
- Clip: Cuts off anything outside the Height Range, flattening values above the upper bound and below the lower bound (optionally with soft clipping).
- Expand: Stretches the Height Range to fill the full range. Values outside the band are clipped. If both bounds are set to the same value, Expand turns into a hard threshold: everything above that height becomes white and everything below becomes black.
Height Range (Default: the full height range) – The band of heights to rescale into, clip to, or expand. Shown in your project’s elevation units, so it spans from zero to the world’s maximum height. You can type values outside the slider’s range.
Find Extents (Button) – Sets the Height Range to the lowest and highest values in the current input, then switches the Operation to Expand. Build the device first so there is an input to measure. With Normalize input on, it sets the full range instead.
Normalize input (Default: off) – Stretches the input to fill the full height range before the operation is applied. The stretch is measured over the area being built, so the result can shift when you change the build extent, and tiles of a tiled build may not match.
Soft clipping (Default: off) – Eases values into the range limits instead of cutting them off flat, which avoids sudden plateaus. Only available in Clip and Expand modes.
Apply to (Default: Both bounds) – Choose which limits are softened: Both bounds, Upper bound, or Lower bound. Only visible when Soft clipping is on.
Threshold (Default: 0.10, Range: 0.0 to 0.5) – How wide the softened zone near each limit is, as a fraction of the range. Higher values give gentler clipping; 0 turns soft clipping off. Only visible when Soft clipping is on.
Report
Output Histogram – Shown in the parameter panel after a build: the distribution of output values, so you can check where the result sits in the range. For color inputs it shows brightness; it stays empty for VDM inputs.
Tips and Tricks
- For RGB inputs, the operation applies to each color channel independently.
- For VDM inputs, only the vertical displacement is processed; sideways displacement is left untouched.