Skip to content

Pixel Layer

The Pixel Layer is the main object type used for Heightmaps within Foxel. It consists of a single pixel grid with a maximum size of 256x256, allowing for detailed editing and manipulation.

Pixel Definition

A Pixel, short for "picture element," is a unit of color in a 2D grid that can store information about color, material, and height. The color and material indices point to the Color Palette and Material Set of the project, ensuring that the pixel data integrates seamlessly with the overall design. This height data is crucial for creating heightmaps, which define the elevation of terrain in voxel environments.

Pixel Layer Properties

The following properties can be adjusted for Pixel Layers:

  • Size: Defines the pixel grid size, with a minimum of 1x1 and a maximum of 256x256.
  • Overlay: When enabled, a pixel is visible only if the pixel directly beneath it is also visible. This feature helps in layering and managing visibility in complex designs.
  • Height Mode: This setting determines how the height information from layers below interacts with the current layer. The options include:
    • Set: The height value is applied, ignoring any height from below.
    • Keep: The height value is disregarded, using the height from below instead.
    • Add: The height value is combined with the height from below.
    • Subtract: The height from below is reduced by the height value.