PTerrain is a Blender add-on that generates a mesh of real-world terrain around a latitude and longitude center point. It downloads digital elevation model (DEM) data and map (MAP) tiles, with the highest mesh detail near the center and less detail farther out. The project notes that this falloff can have little effect on a viewpoint render made near the selected location. See the PTerrain project documentation for its full workflow.

Set a location and generate terrain

Enter a latitude and longitude pair in the PTerrain panel, separated by a comma, then press Generate. If the location is at high altitude, you may need to zoom out to find the mesh in Blender's viewport. Switch to Material Preview to inspect the map data.

Choose a projection and detail level

PTerrain provides three projections. Geocentric wraps the terrain around a globe at 1:1 scale. Orthographic creates a flat, two-dimensional mesh with distances fairly accurate at its center. Web Mercator also creates a flat mesh and matches the downloaded tile format, but distances are accurate only near the equator. The parameter guide explains these options and the other controls.

DEM and MAP resolution presets can be set independently, with Ultra available for DEM only. Higher settings increase generation time and file size, so the project recommends starting at Low and increasing detail if needed. Other controls can snap the center elevation to zero, clamp below-sea-level values to zero, or suppress spikes in elevation data with a median filter. The filter can smooth extremely steep slopes. To align meshes around different center points, generate the first with Re-center enabled, then disable it for later meshes.

Data sources, cache, and online access

PTerrain downloads 256-by-256 PNG elevation tiles from the Terrarium database on Amazon AWS and 256-by-256 JPEG map tiles from Google. You can change the source URLs in the add-on preferences if replacement sources use the same tile format. Downloaded tiles are stored in a compressed local database cache in Blender's user directory; the project says reusing cached data can speed up generation, and the cache can be deleted if needed. Read the data-source notes for details.

The add-on needs network access to download DEM and MAP tiles, and file access to save downloaded tiles. Blender's online access must be enabled under Preferences > System > Allow Online Access. The installation guide covers first-time setup.

Generation time and file size

The project reports the following rough generation times on an Intel i7 CPU at 2.90 GHz with 64 GB of RAM, using Geocentric projection and DEM spike suppression. Actual times depend on the computer and internet connection.

Project-reported generation times by DEM and MAP preset
DEM/MAP presetWithout cached dataWith cached data
Low/Low34 seconds11 seconds
Medium/Medium55 seconds34 seconds
High/High161 seconds111 seconds
Ultra/High393 seconds329 seconds

The project also lists MAP texture contributions of 31 MB at Low, 110 MB at Medium, and 400 MB at High. These figures and the test conditions are detailed in its performance notes.

Compatibility and license

PTerrain version 1.0.6 requires Blender 4.2.21 or later. Its listed packages cover Windows x64, Linux x64, and macOS Apple Silicon, and the add-on is licensed under GPL-3.0-or-later. Check the Blender Extensions listing for the available builds.