For this project, you will be creating an Alias/Wavefront OBJ file format visualizer using C or C++ with the OpenGL Utility Toolkit (GLUT). The specifications are outlined below.
Your program must be able to properly parse vertex (v), face (f), and comment (#) data from an input OBJ file.
The OBJ files I'll be testing your program with ONLY contain vertices, faces, or comments.
Comments should be ignored by your program (everything from the # to the newline).
After reading in the OBJ file, your program should allow me to interact with the model using the following keyboard commands:
Please use the Stanford Bunny OBJ file located at http://www.cs.sjsu.edu/~bruce/misc_files/fall_2016_cs_116a/bunny.obj to test your program. To save this file, click your right mouse button then select "Save Link As..." to save the bunny.obj file to your computer.
1. Please submit your program to the Canvas dropbox. I only need the source code. I will build the program myself.
2. Please name your programming project file with the following naming convention:
Lastname_Firstname_programming_project_3.c (for C programs)
Lastname_Firstname_programming_project_3.cpp (for C++ programs)
3. Please include your name as a comment at the beginning of your program like this:
/* Rob Bruce */
or this:
// Rob Bruce
4. I usually do not need a makefile to build your programs; however, in the unlikely event that I cannot build your project, I will send an email inquiry as appropriate.
5. I expect your program to compile without syntax errors.
6. I expect your program to execute without run-time errors.
Points will be deducted for any program that does not meet the specification as outlined above.
Assignments submitted after the due date will be worth, at most, 10 points. Additional points will be deducted for programs not meeting the specification as outlined above.
Fall 2016, CS-116A:
Lectures
Assignments:
Handouts:
Programs: