CMPS 160 -- Lab Assignment 3
Due date:
Midnight, Friday, April 24, 2015
Objectives:
Render the Mandelbrot height field as a flat shaded surface.
Description
-
Using your prog1 as the starting point,
modify it so that the height field is rendered as a surface instead of a wireframe.
Keep the same orthographic isometric view.
-
In order to get a shaded surface,
one must specify a color for the surface
and a color for the light source.
The surface and light color are then combined to produce a directly illuminated surface.
There are different types of shading options available.
For this assignment, you will be implementing flat shading, also known as constant shading.
Each surface patch (a triangle) is applied a single shaded color.
-
The shaded color of each triangular patch depends on the surface color,
and the relationship between the surface normal and the direction of the light source.
For this assignment,
assume that you have a single light source in the direction of [1,1,1].
This is the same direction of the viewer.
This type of lighting is also called a "headlight".
You are free to chose the color of your surface and the color of your light source.
Grading:
This program will form part of your CMPS 160 grade.
The other components of CMPS 160 grade are your midterms and final project.
The header block should contain at least the following information:
name, cruzid, date, and brief description of your program.
This will be true for all future assignments and programs.
Rubric:
5 header blocks
5 separation of javascript from html
10 inline comments
20 correct orthographic isometric view
60 correct flat/constant shading
Who graded your assignment:
matthew: ahosick -- jbernay
jiayu: jchen160 -- tmlinejo
Submission:
Submission must be done using the "submit" command from CATS.
- submit cmps160-ap.s15 lab3 lab3.tar, or
- submit cmps160-ap.s15 lab3 lab3.zip
This command should work from unix.ic.ucsc.edu.
Create and submit a subdirectory called lab3.
IT SHOULD CONTAIN ALL THE FILES NECESSARY FOR THIS PROGRAM TO RUN.
Tar or zip up lab3 before submitting.
Last modified
Monday, 13-Apr-2015 22:30:38 PDT.