This project takes an .obj file as input and renders the 3D object with texture mapping and bump mapping.
- C++
- Eigen library (for linear algebra)
- OpenGL (version 4.1.0)
- GLSL (version 4.10)
- GLFW
- 'u' scales the earth up
- 'd' scales the earth down
- 'r' to rotate the earth
- 'z' to spin the scene with the camera
- '-' to zoom out with the camera (perspective mode only)
- 'b' toggles between terrain bump map to bricks bump map
- can also change between orthographic and perspective projection in main.cpp
Two texture maps (daytime and nighttime) linearly interpolated depending on Phong shading computed at that point.
With topographical bump map:
With brick bump map:
To see the world animated, you can check out this video.
Object data made by Glenn Campbell, ideastudio on www.free3d.com.
Maps supplied by NASA.