Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Dynamic Terrain Visualization

Dynamic Terrain Visualization

Presented at NACIS 2016.

Visualizing terrain in maps is vital in the outdoors, and also helps at understanding the greater context of the location. Rendering it dynamically in the web browser, or on the mobile device allows for great design flexibility to create a stunning looking map. In this talk, we're looking at the whole chain of DEM data sourcing, processing and distribution, as well as creating a terrain visualization with Mapbox GL that goes beyond classical hill shading by incorporating terrain openness for showing macroscopic terrain.

Konstantin Käfer

October 21, 2016
Tweet

More Decks by Konstantin Käfer

Other Decks in Programming

Transcript

  1. 2 2 2 2 2 2 2 2 dX +

    dY Data source: USGS NED
  2. HILL SHADING • s: slope • a: aspect • z:

    zenith • m: azimuth Data source: USGS NED
  3. IS IT FAST? • Per fragment, we need to look

    at 8 surrounding pixels • Too slow for many mobile devices
  4. IS IT FAST? • Per fragment, we need to look

    at 256+ pixels
 (8 directions, 32 pixel radius) • Pre-processing on the CPU is very slow
 (250+ ms per tile)
  5. PREPROCESS! • Independent of lighting direction • Well-suited to GPU,

    but also slow
 due to lots of texture lookups