Part I due Oct. 18th at 23:59
Part II
due Oct. 18th at 23:59
BONUS
1. Be able to use mouse to select the right arm to adjust its direction.
This will affect the direction of scene camera in the navigating mode.
(15/100)
2. Create fancy bubbles, with lighting, transparency and slowly increasing
size. (20/100)
Your program must provide following functions.
1. The initial size of the window is 500 x 500 pixels and the title
of the window should be "your_name online_grades_ID".
2. Use one color for three objects nearby the robot, and use
another color for other three objects.
3. There are at least 4 different colors for the bubble.
4. Press Esc to quit the program.
Hint 1: Some important openGL and glut
functions:
glPushMatrix, glPopMatrix, glTraslate, glRotate, glScale, gluLookat,
glMatrixMode;
glInitNames, glPushName, glLoadName, glRenderMode;
gluNewQuadric;
glutSpecialFunc, glutIdleFunc.
Part II (50
points)
Create a Houdini scenc which consists of all
the objects listed in Part I.
A bubble should come out of the robot's mouth
every two seconds.
README file :
The README file should contain :
1. Your name, SSN, ID and your email address.
2. Briefly explanation of your program structure. (5/100)
3. Description of any difficulty when you implement the program.
(5/100)
4. Checking list (Similar to homework 1, you
must provide this information, otherwise you will get 10/100 penalty)
You must submit following files :
Source code (.c , .cc and .h)
Makefile
Houdini scene file (.hip)
README
run -- It is an unix script file which will
compile and run your program.
You have to provide this script
file since otherwise I will not be able to figure out how to make your
program.
Don't submit your .o and executable files.
To turnin your homework, check the man pages of turnin. You are more likely to want to use the following command line:
turnin -c cap4730fa00 -p hw2 README run Makefile file1.c file1.h file2.c file3.hip...
Turnin will acknowledge your submission. If you do not get an acknowledgment,
you probably will get an error message.
You can submit as many times as you want, but SUBMIT
ALL YOUR FILES EACH TIME YOU RUN TURNIN.
Your openGL program will tested by following steps
on a Sun workstation.
1. ./run
2. Select the robot.
3. Press arrow keys to move the robot.
4. Unselect the robot.
5. Use arrow keys to move the scene camera.
6. Press F1 to enter the navigating mode.
7. Press arrow keys to move the robot.
8. Press F1 again to pop back to normal mode.
9. Press SPACE bar to fire some bubbles.
10. Press ESC to quit.