Reference no: EM131696955
Introduction to Computer Graphics Project - Viewing
The purpose of this project is for you to familiar with model view matrices and projection matrices.
Generate a World (Object) Frame - For this project, your world (object) frame will contain an 8 by 8 maze as shown below:
![2342_figure.png](https://secure.expertsmind.com/CMSImages/2342_figure.png)
To create this world frame, first you need to generate an 8 by 8 maze. The following three files are given to help you generate a maze:
- genMaze.h: The header file for genMaze.c
- genMaze.c: The implementation file
Task 1: Flying Around the Maze
The first task is to fly around the maze. What you need to do is to pick an eye point that is a higher than the maze and look at the center of the maze. Then simply move your eye point around the center of the maze for 360 degree as shown in a top view of a maze below:
![1715_figure1.png](https://secure.expertsmind.com/CMSImages/1715_figure1.png)
So, pick an eye point (preferably on the same side of an entrance) and simply move the eye point around as shown above.
Task 2: Flying Down
After the first task is finished, the next step is to fly down to the front of the entrance. For this task, simply slowly change the eye point from the final position of the task 1 to the front of the entrance. At the same time, you also need to slowly change the at point from the center of the maze so that you will look straight into the maze once the eye point is right at the front of the entrance.
Task 3: Solving the Maze
The last task is to solve the maze and make it like a person is actually walking into the maze. You can use any maze solving algorithm (left-hand rule or backtracking with recursion). To simulate waling into the maze, what you need to do is to repeatedly change eye point and at point. Once you at the exit, simply stop.
Attachment:- Assignment Files.rar