CS 551: Introduction to Computer Graphics

Assignment #2

Goal: Another "Hello World" program, this one to learn simple OpenGL use.

Assigned: Tuesday, February 8, 2000

Due: Thursday, February 17, 2000

Relevant reading/files/software:

Synopsis: A simple flythrough application. Your program will load a polygonal object and allow the user to fly around it, using gluLookAt() to control the viewpoint. You will need to design a form in fdesign that contains:

As usual, the single best assignment (measured by ease of use and "extra" features) will earn an 11 (one point extra credit).

Turning in the assignment: Before class starts on Thursday, February 17, you should:

Specifics: We are providing a Makefile, which contains rules for compiling and submitting programs, a C file named gfx.c, which contains code to draw into an Xforms glCanvas, and a header file gfx.h, which contains prototypes for the functions in gfx.c. You will modify the functions in gfx.c, adding code to draw the scene and handle callbacks. You will also create a form in fdesign. Saving that form (as a .fd file) will also create .c and .h files that contain the Xforms library code for creating the form, which you must include in your program via the Makefile. Some special things to notice about the code:

Advice: Start early! This assignment involves pulling together OpenGL (which most of you have never used) and XForms. Don’t underestimate how long it will take, or the difficulty of debugging the dreaded "black screen" effect.