How Do You Make Your 3D Terrain in WRLD Maps?By WRLD Team on 13th July 2015 | Development When showing people our products, we’re frequently asked, “so… how do you actually make your maps?” The short answer is that we process various digital map sources, enhancing and combining them to create 3D models that can be streamed over the web. The long answer is, inevitably, a bit more complicated than that. Let’s focus on a specific element of the 3D maps with 3D terrain (we’ll do a follow-up post on building at scale). Our terrain at city-level is somewhat different to that of our competitors. While other companies focus on creating realistic, satellite imagery-based maps, we aim for a more fun, stylized approach. Our solution is also informed by the fact that our maps must run on low-end mobile devices. We rely on two main types of data when creating our terrain: 1. Terrain Elevation 2. Land Cover / Land Use
Terrain ElevationElevation data is arguably the most important thing when creating 3D terrain. Without terrain elevation data, mountains and valleys are reduced to anonymous flatlands. It’s also important to retain these features, as local hills are important landmarks for navigation and orientation. Terrain elevation data is comes in various forms, but it’s mostly a raster heightmap format. One texel represents the elevation at a given point on the earth’s surface. In the image below, the whiter the value, the greater the elevation. I’m going to generalize a little as the terminology is a little overloaded/inconsistent (hold your fire, GIS people!). There are three main types of terrain elevation data, and most of it is collected via remote-sensing satellites rather than direct survey. Digital Elevation Models (DEMs) & Digital Surface Models (DSMs) typically contain samples that specify the elevation at which the first-reflected surface was encountered. This is problematic for use in terrain generation, as man-made structures (skyscrapers especially) will be struck first and can noticeably affect the results. If DEMs/DSMs are used unmodified in urban areas, buildings may sit atop artificial plateaus! Having said that, DEMs are often good enough(tm) and can be cleaned up to improve their accuracy. Digital Terrain Models (DTMs) are typically derived from DEMs/DSMs, and processed to remove undesirable features like building elevation. DTMs contain the height of the natural terrain (i.e. the ground level) which is perfect for our purposes. The following picture shows the main difference between DTMs and other elevation models.