Skip to main content

A powerful and flexible height map generator

Project description

Heightcraft Banner

Heightmap Generation & AI Upscaling Tool

License Python Documentation PyTest Coverage

Heightcraft is a high-performance CLI tool designed for Game Engineers, GIS Professionals, and Researchers. It automates the pipeline of converting 3D data into high-precision heightmaps, featuring accessible AI Upscaling.


🚀 Key Features

  • 🤖 Heightmap AI Upscaling: Transform low-res inputs into crisp, hi-res/high-detail heightmaps. Also supporting bit depth increase (8-bit → 16/32-bit) with AI hallucination.
  • 📡 LiDAR Support: Stream process massive .las and .laz point clouds into Digital Elevation Models (DEMs).
  • 🏔️ Mesh to Heightmap: Bake .gltf, .glb, .obj, .stl, and .ply meshes into heightmaps with automated chunking.
  • 🌊 Feature Masks: Optionally export water masks with sea level thresholds and texture masks for slope and curvature.
  • 🎯 High Precision: Native support for 32-bit Float TIFF, 16-bit PNG, and RAW formats.
  • ⚡ Performance: GPU acceleration and memory-efficient streaming for gigabyte-scale datasets.

📖 Documentation

Full documentation is available in the Docs.

📦 Installation

pipx install heightcraft

⚡ Quick Start

Upscale an image (8-bit → 16-bit and 3x upscale):

heightcraft input.png --upscale --upscale-factor 3 --bit_depth 16 --output_path high_res.png

Process LiDAR data into an high-res 32-bit heightmap:

heightcraft scan.laz --bit_depth 32 --chunk_size 600000 --max_resolution 24576

Convert a 3D Mesh to an upscaled heightmap:

heightcraft terrain.obj --large-model --chunk_size 200000 --max_resolution 8192 --upscale

Development

To install development dependencies:

pipx install uv
uv sync --group dev
uv run main.py

🧪 Testing

Run the test suite:

pytest tests

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

heightcraft-2.0.0.tar.gz (5.0 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

heightcraft-2.0.0-py3-none-any.whl (87.1 kB view details)

Uploaded Python 3

File details

Details for the file heightcraft-2.0.0.tar.gz.

File metadata

  • Download URL: heightcraft-2.0.0.tar.gz
  • Upload date:
  • Size: 5.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for heightcraft-2.0.0.tar.gz
Algorithm Hash digest
SHA256 a35da53db4cc8f33a8d389a69249225229281479fbf3ba754dc78fea405063e0
MD5 ff082a080cddcb494a7b81ca8acaaf77
BLAKE2b-256 9e89cda3a5b1699be3a67b1c827bc876dbdb558ee588a96d5a2a8588b89f2e69

See more details on using hashes here.

Provenance

The following attestation bundles were made for heightcraft-2.0.0.tar.gz:

Publisher: release.yml on andre-silva-14/heightcraft

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file heightcraft-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: heightcraft-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 87.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for heightcraft-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ba6d47760abdf31ef9de921a2a0598ac47db89c310a073440dba7f0e6d19b0d6
MD5 fc21461d023dce0c16f47bbb264fb80d
BLAKE2b-256 01a87d37581cf80deb47aba55afd252bb999a0a8e100ceb5d086944ebabbbcb4

See more details on using hashes here.

Provenance

The following attestation bundles were made for heightcraft-2.0.0-py3-none-any.whl:

Publisher: release.yml on andre-silva-14/heightcraft

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page