Skip to content

ravivats/terrain-whacamole

Repository files navigation

terrain-whacamole

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.

To run the Simulation on linux:

Libraries to install: SOIL (Simple-OpenGL-Image-Library), FreeImage, CMAKE

Steps to install packages:

Open the ubuntu terminal and paste the following:

  1. sudo apt-get install freeglut3-dev
  2. sudo apt-get install libfreeimage-dev
  3. sudo apt-get install libglew-dev
  4. sudo apt-get install libsoil-dev
  5. sudo apt-get install libpthread-stubs0-dev
  6. sudo apt-get install libglfw3-dev

To run main.cpp:

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

Simulation Controls:

  1. K,L keys to start/stop rotation.
  2. Up,Down arrow keys to increase/decrease the height of terrain.
  3. Left,Right arrow keys for zoom in/zoom out.
  4. 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

About

Graphics simulation of a terrain with an island with snowy peaks in a sea implemented using a height map.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published