World to VDM

Also known as: VDM to World, VDM Transform

Introduced in the Dragontail Peak release.

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)

  1. Create or import a VDM surface
  2. Create a heightfield, color map, or other data in regular world coordinates
  3. Connect the VDM to the Terrain input
  4. Connect your world-space data to Input 1
  5. Set Direction to “From worldspace”
  6. The output will be your data mapped onto the VDM surface, following its geometry
  7. To carry more maps through the same transform, wire them into the Add Input port

Extracting VDM Data to World Space (To worldspace)

  1. Connect the VDM to the Terrain input
  2. Connect the VDM-space data you want to flatten (e.g., a mask from VDM Features or another VDM device) to Input 1
  3. Set Direction to “To worldspace”
  4. Choose Overlap method to handle overlapping surfaces
  5. Keep Fill missing data enabled to avoid gaps

Inputs

PortTypeRequiredDescription
TerrainVDMRequiredThe VDM that defines the coordinate transformation
Input 1 … Input NHeightfield, RGB, or MaterialOptionalThe data to transform between coordinate spaces. One input per channel; at least one must be connected
Add InputHeightfield, RGB, or MaterialOptionalSpare port. Connecting a wire here adds another channel

Outputs

PortTypeDescription
Output 1 … Output NSame as the matching inputThe transformed data in the target coordinate space
Add OutputSame as the matching inputSpare 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.
Updated on December 3, 2026
Was this article helpful?

Related Articles

Need Support?
Can't find the answer you're looking for?
Contact Support