


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



Computer Graphics Fall 2009 (this group) home Click to expand: ±WRF home page ±Teaching ±Research ±Miscellany ±Your wiki groups SEARCH
Find
7 Oct 2009 4-5:
Answer every question.There are 7 pages with 15 questions, total
22 points.
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.
It's fast since several objects can be processed simultaneously at different stages of the pipeline. However, the objects cannot interact with each other (except via the Z-buffer).
If they are behind the camera, they will still project onto the projection (viewing) plane and interfere with the visible objects.
102 (3 for 1st triangle, 1 each for the others).
The human eye can see 3 primary colors; it has 3 types of color receptors.
The final thing your OpenGL program starts executing, which waits for a event, processes its callback, then goes back to waiting.
raytracing
fragment.
overlap the same pixel?
Z-buffer, aka depth buffer.
glColor4f(1.,1.,0.,1.); glColor4f(0.,1.,0.,.0); glVertex2f(1., 1.); glVertex2f(1., 2.);
Assuming that all the relevant OpenGL options have been enabled, what colors are the 2 vertices?
The 2nd glColor4f call supercedes the first. That sets the drawing color to be transparent. Therefore the background color will show through. If that hasn't been changed, it will be black.
glOrtho is typically used to set the projection, and so the 1st code example is more common. However, the 2nd fragment would also produce a legal but different result, because glOrtho will just modify the ModelView matrix here.
why does only pointstep have an ampersand before it?
It's a scalar, the other an array. Both are returning values. That's the C semantics for returning values into a scalar and an array.