Skip to content

gwio/mapzenSketchesOF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

mapzenSketchesOF

Two OpenFrameworks sketches showing how to load Mapzen terrain data and use it with fragment shaders for different interpretations.

The code and the shaders don't have many comments, but project files for VS and Xcode are included and no external Addons are needeed. You need to get your Mapzen Api-Key and replace the the #define in the mapZenHelper.h!

Updated to work with Nextzen alternative

https://mapzen.com/blog/migration/

You can get an API key here

https://www.nextzen.org/

This sketch loads hightmap data (terrarium) and the normal-map data from mapzen via the mapZenHelper class. After loading the 256 sized chunks the polyMap class will be used to convert the image encoding to usefull images. The polyMap class also uses openCV to create hight-contours (set bei the lines amout). Then those textures are send to the fragment shader for different image manipulation.


SketchA is using a 2D approach with different lightning conditions via the shader, you might need to shuffle the sliders a bit. Image of sketchA

SketchB is 3D with a vertext shader, but the code is more dirty and has some leftovers... Image of sketchB

About

Openframeworks sketch for working with mapzen terrain data

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published