Lab 2

Transformations, Illumination

Due: Thursday, May 3rd 2018, 15:00 (in class)


Individual Effort:
No team participation is really encouraged in the case of the homework or the labs. If you fail to do so, it will be treated as academic misconduct.
Late Submission:
Don't get behind in the lab assignments - always start early!
In this course you will have a total of 4 (four) grace days that you can distribute however you like. See here for more information on grace days.

Tasks:


The following are based on exercises from the book Interactive Computer Graphics A Top-Down Approach with WebGL 7th edition.


1) For many Virtual Reality installations, the COP can be at any point and the projection plane can be at any orientation. Derive the projection matrix for this general case. (3 points)

2) Stereo images are produced by creating two images with the viewer in two slightly different positions. Consider a viewer who is at the origin but whose eyes are separated by N units. What are the appropriate viewing matrices to create the two images if you want to display them on a screen 5 meters in front of the viewer? (Hint: use the result of exercise 1) (2 points)

3) Derive a method for displaying a spherical mesh using a triangle strip for each row of rectangles. Can you extend your method to draw the entire mesh with a single triangle strip? Describe these methods as pseudo code. (2 points)

4) Most graphics systems and APIs use the simple lighting and reflection models that we introduced for polygon rendering. Describe the ways in which each of these models is incorrect. For each defect, give an example of a scene in which you would notice the problem. (1 point)

5) Find four points equidistant from one another on a unit sphere. These points determine a tetrahedron. Find the general solution with explanation how you developed it. (Hint: You can arbitrarily let one of the points be at (0, 1, 0) and let the other three be in the plane y = −d, for some positive value of d). (2 points)



Last modified: May 2, 2017
Lukas Herzberger / a1006039 AT unet DOT univie DOT ac DOT at