CS 481/681
>
Assignment 4
CS 481/681, Spring 2004
Assignment 4
General Information
- E-mail
C++ source for the program described below to me at
ffggc@uaf.edu,
using the subject
"HA4".
(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: Tuesday, March 9 (any time).
- Worth: 25 points.
Homework Policies
See the
Homework Policies handout.
Program (25 pts)
There are three options for this assignment: A, B, and C.
You only need to do one of them.
Program Option A: VR
Write a C++ program using OpenGL
that meets the following requirements.
- Your program must use VR Juggler,
run in the Discovery Lab,
and present the user with a 3-D VR environment in proper perspective & stereo.
- Do something involving the wand.
- Allow the user to interact with the environment somehow.
- Do something significantly different from simpleApp.
Full credit will be given for a program meeting the above requirements.
Program Option B: From Assignment 3
Do one of the options from
Assignment 3
(which, just in case you’re not confused enough already,
are also called A, B, and C).
You may only receive credit for an option you have not turned in before.
Other than that, the rules for full credit are the same as those
given on Assignment 3.
Program Option C: Splines
Write a C++ program using OpenGL/GLUT
that meets the following requirements.
- Your program must draw a 2-D or 3-D scene, with the usual standards.
- Allow the user to modify the scene in some way.
- Use some type of spline in your scene.
You may draw either spline curves or spline surfaces (or both),
and you may use either OpenGL evaluators or your own spline-generation code.
See the full-credit suggestions for information on how this might affect your credit.
As usual, 80% credit will be given for a program that meets the requirements of Program Option C.
Suggestions for Full Credit for Program Option C
- Write a curve or surface editing program, using a picking method
to allow the user to move control points.
- Write your own code to draw some spline other than Bézier curves/surfaces.
- Figure out and use the GLU NURBS facility.
There is sample code for NURBS surfaces out there.
Certainly you may use it for ideas;
but your program must differ from what is available in some significant way.
- Combine splines with some other technique: shadowing, accumulation effects, stenciling, etc.
- Do something else. Surprise me.
Note
Particularly well-done programs may be demonstrated in class.
CS 481/681, Spring 2004: Assignment 4 /
Last update: 3 Mar 2004 /
Glenn G. Chappell /
ffggc@uaf.edu