This project is solving the Tour of the Moon challenge.

This is a quick application I created that takes in a gray-scale elevation image and then procedurally produces a sphere and alters the vertexes to map the elevation data. This produces a 3D model of the moon.

This has then been extended to render only current visible segments of the moon, ready to simulate walking on the moon.

This requires an opengl, sdl and sdl image.

Compiled using g++ moon.cpp -lGL -lSDL -lGLU -lSDL_image



Project Information

License: GNU General Public License
Source Code/Project URL: https://code.google.com/p/3d-moon-from-elevation-image/source/browse/

Resources

HeightMap Site - http://wms.lroc.asu.edu/lroc/global_product/128_ppd_DEM
HeightMap Data - http://lroc.sese.asu.edu/data/LRO-L-LROC-5-RDR-V1.0/LROLRC_2001/EXTRAS/BROWSE/WAC_DTM/WAC_GLD100_E000N1800_004P.TIF