Akshay Patel
CSE 167
Login: akpatel
This program orinally started as a little tank program where the tank could be used controlled by i,j,k,l as up down left and right respectively. Unfortunately I had a lot of trouble with the tanks movement and collision detection. It pretty much showed me that I really didn't understand a lot about some of the critcal parts of opengl. So i took the floor of my tank arena and retextured it and made a museum. I used the code I original made for the tank and modified it to allow the user to move around the room. I added a camera bob to simulate walking. And lit the room with a couple lights from the ceiling. All in all while a simple program I'm pretty proud of it simply because of how much I have been struggling in this class.
For the camera movement:
I learned that easiest way was to move the world around the camera, creating the illusion of movement. You move the world OPPOSITE of where the user is tending to go. It seems obvious but it took a bit to understand.
The walking bob is done by a trig algorithm that cycles 360 degrees with this being added to the y ( height ) of the camera making it bob up and down at a regular interval
The texture mapping and light was pretty straight forward, but since I was really lost in program four and on the midterm it proved a challenge at first.