Also known as: VDM to World, VDM Transform
Moves maps between a VDM surface and regular world space: it wraps world-space maps onto a VDM surface, or projects VDM data back into world space. The device is named World to VDM or VDM to World depending on its Direction setting.
When to Use
- World-space maps on a VDM: Apply selection masks, color data, or displacement maps created in world space onto complex VDM geometry, so they follow its overhangs and sideways-pushed terrain.
- VDM maps in world space: Flatten masks made on the VDM surface, for example by VDM Features, back into a normal top-down view.
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. Unlike traditional heightfields that use regular grid coordinates, VDMs can represent surfaces with overhangs and complex geometry.
How to Use
Connect the VDM to the Terrain input and the map to transform to Input 1; the transformed map comes out of Output 1. By default the device works From worldspace, wrapping a top-down map onto the VDM.
Applying World-Space Data to a VDM (From worldspace)
- Create or import a VDM surface
- Create a heightfield, color map, or other data in regular world coordinates
- Connect the VDM to the Terrain input
- Connect your world-space data to Input 1
- Set Direction to “From worldspace”
- The output will be your data mapped onto the VDM surface, following its geometry
- To carry more maps through the same transform, wire them into the Add Input port
Extracting VDM Data to World Space (To worldspace)
- Connect the VDM to the Terrain input
- Connect the VDM-space data you want to flatten (e.g., a mask from VDM Features or another VDM device) to Input 1
- Set Direction to “To worldspace”
- Choose Overlap method to handle overlapping surfaces
- Keep Fill missing data enabled to avoid gaps
Inputs
| Port | Type | Required | Description |
|---|---|---|---|
| Terrain | VDM | Required | The VDM that defines the coordinate transformation |
| Input 1 … Input N | Heightfield, RGB, or Material | Optional | The data to transform between coordinate spaces. One input per channel; at least one must be connected |
| Add Input | Heightfield, RGB, or Material | Optional | Spare port. Connecting a wire here adds another channel |
Outputs
| Port | Type | Description |
|---|---|---|
| Output 1 … Output N | Same as the matching input | The transformed data in the target coordinate space |
| Add Output | Same as the matching input | Spare port paired with Add Input; it becomes the next numbered output once that input is connected |
Each channel is transformed independently through the same VDM, so you can carry several maps (for example a mask, a color map and a material) through one device. Material inputs are transformed map by map.
Parameters
Channels
Default: 1 (Range: 1 to 16)
The number of input/output pairs. You rarely need to set this by hand: wiring into the spare Add Input port adds a channel automatically. This value cannot be driven by an input wire.
Direction
Default: From worldspace
Controls the direction of the coordinate transformation:
- From worldspace: Wraps top-down, world-space maps onto the VDM surface. Each point on the VDM picks up the input value at the spot it has been displaced to, so the map follows overhangs and sideways-pushed terrain
- To worldspace: Flattens maps made on the VDM surface (for example masks from other VDM devices) back into a normal top-down view
Overlap
Default: Highest Visible when: Direction is set to “To worldspace”
When projecting from VDM to world space, multiple VDM points may map to the same world-space location (e.g., under an overhang). This parameter determines which value to use:
- Highest: Use the value from the highest (topmost) VDM surface point
- Lowest: Use the value from the lowest (bottommost) VDM surface point
Fill missing data
Default: Enabled Visible when: Direction is set to “To worldspace”
When the surface is flattened to a top-down view, some spots may not be covered by any part of it (for example where terrain has been pushed sideways away from an area). When enabled, these spots are filled smoothly from the surrounding values, preventing gaps in the output. When disabled, they are left unfilled and carry a flat placeholder value instead of meaningful data.
Tips and Tricks
- In “From worldspace” direction, points displaced past the edge of the world extent pick up the nearest edge value of the input
Limitations
- The device cannot be masked: its output pixels no longer line up with its inputs, so apply any mask downstream instead.