3DWorld

    This is my first OpenGL program. It's a simple 3D environment demo. As you can see from the screenshots, instead of textures, everything is rendered with basic colors. The "room" that the viewer is in is just a box with different colored sides. I made each color unique in order to help orient myself. Furthermore, I overlayed red text which allowed me to visualize some of the data I was working with such as coordinates of the camera and other objects. Sometimes the numbers would be off so this proved to be a very useful feature.

    In the middle of the room there is a red box. This box is supposed to be black but I programmed it to turn red whenever a bullet is inside. The starting position of the bullet just happens to be right inside. In figure C you can see the bullet (a small red cube) in front of the box. This bullet is supposed to shoot from your viewpoint when clicking the mouse like in a first person shooter but I haven't nailed down the animation. Instead when you hold down the left mouse button, the bullet moves forward until you release. I tried to make it stop when it hits the walls but most of the time it just goes through. 

    Aside from playing with the faulty bullet and moving around, you can also interact with the objects in the environment. For example, the black box can be picked up and placed somewhere else(as demonstrated in figures B, C, and D.) You can then jump on top of it to reach the larger magenta cube (see figure E)

Download