Turns the shape of a VDM surface into a mask: its elevation, how far it has been pushed sideways, or where it is stretched or compressed, twisted, or unevenly stretched.
When to Use
- Texturing: Use the mask as a texturing primitive, for example to give stretched cliff faces and overhangs their own material.
- Finding problem areas: Find trouble spots in a heavily displaced surface. Anisotropy and Twist show where textures applied to the VDM will look smeared or rotated, so they are useful for diagnosing distortion before export.
What is a VDM?
A Vector Displacement Map (VDM) is a special terrain representation that stores full 3D position data (X, Y, Z coordinates) for each point on the terrain surface, rather than just elevation values. This enables terrain with overhangs, caves, and other complex features.
How to Use
Connect a VDM to the Primary Input. By default the output is a Relative area mask: mid-gray where the surface is average, brighter where it is stretched, darker where it is compressed.
- Connect a VDM, for example the output of a VDM Displace or VDM Noise device.
- Choose the Feature you want to isolate.
- Adjust Contrast until the mask separates the regions you care about.
- Use the mask to drive VDM devices that take a mask on the surface, or flatten it with World to VDM (“To worldspace”) for use in regular texturing.
Inputs
| Port | Type | Required | Description |
|---|---|---|---|
| Primary Input | VDM | Required | The VDM surface to analyze |
Outputs
| Port | Type | Description |
|---|---|---|
| Primary Output | Heightfield | A 0 to 1 mask of the chosen feature |
The mask lives in the VDM’s own space, so it lines up with the VDM and with other VDM-space maps, and the preview shows it draped over the 3D surface. To use it as an ordinary top-down mask, pass it through World to VDM set to “To worldspace”.
Parameters
Feature
Default: Relative area
The surface property to extract:
- Elevation: The height of each point on the surface, as a fraction of the project’s height range. Unlike a heightfield’s elevation, this follows the surface through overhangs
- XY displacement: How far each point has moved sideways from its original position. The value is a world distance where 1.0 means 8 km, so typical displacements produce a dark mask; stretch it with Levels or Clamp before using it
- Relative area: Where the surface is larger or smaller than average. Mid-gray (0.5) is average; brighter areas are stretched (such as cliff faces and overhangs that have been pulled out of the grid), darker areas are compressed
- Relative XY area: The same as Relative area, but ignores height differences and compares only the area seen from above. Highlights where the surface has been spread apart or bunched together sideways
- Twist: How strongly the surface has been rotated around a vertical axis. Black means no rotation; brighter means more, regardless of whether the twist is clockwise or counterclockwise
- Anisotropy: Where the surface is stretched unevenly, pulled more in one direction than another. Black means evenly stretched; brighter areas are where textures and other applied effects will smear
Contrast
Default: 1.0 (Range: 0.0 to 16.0) Accepts spatial input: Yes Uses log slider Visible when: Feature is Relative area, Relative XY area, Twist, or Anisotropy
How strongly small differences show up in the mask. Higher values push the result toward black and white, picking out subtle variations; lower values keep it soft. At 0.0 the mask is flat (mid-gray for the area features, black for Twist and Anisotropy). You can type values above 16 if you need an even harder mask.
Tips and Tricks
- Relative area is a good way to find overhangs and cliff faces that have been stretched by displacement; use it to texture them differently, or to target them with a cleanup device.
Limitations
- Because the area features compare each spot to the average of the whole surface, the same terrain can read differently if you change the world extent.