-={3D Maze in OpenGL}=-

Navigation:
» Programming » 3D Maze in OpenGL

This was the final project for my Computer Graphics (CSCI461) class at Middlebury. It's a simple first person 3D game where you get to navigate a randomly created maze. There are two camera views available, top down and first person.

The maze is randomly generated each time the program is run using a depth first search algorithm, which was modified from this website. To change the size of the maze, you have to change the value of the varibales "rows" and "cols" in the source code and recompile. The deafult is 20 rows and 10 columns.


First person view.

Another first person view.

Top down view, zoomed in.

Top down view, zoomed out.

Notes on Usage

  1. You need to have OpenGL installed on your computer before you can run the program.
  2. Right now, I only have the Mac OS X executable. I couldn't get the code to compile on a windows machine. If you got it to work, please send me an email at the address below, I'd very much appreciate it.
  3. The controls are: w - move forward, a - move left, s - move back, d - move left, c - toggle view, x - zoom out, v - zoom in, ESC - exit.
  4. Scrolling around the game window with your cursor will change the direction that you are facing.
  5. In the top down view, the white triganle represents the position of the player, and it points towards the direction the player is facing.

Downloads


Contact: yannaungoak_at_gmail_dot_com.