Final Project - CSE 167 - Student: Janie Lu
Comments
What I didn't do: steal code from nehe.gamedev.net to make my program.
Check out the particle engine on that site! Someone should have stolen
that code. Oh, wait.....
DESCRIPTION:
Simple half-naked robot wearing hot pants and going topless with
a rock hard body (watch out ladies!). My goal was to create a robot
with moving top and bottom parts of the arms. After reaching that goal
I added texture mapping since that's what everybody doing rooms was doing.
So I did that PLUS robot movements. Whats up room people what what??
TO RUN:
Push F5 to start executable. To move robot's arm at the same time,
use the arrow keys. To move the arms individually, push "b" (b stand for
both, as in both arms moving together). Then the arrow keys control the
right arm, while "j", "k", "l", and "i", move the left arm.
To move the viewer's position to see different angle's of the robot,
push "z", "x", "c", and "s", to move left, down, right, and up, respectively.
To switch between wireframe mode and normal mode, push the "w" button.
Press "R" or "r" to increase or decrease rate of movement (respectively).
To move the robot's arm to predetermined positions, there are many
keys you can press. These include: 1, 2, 3, 4, 5 (this make him wave, push
the buttons in order repeatedly), 9 & 0 (armpit fart motion), and the capital
letters A, S, D, F, C, V, B, N, Y, and M.
Implementation:
I used texture mapping to demonstrate that I learned how to do this,
I texture mapped a picture of funky pants onto the robot's lower body. I used
two rotated cones to draw his mouth, and used stretched spheres
to draw his top and lower arms. To move his arms, I rotated the arms by 5 degrees
each time the user instructed to move his arms in a certain direction. To do this,
I needed to keep track of where the top part of the arm ended after rotation, and
then add the bottom part of his arm onto the new location where the top part of
his arm had moved. Texture mapping: used the FourTextures stuff.
List of figures