Computer Graphics Fall 2010 group home

## ECSE-4750 Computer Graphics, Rensselaer Polytechnic Institute, Midterm Exam, Fall 2010

NAME: ____________________________________

EMAIL:___________________________ RIN:______________

14 Oct 2010 4-5:30

Answer every question.There are 5 pages with 22 questions, total 44 points.

For 2 questions, you may write *free* for your answer (and get 2 points each).

This exam is open book: you may use calculators and any paper books and notes that you brought with you. You may not use computers or communication devices, or share material with other students.

- _____/2 Why do we want to make projection into a matrix multiplication?

- _____/2 Why does OpenGL contain primitives, like triangle strips,
that are not necessary (since you could draw the triangles
separately)?

- _____/2 What is the
*event loop*?

- _____/2 What does this do:
glutDisplayFunc(display)

- _____/2 What does this do:
glMatrixMode(GL_PROJECTION);

- ____/2 Since the mydisplay routine takes no arguments, how do you
get data from the main program to it?

- ____/2 What's the normal to the plane 5x+2y+3z=1? Your answer
should be normalized.

- ____/2 Give 4 advantages of homogeneous coordinates.

- ____/2 What feature in OpenGL is used to display the closest object when several objects overlap the same pixel?

- ____/2 Consider this sequence of calls:
glColor3f(1.,1.,1.);

glColor3f(0.,1.,0.);

glVertex3f(1.,1.,1.);

glVertex3f(2.,2.,2.);

- What color is the vertex (1,1,1)?
- What color is the vertex (2,2,2)?

- ____/2 Give the 4x4 homogeneous matrix for a 90 degree
rotation about the Y axis.

- ____/2 Since the Z buffer looks so useful, why is it not enabled by default?

- ____/2 Why do we like to group different physical input
devices into the same logical input device?

- ____/2 Which one of the following code fragments would you be more likely to see? Why? Could the other one still be legal and generate a useful picture? Why?
- this?

glMatrixMode(GL_MODELVIEW);

glLoadIdentity();

glMatrixMode(GL_PROJECTION);

glLoadIdentity();

gluLookAt(1.0,1.0,1.0,0.0,0.0,0.0,0.0,1.0,0.0); - or this?

glMatrixMode(GL_PROJECTION);

glLoadIdentity();

glMatrixMode(GL_MODELVIEW);

glLoadIdentity();

gluLookAt(1.0,1.0,1.0,0.0,0.0,0.0,0.0,1.0,0.0);

- this?
- ____/2 Assume that you have a model coordinate space with corners (0,100)
and (300,200). You wish to map points in it to a rectangular window with
corners (0,0) and (2,1). The center of the model coordinate space must
map to the center of the window. X and Y must scale the same. The model
coordinate space must touch the opposite sides of the window in one
direction (x or y) and be inside the borders of the window in the other
direction (y or x).
Compute what the transformations for X and Y should be, in this form:
X' = s X + d
_{x}

Y' = s Y + d_{y}I.e., tell me what s, d_{x}, and d_{y}are.

- ____/2 What's the 2 word name for the technique for storing the graphic
objects in the GPU (if there's space) so that they does not have to be
repeatedly sent down the network each time the window is redisplayed?

- ____/2 If you call
*glutCreateWindow*a second time in the program, which one of the following happens?- a new window replaces the old one
- a new window is created, and the old one still remains
- nothing happens
- an error message is printed and the program exits
- the computer executes the HCF (halt and catch fire) machine instruction.

- _____/2 What's the quaternion representing a rotation of 180 degrees about the axis (1,0,0)?

- _____/2 Use the vector formulation to rotate the point (0,1,0) by 180
degrees about the axis (1,0,0).

- _____/2 What 3 simpler operations would you combine to rotate an object
by 90 degrees around the point (1,2,3) about the axis (1,0,0)? That is,
the axis does not go through the origin, but goes through the point
(1,2,3).

- _____/2 Find the equation of the plane through the 3 points (0,0,0),
(1,0,0), and (0,1,0). Put your answer in the form ax+by+cz+d=0.

- _____/2 What special considerations arise when the center of a projection
is on the projection plane?

*end of exam*

Material created by W. Randolph Franklin and others is Copyright © 1994-2010, by the authors,
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License
·
This wiki is pmwiki-2.2.111
Barthelme theme by Scott and ported by Chi Shang

This page is /pmwiki/pmwiki.php/ComputerGraphicsFall2010/MidtermF2010 · Last modified on October 18, 2010, at 11:13 AM ·
Now is , ,