Giter VIP home page Giter VIP logo

earthshape's Introduction

earthShape

An application built with openFrameworks C++ toolkit for drawing Earth based on actual elevation data. I used quaternionLatLongExample example project which draws sphere and couple of coordinates on it with OpenGL. Instead of showing Cities my application loads actual Earth elevation data and draws it.

Sure, I could build it on the plain OpenGL (and going to do so next time) but the positive part about using of openFrameworks is that it allows to add more features like meshes, other objects, and etc. pretty easily. Just check out its documentation to become familiar with it: http://openframeworks.cc/documentation/

How to run this project

  1. Download openFramework release library for Visual Studio 2015 from here http://openframeworks.cc/download/. For example, I have a of_v0.9.8_vs_release.

  2. Put source files from this repository into \of_v0.9.8_vs_release\apps\earthShape\ fodler.

  3. Download elevation data from open URL: https://dds.cr.usgs.gov/srtm/version2_1/SRTM30/

    To do this you may use wget utility if you use *nix-like operating system. For Windows I wrote another small application which allows to easily download all of this information. You may build and run it, or even simly run, because executable file is also provided.

  4. After elevation files was loaded all yoou need is to put HDR and DEM files into \geodata\ subfolder.

    HDR file is header file, which describes content of DEM file allowing to correct read this data.

    You may get only few files for first test, but to show full Earth data you need to have 54 files in total. Just like this:

  5. When script is done with its work you may open project file earthShape.vcxproj in Visual Studio 2015 (Any version), compile and run by F5.

    Application starts to load all HDR and DEM files which can be found in \geodata\ subfolder and then draws animation.

earthshape's People

Contributors

optiklab avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.