CS 381
>
Assignment 10
CS 381, Fall 2003
Assignment 10
General Information
- E-mail
C++ source for the program described below to me at
ffggc@uaf.edu,
using the subject
"GA10".
(If you wish to discuss the assignment with
me via e-mail, use a different subject.)
- If possible, please send your source as an attachment to your e-mail,
rather than as part of the body text.
- Send source only! No executables, project/workspace files, etc.
- Be sure to include your name in your e-mail.
- Due: Thursday, December 4 (any time).
- Worth: 30 points.
Homework Policies
See the
Homework Policies handout.
Program (30 pts)
Write a C++ program using OpenGL/GLUT
that meets the following requirements.
There are two possibilities for this assignment.
- Images. Write a program that uses at least two of the OpenGL raster-image
transfer commands (glDrawPixels, glReadPixels, glCopyPixels).
- Since images generally do not work well in a 3-D scene, you may make this
a 2-D program, if you want.
- Textures.Write a program that does texture mapping.
- You must generate some of the texture coordinates yourself, using
glTexCoord*, or one of OpenGL’s
texture-coordinate generation methods
(see the Suggestions for Full Credit, below).
In short, draw something besides a bunch of textured teapots.
- Include 3-D, HSR, lighting. (This is easy by now, right?)
Suggestions for Full Credit
As before, but here are some new ideas.
(The old ones will still work, assuming they have not been covered in class yet.)
- Do it all: do texture mapping, and also use all three image transfer commands.
- Figure out how to do environment mapping.
And do it.
- Implement some interesting method for automatically generating an image.
The image generation code used in my programs posted on the web page is not interesting.
- The old full-credit option of writing something practical
still applies, of course.
But now, “something practical” might mean writing an image editor:
load an image, allow the user to modify it, and save the modified image.
- Use one of OpenGL’s methods for automatic texture-coordinate generation
(evaluators, glTexGen*).
Note
Particularly well-done programs may be demonstrated in class.
CS 381, Fall 2003: Assignment 10 /
Last update: 1 Dec 2003 /
Glenn G. Chappell /
ffggc@uaf.edu