CMPS 160 -- Lab 3

Early if time stamp is before midnight Nov 04, 2017.
On time if time stamp is before midnight Nov 05, 2017.
Late submissions will not be accepted/graded.

Objectives:

Handle multiple light sources and projection types. Also add object selection via picking.

Description:

Add a second light source to the scene. This will be a point light source instead of a directional light source. This will affect how your lighting is calculated for polygonal faces and for vertices.

Allow the user to turn either light on or off by clicking on the graphical representation of the light itself (as opposed to clicking on a toggle button). This is an initial exercise which we will use in your next assignment to do direct manipulation on objects.

So far, we have been using orthographic projection. Here you will provide an option for switching between orthographic and perspective projections using a toggle button.

Details:

Resource:

PerspectiveView code from the Matsuda-Lea book.

PickObject code from the Matsuda-Lea book.

Grading:

Submission:

See course overview for instructions on what to submit and what not to submit.

Put materials in a folder named lab3 and zip it up. Submission must be done using the "submit" command from unix.ucsc.edu


Last modified Tuesday, 22-Jan-2019 09:42:16 PST.