Second project I worked on during my internship the last year of school. I was basically given free reign to implement a SIGGRAPH paper.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
top_data
.gitignore
Makefile
Makefile.backup
README.md
bears.jpg
functions.c
functions.h
gl_functions.c
gl_functions.h
globals.c
globals.h
grass.jpg
main.c
movement.c
movement.h
out
shaders.c
shaders.h
typedefs.c
typedefs.h

README.md

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"