Skip to content

Manipulating Height

In Foxel, each pixel can store height information, which is utilized when converting a pixel grid into a voxel grid. This section will guide you through the various tools and options available for adjusting height.

Height Manipulation Tools

To manipulate height using the available tools, follow these steps:

  1. Select Pixels: Choose the pixels you wish to modify.
  2. Adjust Height:
    • Click the Lower button on the Action Bar to decrease the height of the selected pixels by 1. Lower
    • Click the Raise button to increase the height by 1. Raise

Note from Dev

Currently, there is no dedicated Height Tool available, but it is planned for a future release.

You can also manipulate height through the menu options:

  • Assign Height: Set a specific height value for the selected pixels.
  • Adjust Height: Offset the current height value by a specified amount.
  • Flatten: Set the height value of the selected pixels to 1.

Layer Interaction

When working with multiple layers, you can control how the height values of one layer interact with the layer directly below it. You have four options:

  1. Set: Uses the height information of the current layer and discards the information of layers below.
  2. Keep: Ignores the height information of the current layer and uses the accumulated height of the layers below.
  3. Add: Adds the height data of the current layer to the accumulated height of the layers below.
  4. Subtract: Subtracts the height data of the current layer from the accumulated height of the layers below.

Setting Height Mode

To set the desired height mode:

  1. Select the layer you wish to modify.
  2. Navigate to the Inspector Panel.
  3. Set the desired Height Mode.

3D View Mode

Foxel allows you to edit pixels in a 2D interface similar to common image editors. However, you can also switch to a 3D mode to view and edit the pixel grid in three dimensions. This feature is particularly useful for manipulating height and understanding how applied materials interact with light.

To toggle 3D mode, click on the View 3D Model button in the View Options Panel or use the shortcut Shift+Tab. 3D