Compares two heightfields pixel by pixel and gives you a mask of everywhere the chosen comparison is true. For example, it can create a mask showing everywhere that terrain A is higher than terrain B.
When to Use
- Height blending: Connect two terrains and use the A > B mask to blend them, so the locally higher terrain always dominates.
- Texturing from relative features: Texture based on where one surface sits above or below another.
- Intersection bands: The A = B comparison with a moderate falloff is useful for finding contour-like bands where two surfaces intersect.
How to Use
Connect the two heightfields to Input A and Input B. By default you get a mask that is white where A is lower than B, with a soft transition where the two are nearly equal.
- Choose the Comparison you need.
- Set the falloff Amount for a harder or softer edge; 0 gives a perfectly hard edge.
- Use Position and Curve to place and shape the transition.
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| Input A | Heightfield | Required | The first heightfield for comparison |
| Input B | Heightfield | Required | The second heightfield for comparison |
| Mask Input | Heightfield | Optional | Scales Input B before the comparison: where the mask is black, Input B is treated as zero height |
Outputs
| Name | Type | Description |
|---|---|---|
| Primary Output | Heightfield (mask) | A grayscale mask where white indicates the comparison is true |
Parameters
Comparison (Default: A < B) — The comparison operation to perform between the two inputs:
- A < B — Selects areas where Input A is lower than Input B.
- A > B — Selects areas where Input A is higher than Input B.
- A = B — Selects areas where Input A and Input B have the same value (within the falloff tolerance).
- A != B — Selects areas where Input A and Input B differ (the inverse of A = B).
Falloff
Amount (Default: 0.1) — Controls the width of the transition zone around the comparison boundary. It is a height difference, shown in your project’s elevation units; the default is one tenth of the project’s height range. A value of zero produces a perfectly hard edge. Accepts a spatial input.
Position (Default: Centered) — Determines where the falloff transition is placed relative to the comparison boundary. Disabled for A = B and has no effect for A != B: the equality comparisons always fade outward from the places where the inputs match.
- External — The falloff extends outward from the selected region, expanding the transition into areas where the comparison is not satisfied.
- Internal — The falloff contracts inward, softening the edges within the selected region.
- Centered — The falloff is split evenly on both sides of the boundary, preserving the location of the original edge.
Curve (Default: Exponential) — The shape of the falloff transition:
- Linear — A straight-line transition.
- Exponential — A rapid initial change that tapers into a long tail.