File Input

Brings an external file into your world: heightfield, RGB bitmap, Vector Displacement Map, or ID map data.

When to Use

  • Terrain from other sources: Import heightfields from other tools, including formats that store real-world elevations (such as Terragen, BT, and HFZ).
  • Blending imported and generated terrain: The Extents Mask output shows exactly where your file data exists, useful for blending imported terrain with generated terrain.
  • Iterating with external tools: Auto-refresh is very useful when iterating with external sculpting or image editing tools – every final build uses the latest version of the file. To update previews, click Refresh from file.
  • Building on the previous build: Auto-refresh can also read back a file that a Height Output later in the same network writes. Each final build then starts from the previous build’s result, so you can, for example, erode a terrain a little further with every build.
  • Tiling textures and terrain tiles: Use Repeat tiled mode when importing tiling textures or terrain tiles that were designed to tile seamlessly.
  • Overhangs and undercuts: VDM imports allow for complex surface detail with overhangs and undercuts that would be impossible with standard heightfields.
  • Painted regions: Import a hand-painted ID map of materials, biomes, or other regions (see Importing ID maps below).

How to Use

Choose a file with Filename and set Type to match it. A new File Input imports a heightfield, placed in worldspace to cover the current world extents, using the file’s natural elevations.

  1. Click Browse in the Filename parameter and select your heightfield, bitmap, VDM, or ID map file.
  2. Set Type to match your file (Heightfield, RGB Bitmap, Vector Displacement, or ID Map).
  3. Adjust Width and Height to position the file at the correct world scale, or use Fit to current scene.
  4. Choose an Aspect Ratio mode if your file dimensions don’t match your target.
  5. Select an elevation Scaling Type based on whether you want to use the file’s natural elevations or normalize/specify them.
  6. Adjust Footprint settings to control what happens outside the file’s coverage area.

Inputs

None

Outputs

PortTypeDescription
Primary OutputHeightfield, RGB, VDM, or ID mapThe imported data
Extents MaskHeightfieldMask showing the valid data footprint within the world, including the file’s own alpha channel if it has one
File MetadataTextMetadata information from the imported file

Parameters

File

  • Type: Data type to import. Default: Heightfield. Options: Heightfield, RGB Bitmap, Vector Displacement, ID Map.
    • ID Map reads the image’s pixel values as region labels rather than as heights. See Importing ID maps below.
  • Filename: Path to the file to import. Click Browse to select a file.
  • Refresh from file: Button to reload the file from disk.
  • Auto-refresh on build (Advanced): When enabled, re-reads the file from disk on each final build (previews keep using the copy already loaded). Default: disabled.
  • Flip on Y-axis: Flips the imported data vertically, for files saved with Y pointing down. Default: disabled.

VDM (when Type is Vector Displacement)

  • Coordinate System: The axis convention of the app the file came from. Default: RH Z is up (X=east,Y=north). Options: RH Z is up (X=east,Y=north), RH Y is up (X=east,Z=south), LH Z is up (X=east,Y=south), LH Y is up (X=east,Z=north).
  • VDM XY Scale (Advanced): Scales the sideways displacements. Default: 1.0. Typed in directly. Normally left at 1.0 unless the VDM was exported incorrectly.
  • VDM XY Offset (Advanced): Offset applied before scaling. Default: 0.0. Typed in directly. Normally left at 0.0 unless the VDM was exported incorrectly.

ID Map (when Type is ID Map)

  • ID Width: How much room each ID gets. Default: Automatic (from file). Options: Automatic (from file), Byte (0-255), Integer (32-bit).
    • Automatic gives you a byte map for an 8-bit image and an integer map for anything with more colors or more bits.
    • Byte forces the small form; any ID above 255 is pinned to 255, so only pick this when you know your map has 256 regions or fewer.
    • Integer forces the large form, which is handy if a device downstream only accepts integer maps.

Placement

  • Placement: How the file is positioned. Default: Worldspace. Options: Worldspace, Localspace.
    • Worldspace: The file is placed into the world at a position and size you choose, and resampled to the world’s resolution. All of the settings below apply.
    • Localspace: The whole file is output as-is, at its own native resolution and in its own standalone area, rather than placed into the world. Heightfields keep their natural file elevations. The placement, elevation, footprint and sampling settings below are hidden.

Worldspace Placement (when Placement is Worldspace)

A new File Input starts out covering the current world extents. You can also move and resize the footprint visually in the Layout view.

  • Width: The east-west size of the imported area. Typed in directly. Range: 1 m to 8,192 km.
  • Height: The north-south size of the imported area (not its elevation). Typed in directly. Range: 1 m to 8,192 km.
  • Aspect Ratio: How to handle aspect ratio differences between file and specified dimensions. Default: Contain. Options: Fill (any aspect), Contain.
    • Fill: Stretches the file to fill the specified dimensions, ignoring aspect ratio.
    • Contain: Scales the file to fit within dimensions while maintaining aspect ratio.
  • Fit to current scene: Button that moves the file and sets Width and Height to match the current world extents.

Elevations (hidden when Type is ID Map)

  • Scaling Type: How file values become elevations. Default: Natural file elevations. Options: Natural file elevations, Normalize to fill range, Specify range.
    • Natural file elevations: For formats that store real-world elevations (such as Terragen, BT, and HFZ), uses those elevations. For ordinary images and RAW files, the values map directly onto the project’s elevation range, so a file that only uses its middle grays stays in the middle of the range.
    • Normalize to fill range: Stretches the imported data so its lowest point sits at the bottom of the project’s elevation range and its highest point at the top.
    • Specify range: Maps the file’s lowest and highest values onto the Elevation Span below.
  • Elevation Span (when Scaling Type is Specify range): The elevation range the file is mapped onto, in meters. Default: 0 m to 2,650 m. Range: 0 m to 50,000 m. Typed in directly.
  • Elevation scale: Whether elevations follow the footprint size. Default: Proportional. Options: Unchanged, Proportional. With Proportional, elevations are scaled along with the file’s Width and Height (relative to an 8 km footprint), so shrinking the footprint lowers the terrain to keep its slopes the same. This only affects heightfield and vector displacement imports; bitmap colors are never scaled. Devices from projects saved before this option existed are set to Unchanged when updated, so their output does not change.

Footprint

  • Outside area: What fills the world beyond the edges of the file. Default: Empty. Options: Empty, Use edge values, Repeat tiled, Repeat mirrored.
    • Empty: Areas outside the file are set to zero.
    • Use edge values: Edge pixels are extended outward.
    • Repeat tiled: The file repeats seamlessly.
    • Repeat mirrored: The file repeats with mirroring for seamless tiling.
  • Smooth footprint alpha (Advanced): How softly the Extents Mask fades out at the edge of the file. Default: 0.4. Range: 0.0 to 1.0. At 0 the mask has a hard edge. Only available when Outside area is Empty or Use edge values. It shapes the mask only; the imported data itself is not faded.

Sampling Method (Advanced)

  • Rescaling: How the file is resampled when it is placed at a different resolution. Default: (World Default), which uses the project’s setting. Options: (World Default), Nearest Neighbor, Bilinear, Bicubic Soft, Bicubic Tuneable, Fractal, Set-Preserving.
  • Tuning: Default: 0.5. Range: 0.0 to 1.0. Only available for Bicubic Tuneable, where higher values are sharper, and Fractal, where higher values add more rough detail.

Importing ID maps

An ID map is a painted image where every pixel names a region — material 3, biome 7, “the riverbed” — instead of describing a height. Because those numbers are labels, they must never be blended: half of “rock” and half of “sand” is not a real material. Setting Type to ID Map tells World Machine to read the picture’s pixel values exactly as they were painted, and to keep them intact when the map is scaled, cropped, or flipped.

That is the opposite of what a Heightfield import does. As a heightfield, a gray value of 40 becomes a low elevation; as an ID map, it stays the number 40.

What you can import: PNG, TIFF, BMP, TGA, and RAW files.

  • A grayscale or indexed-color image gives you the pixel value (or the palette index) as the ID — this is the easiest kind to hand-paint.
  • A full-color image gives every distinct color its own ID, so you can paint your regions in flat, obviously-different colors and each one arrives as its own region.
  • JPEG, EXR, Terragen, BT, and HFZ files cannot be used as ID maps. JPEG smears neighboring colors together, and the others store smooth elevations, so neither has crisp labels to read. The device will tell you so rather than importing something subtly wrong.

Paint your regions in flat colors with hard edges. Any anti-aliasing, feathering, gradient, or noise your paint program adds along a boundary becomes a stray one-pixel region of its own. Turn off anti-aliasing on your brushes and fills.

Once imported, an ID map shows up in the preview with each region in a different color, and connects to devices that understand IDs — use ID Region Select to turn one region into a mask you can blend terrain with, or ID Convert to move between ID maps and heightfields.

Tips and Tricks

  • Use the Extents Mask, softened by Smooth footprint alpha, to blend the import into surrounding terrain (for example with a Combiner) for a natural transition instead of a hard seam.
  • ID map imports ignore the Rescaling method: they are always resampled by snapping to the nearest painted pixel, so no invented in-between region can appear.
Updated on December 3, 2026
Was this article helpful?

Related Articles

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