





Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
Material Type: Exam; Professor: Brogan; Class: Introduction to Computer Graphics; Subject: Computer Science; University: University of Virginia; Term: Fall 2002;
Typology: Exams
1 / 9
This page cannot be seen from the preview
Don't miss anything!
Introduction to Computer Graphics Midterm Examination Professor Brogan
Name:____________________________
Honor Pledge: This is a closed-book, closed-notes, independent exam. Please sign the honor pledge: On my honor as a student, I have neither given nor received information on this exam. Signed, ______________________
All coordinate systems will be assumed right-handed.
Display Technology
What is interlaced scanning and why do televisions use this technology?
What is 3:2 Pulldown used for?
Describe the movements and emissions of the electron gun in a CRT when illuminating images on the screen of a non-interlaced raster display device.
True or false, there must be tight synchronization between a raster monitor’s framebuffer, phosphor persistence, and refresh rate? Define these terms and explain.
A pixel of a liquid crystal display could be described as a layer of liquid-crystal material sandwiched between two layers of polarizing material. Explain how this pixel is able to control screen illumination. Draw the three layers of the pixel and label the flow of light.
Rasterization
void lineSimple(int x0,int y0,int x1,int y1,Color color) { int pix = color.getRGB(); int dx = x1 - x0; int dy = y1 - y0;
raster.setPixel(pix, x0, y0); if (dx != 0) { float m = (float) dy / (float) dx; float b = y0 - mx0; dx = (x1 > x0)? 1 : -1; while (x0 != x1) { x0 += dx; y0 = Math.round(mx0 + b); raster.setPixel(pix, x0, y0); } } }**
Bresenham’s line drawing algorithm improves the efficiency of the above code. Edit the code to eliminate the use of the round() function and to simplify the computation of mx0 + b* (use difference equation) in the while loop.
What’s a simple change you could make to lineSimple() so it worked for all lines (including those from answer )?
What is the definition of a concave polygon?
Clipping
When is it preferable to use Cohen-Sutherland line clipping?
In Liang-Barsky line clipping, we clip a line to four planes. If a line is parametrically defined by two points p 0 and p 1 : p(t) = p 0 + t(p 1 – p 0 ), and a plane is defined by a point q 0 and a normal N facing towards the outside, how do you solve for the point on the line that delineates the clipping boundary? Compute t.
y
y’
Viewing in 3-D
How is the homogeneous coordinate, (x, y, z, w) converted into an (x, y, z) tuple?
Given a camera position P , a vector normal to the image plane N , and an up vector Vup, describe how to convert a point W in world coordinates to a point in camera coordinates. You do not need to worry about translating the world origin to the camera position for this problem. For each of the axes of the camera’s coordinate system listed below, write the corresponding vector in world space. I’ve done one of the axes for you.
Color and Light
Define metamers.
Can a computer monitor produce all the colors we see in the world? Why or why not?
How would you select intensity values for each of 10 pixels arranged in a row so that the increase in brightness (from initial value of 0 to max of 99) looked smooth?
Define:
Hue:
Saturation:
Value:
I (^) d =
Given: an incoming light intensity, I a surface normal, N a vector from the surface to the light source, L a vector from the surface to the viewer’s eye, V specular constant, ks define the vector r from the image, in terms of these variables.
Define Mach banding, indicate the lighting model the frequently causes the effect, and describe why we perceive the effect.