3480 Project

Samson Slone

3D Maze Solver

I will create a 3D render animation using openGL that involves a randomly generated maze with a ball rolling around it until it reaches the end. The maze will be random each time the program is ran. I will implement it at a fixed grid size, most likely 10x10 or 15x15 tiles.

Implementations

Resources

Maze Generation Algorithm

Wikipedia: Maze Generation Algorithms

Example Image


Project Structure

Project.cpp
-void createTile(int x, int y, int z, bool n, bool e, bool s, bool w)
-void DrawGLSkybox()
-void CheckCameraTurn()
-DrawGLScene()
Maze.cpp
-CreateMaze()
-OutputMaze()
MazeSolver.cpp
-SolveMaze()




Picture of the walls I have built so far, this will be a function to place a North,East,South, Or West Wall at certain points of the grid from the pre-generated maze

Example Code

CreateWall("North",grid.x,grid.y);

11-1 Maze has been generated

11-3 Maze can now vary in size(height and width)

11-3 Camera controls have also been implemented

https://learnopengl.com/Getting-started/Camera

11-4 Generated 80x80 maze

SkyBox Generated

had to make skybox immune to lighting

Recorded GIF