Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 1.36 KB

README.md

File metadata and controls

27 lines (17 loc) · 1.36 KB

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