CS 381 Fall 2012
Assignment 6
Assignment 6 is due at 5 p.m. Monday, November 12.
It is worth 20 points.
Procedures
E-mail
answers to the exercises below to
ggchappell@alaska.edu,
using the subject
“GA6”.
- Your answers should consist of the source code for the
application and shaders for Exercise A.
These should be attached to your e-mail message.
- Send only the above!
I do not want project files or executables.
I also do not want things I already have, like
glut.h.
- Be sure to include your name in your e-mail.
- I may not read your homework e-mail immediately.
If you wish to discuss the assignment (or anything else)
with me, send me a separate message with a different subject line.
Working in Pairs
This assignment may optionally be done in pairs.
If you work with someone else:
- Put both names in the submission e-mail and in the source code files.
- Cc: the submission e-mail to the other student,
so that I can send an acknowledgement to both.
- Under normal circumstances, both authors will receive the same grade.
Exercises (20 pts total)
Exercise A — 3-D with Texture Mapping
Purpose
In this exercise, you will write an OpenGL/GLUT application
and associated shaders in GLSL.
Your program will display one or more textured 3-D objects.
Instructions
Write an OpenGL program and associated GLSL shaders that meet the following requirements.
- You must include at least one vertex shader and one fragment shader.
- At least one of your shaders must do texture mapping.
- The rendered scene must include at least one moving,
texture-mapped, 3-D object
which is not identical to an object drawn by any of my posted programs.
- Your code must do at least one of the following:
- Use a texture that is significantly different
from any that I have used
(e.g., load an image from a file,
use a different procedural-texture technique,
render a texture using OpenGL).
- Implement some texture-based effect that I have
not done in class.
- Other requirements are as for previous 3-D assignments
(C or C++, OpenGL/GLUT, rules for callbacks,
interactive animation, double buffering, 3-D, HSR,
perspective, using model/view, original content).
Notes
- You are encouraged—but not required—to
improve previous submissions by adding textures to them.
- Standards for code are as for
the first assignment
(must compile, readable, following conventions,
avoid extra output,
clear how program is used, not buggy-looking, give credit, etc.).
- Submitted code may be demonstrated in class.