Skip to content

Heightmap

Heightmaps are a unique asset type in Foxel that utilize pixel-based layers to create 3D voxel data. They provide an alternative method for generating voxel environments by allowing users to work in 2D while still achieving 3D results.

Key Features

  • Pixel-Based Layers: Each Heightmap consists of pixel-based layers, where each pixel can store additional height information. This allows for the creation of varied terrain and relief-like structures based on the pixel data.

  • Conversion to Voxel Data: Heightmaps can be loaded into a Voxel Scene via Heightmap Reference objects. This process converts the 2D pixel data into 3D voxel data, enabling the creation of complex shapes and structures from simple 2D drawings.

  • 2D and 3D Editing: Users can edit Heightmaps in 2D, similar to using an image editor, allowing for intuitive design and manipulation of the terrain. Additionally, Heightmaps can be previewed in 3D, providing immediate feedback on how the generated voxel data will appear.

Use Cases

  • Creating Terrain and Landscapes: Heightmaps are ideal for generating simple relief-like objects such as walls, hills, and other terrain features. This makes them a valuable tool for building outdoor environments or adding depth to scenes.

  • Alternative Voxel Generation: By drawing in 2D, users can quickly create voxel data without the need for complex modeling techniques. This approach offers a more accessible way to generate voxel structures, especially for those familiar with 2D art.

  • Rapid Prototyping: Heightmaps allow for quick iterations and adjustments, making them suitable for rapid prototyping of terrain and environmental features. Users can easily modify the height information and see the results in real-time.

  • Visualizing Terrain: The ability to preview Heightmaps in 3D helps users visualize how their designs will translate into voxel data, ensuring that the final result meets their creative vision.

In summary, Heightmaps provide a powerful and flexible way to create voxel data in Foxel. By leveraging pixel-based layers and the ability to edit in both 2D and 3D, users can efficiently design and generate terrain and relief-like structures, enhancing their voxel projects with ease.