## 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.

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

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

3. _____/2 What is the event loop?

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

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

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

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

8. ____/2 Give 4 advantages of homogeneous coordinates.

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

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

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

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

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

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

14. ____/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?
1. 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);
2. 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);

15. ____/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 + dx
Y' = s Y + dy
I.e., tell me what s, dx, and dy are.

16. ____/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?

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

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

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

20. _____/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).

21. _____/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.

22. _____/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 , ,