CS 381  >  Assignment 6

CS 381, Fall 2003
Assignment 6

General Information

Homework Policies

See the Homework Policies handout.

Questions (5 pts)

  1. Let v = (1, 2, 0), and let w = (0, 2, 2). Find the angle between v and w, in degrees, to two decimal places.
  2. Suppose you do
    glVertex3d(2., 4., 5.);
    What does OpenGL actually send through the pipeline? Hint: The answer is not (2, 4, 5).
  3. Suppose you do
    glLoadIdentity();
    glTranslated(2., 4., 5.);
    What matrix is generated by OpenGL?
  4. Suppose you do
    glLoadIdentity();
    glScaled(2., 4., 5.);
    What matrix is generated by OpenGL?
  5. Briefly explain the difference between the roles of the projection transformation and the model/view transformation in the OpenGL geometry rendering pipeline.

Program (25 pts)

Write a C++ program using OpenGL/GLUT that meets the following requirements.

Suggestions for Full Credit

You get the idea by now, right? The same sorts of things that got you full credit before will still get you full credit (but remember that you only get credit for using advanced OpenGL features if we have not covered them, and you have not gotten credit for them in an earlier assignment). In any case, here are some new ideas.

Note

Particularly well-done programs may be demonstrated in class.


CS 381, Fall 2003: Assignment 6 / Last update: 20 Oct 2003 / Glenn G. Chappell / ffggc@uaf.edu