CS160 Program 3

Due Wednesday, November 14, 2001 MIDNIGHT
Submit Prog3 directory using CATS Submit Program


Objectives:

Learn to use OpenGL shading, lighting, and materials. We are not giving you a template program for this assignment; however, there is already some shading in the template for assignment 2. Note: this is the last official assignment and you cannot make up late days on the project. Make every attempt to get this in early if you now have late days.

Assignment:

  • You MUST use C or C++ to do this and you MUST submit a program that compiles and runs on the BE 105 Suns.

  • Sample SIMILAR Program : This isn't the solution to this assignment but it will give you a feel for it. Similar Program gzipped. The creature for this program is read in. The file is Elephant Creature. Remember, you don't need to read a creature file in for your program. If you do, however, I will give extra credit. Here is another solution similar to this assignment Similar Program gzipped..

  • Reading Obj Files Some students expressed an interest in reading in model information from elsewhere. here are the routines for reading the .obj format. Remember, you still have to create one creature using the standard objects from assignment 2. objinfo.c and objinfo.h.

  • Submission must be done using the submit utility from CATS. Run "quickhelp submit" on a CATS machine to get more info on the submit command. Here's what you'll need to do when submitting the assignment.
    1. Create a DIRECTORY called "prog3". It should contain all the files required to make your program compile/run. It should also contain an ascii file which is your creature model, and a readme file explaining how to compile and run your program.
    2. Run "make clean" in the directory to ensure you do not submit .o files, core files, or the compiled program.
    3. From prog3's parent directory (if you are in the prog3 directory, type "cd .."), tar the directory with the command "tar cvf prog3.tar prog3".
    4. Compress the tar file with the command "gzip prog3.tar". This will produce the file "prog3.tar.gz" which you will submit.
    5. To submit your solution, use the command "submit cmps160.f00 prog3 prog3.tar.gz"

    Questions? E-mail Narayan Brooks