Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

README.md

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

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.