Graphics simulation of a terrain with an island with snowy peaks in a sea implemented using a height map. Part of Graphics assignment for Computer Graphics course at RIT, Bangalore.
Libraries to install: SOIL (Simple-OpenGL-Image-Library), FreeImage, CMAKE
Open the ubuntu terminal and paste the following:
- sudo apt-get install freeglut3-dev
- sudo apt-get install libfreeimage-dev
- sudo apt-get install libglew-dev
- sudo apt-get install libsoil-dev
- sudo apt-get install libpthread-stubs0-dev
- sudo apt-get install libglfw3-dev
Open the ubuntu terminal, cd to the project directory and paste the following: g++ -std=c++11 main.cpp -o test -lSOIL -lGLEW -lglfw -lGL -lX11 -lXi -lXrandr -lXxf86vm -lXinerama -lXcursor -lrt -lm -pthread
- K,L keys to start/stop rotation.
- Up,Down arrow keys to increase/decrease the height of terrain.
- Left,Right arrow keys for zoom in/zoom out.
- A,S keys to increase/decrease the amplitude of sea-waves.
For more info: http://stackoverflow.com/questions/17768008/how-to-build-install-glfw-3-and-use-it-in-a-linux-project