GIS-Based Generation Part 2: Terrain from Digital Elevation Models (DEM)
摘要
A Digital Elevation Model (DEM) is a type of GIS data that encodes the surface relief of an area on Earth or other planets. In this chapter, I’ll show you how to write a DEM-based terrain generator using a combination of Blender Python, geometry nodes, and shader nodes. In the first half of the chapter, we’ll go over the composition of DEMs, how to plot and convert them into PNG files for visualization, and how to analyze their contents to locate the band containing the elevation data. In addition, we’ll look at how to filter and subsample the elevation points, calculate scale factors, and convert the points into a format usable in Blender.