Lab 2

Pen & Paper

Due: Wednesday, Nov 21st 2018, 23:59

No late submissions / grace days allowed!!


Please note:

This assignment has to be turned in twice:

Both have to be turned in! If one of them is missing, no points can be awarded for this assignment!


Tasks

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

Task 1

Using barycentric coordinates, how do you calculate an arbitrary point P in a triangle formed by the Vertices V1, V2, V3? What are some of the practical applications for barycentric coordinates in computer grahics? Name at least two and explain them using the above mentioned triangle.

Task 2

Find the projection of a point onto the plane ax + by + cz + d = 0 from a light source located at infinity in the direction (dx,dy,dz)?

Task 3

Derive the perspective projection matrix when the COP can be at any point and the plane can be at any orientation.

Task 4

Show how to compute u and v directions from the VPN, VRP, and VUP using only cross products.

Task 5

Consider a highly reflective sphere centered at the origin with a unit radius. If a viewer is located at P, describe the points she would see reflected in the sphere at a point on its surface.



Submission

Please submit a single pdf-file (no zip!) containing all the solutions to the provided tasks in Moodle. Bring a hard copy to class, which will also have to be turned in.


Last modified: November 11, 2018

Manfred Klaffenboeck / manfred DOT klaffenboeck AT univie DOT ac DOT at