The idea of this project is to generate a view from any point on earth, looking in any direction. It is a re-implementation of the Viewfinder Panoramas by Jonathan de Ferranti.
- make sure you have GNU Make and CLANG compiler installed
- compile the code using "make main" command
- run the code with "./main > output.ppm"
Rendered image of a sphere should be saved in the output.ppm
file.
Ray tracing code is based on the Ray Tracing in One Weekend tutorial by Peter Shirley, Trevor David Black and Steve Hollasch.
Eventually, the NASADEM will be used as the Digital Elevation Model. NASADEM data is avialiable in multiple formats. Most likely the HGT format is sufficient for this project.
- CR. Steger, B. Steger, C. Shär "HORAYZON v1.1: An efficient and flexible ray-tracing algorithm to compute horizon and sky view factor" https://www.viewfinderpanoramas.org/)
- Viewfinder Panoramas: https://www.viewfinderpanoramas.org/
- NASADEM: NASA EarthData Search Link