Skip to main content

forge3d

Path-traced terrain and cartography for Python.
Rust + WebGPU underneath. Real elevation data in, print-resolution maps out.

PyPI Python 3.10+ License Docs

Mount Shasta rendered by forge3d, snow and glaciers picked out by low-angle sun against a dark sky

Mount Shasta, path-traced with global illumination and terrain shadows.
Drag to orbit it live ›  ·  USGS 3DEP elevation  ·  23 cloud-free Sentinel-2 composites


Install

pip install forge3d
Optional extras
pip install "forge3d[jupyter]"   # notebook widget support
pip install "forge3d[datasets]"  # on-demand sample datasets
pip install "forge3d[all]"       # everything

Sixty seconds to a render

import forge3d as f3d

dem_path = f3d.fetch_dem("rainier")

with f3d.open_viewer_async(terrain_path=dem_path, width=1440, height=900) as viewer:
    viewer.set_z_scale(1.5)
    viewer.set_orbit_camera(phi_deg=28, theta_deg=55, radius=48000, fov_deg=42)
    viewer.set_sun(azimuth_deg=302, elevation_deg=24)
    viewer.snapshot("rainier.png", width=1920, height=1080)

fetch_dem pulls the elevation model, the viewer opens a real window you can orbit, and snapshot writes the frame at whatever resolution you ask for.

Population and thematic rasters

You can now turn a population raster into a continuous raised, shaded surface, give each land-cover class its own colour, or show two variables together with a 3×3 colour matrix. For example, height can show population density while colour shows how it has changed.

RasterHeightSurfaceStyle, CategoricalRasterStyle and BivariateRasterStyle plug into MapScene using prepared arrays or local raster files. Missing cells stay empty, units and class boundaries remain explicit, and the styles return legend data with the labels and ranges needed to explain the map. You can save and reload the styled scene through the existing scene-bundle workflow.

See the raster styling guide and the runnable public-API example.


Made with forge3d

Every map below is rendered end to end by forge3d — titles, legends and scale bars included. Nothing here was hand-edited or composited in another tool.

Circular plan view of Lyon with every building extruded, the Rhone and Saone running through it
Lyon, LOD2 buildings
CityGML extrusion over RGE ALTI terrain
Egypt in cold blue relief with the Nile and its delta glowing orange
Egypt, population
GHSL R2023A density over shaded relief
France coloured by a two-variable temperature and precipitation scheme
France, climate
TerraClimate temperature × precipitation
Iberian peninsula land cover, forest greens along the north and mountain ranges, crop yellows across the meseta
Iberia, land cover 2024 — Sentinel-2 at 10 m classified over terrain, legend composed in-engine
Germany in hypsometric relief with the Rhine, Elbe and Danube drainage networks traced in blue
Germany, hydrology — HydroSHEDS rivers and lakes over a hypsometric DEM

Turkiye seen at a low angle with population density extruded as thousands of spikes, Istanbul the tallest

Türkiye, population density — a million WorldPop 2020 cells extruded on a log scale, labelled and lit in a single pass

Animated loop of wildfire smoke plumes drifting across California through summer 2025

And it moves.

Volumetric smoke driven by HRRR forecast fields, advected across California through the summer 2025 fire season and rendered frame by frame — same scene graph as the stills, one camera, no compositing.

Scenes are driven from Python end to end, so a time axis is just another loop: fetch the fields, step the clock, call snapshot, hand the frames to ffmpeg.

The renders above are downsampled for this page. Full-resolution masters — up to 7200×7200 — are on the gallery.


What forge3d covers

Terrain Interactive viewing via open_viewer_async() and ViewerHandle; snapshots from GeoTIFF or numpy DEMs; clipmaps for large regions
Rendering Path tracing, PBR materials, subsurface scattering, water and reflections, cloud and contact shadows, AOV and EXR output
Data COG streaming, CRS helpers, LAZ/COPC/EPT point clouds, 3D Tiles, GeoJSON, CityJSON, on-demand sample datasets
Cartography Raster and vector overlays, labels with halo and occlusion, graticules, Legend, ScaleBar, NorthArrow, MapPlate
Offscreen Scene, Session, TerrainRenderer and TerrainRenderParams for headless and batch work
Output PNG and PNG16, SVG and PDF vector export, scene bundles, notebook widgets

MapPlate composition, vector export and the building import pipelines are Pro features; set a key with forge3d.set_license_key(...) to unlock them.

Documentation

  • Quickstart — install, first viewer session, first overlay, first notebook widget
  • Feature Map — repo-wide overview of the supported workflows
  • Tutorials — guided GIS and Python tracks
  • Gallery — finished recipes at full resolution
  • API Reference — the full public Python surface

License

The open-source core is released under Apache-2.0 OR MIT. Pro-gated features require a commercial license key.

Metadata

Release files for forge3d 1.49.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for forge3d 1.49.0
File Size Uploaded Provenance Actions
forge3d-1.49.0.tar.gz 14.0 MB Without provenance Details for forge3d-1.49.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for forge3d 1.49.0
File Actions
forge3d-1.49.0-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details for forge3d-1.49.0-cp310-abi3-win_amd64.whl
forge3d-1.49.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.10 abi3 Linux glibc 2.17+ x86-64 Details for forge3d-1.49.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
forge3d-1.49.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.10 abi3 Linux glibc 2.17+ ARM64 Details for forge3d-1.49.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
forge3d-1.49.0-cp310-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 10.12+ x86-64, macOS 10.12+ universal2 (ARM64, x86-64), macOS 11.0+ ARM64 Details for forge3d-1.49.0-cp310-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl

Total release size: 95.5 MB

Release files / forge3d-1.49.0.tar.gz

Download URL forge3d-1.49.0.tar.gz
Size 14.0 MB
Tags Source
SHA-256 checksum
How to use checksums
098e06db00930438637d6eb8c3a49b06b432c0c868782c494f505918d94d722b
BLAKE2b-256 checksum
How to use checksums
48699eac0581a28915f578156a0ab168d626a5e47c719b4dcec2446455d00f06
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / forge3d-1.49.0-cp310-abi3-win_amd64.whl

Download URL forge3d-1.49.0-cp310-abi3-win_amd64.whl
Size 17.1 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
ed004b31f601683edb39240e7f91976fb66aa1676a9ca5bc30a148575a42edfc
BLAKE2b-256 checksum
How to use checksums
5dd8ee20e2788a3f3216de1a61f68db3a1e4d58044585c98f84978db5e355c6f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / forge3d-1.49.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL forge3d-1.49.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 17.6 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
a3e9e2306de065312a378becf5847884d3f9a234625d9659d99f66d86507cd50
BLAKE2b-256 checksum
How to use checksums
54d860ac390dc7f9e2ccc48b3d961de66e7d187f0f43511e7f5b4d1c89e0828c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / forge3d-1.49.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL forge3d-1.49.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 17.2 MB
Tags CPython 3.10 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
39a4b313d38572f312f99d47c1b506d17b03604e06bc54fabb4be1bcb73abe4a
BLAKE2b-256 checksum
How to use checksums
0d9f256ea71bc847e3a30dabb35ca96ab59839c4aff8e89cc9dfd5b552e8d9ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / forge3d-1.49.0-cp310-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl

Download URL forge3d-1.49.0-cp310-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl
Size 29.6 MB
Tags CPython 3.10 abi3 macOS 10.12+ universal2 (ARM64, x86-64) macOS 10.12+ x86-64 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
b13998c40874862a8237775249750987cb21154dcd06525d7380e42292ba86f6
BLAKE2b-256 checksum
How to use checksums
9adf8e5d0635d66e9aac11bc9f77824a7f69d198c35ae0d5a4a3368afa7f903c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for forge3d 1.49.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.49.0 This release

5 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page