Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 759 Bytes

File metadata and controls

30 lines (22 loc) · 759 Bytes

Terrain Rendering Engine

Dependencies

To get this running on OS X Yosemite, you'll need to install a few things:

~$ brew install homebrew/x11/freeglut
~$ brew install gcc49
~$ brew install devil

Run with the command:

~$ ./run 3 31 "top_data/*.hgt"

or for a large terrain:

~$ ./run 10 255 "top_data/*.hgt"
  • Note that the second argument is of the form (2^n)-1 where n is an integer

Movement:

  • w: move forward
  • s: move backward
  • a: turn left
  • d: turn right
  • up arrow: move up
  • down arrow: move down
  • left arrow: strafe left
  • right arrow: strafe right

For debugging memory related-errors:

~$ valgrind --tool=memcheck --error-limit=no --track-origins=yes --leak-check=yes ./run 10 31 "top_data/*.hgt"