CSE 160 -- Hwk 2
Due before midnight, Friday, April 30, 2021.
Late submissions will not be accepted/graded.
Objectives:
Get early start on Program 3.
Description:
-
What you're asked to do for this homework is actually part of Program 3.
The idea here is to get you guys started early, and with the easier parts of Program 3.
-
Read the program description for program 3.
If anything is not clear, seek clarification now rather than next week.
-
For this homework, your task is broken into 3 parts:
-
Implement Gouraud shading on your cylinder.
The main difference between Gouraud shading and flat shading is that
the vertex normals are different.
Depending on your implementation, you may or may not have repeated vertex normals.
Using a cylinder with small number of sides will allow you
to easily see the difference between flat vs smooth shading.
-
The next step is to change the light source from
a directional light source to a point light source.
The first two resources listed in the Program 3 description
are excellent starting points:
-
Finally,
you are to combine the effects of the point light and directional light sources.
This is achieved by simply adding both effects and making sure that the
values don't exceed 1 in each color channel.
Grading:
This homework will be graded as "all or nothing".
You get full credit for submitted something even if it's partially working.
You get no credit if you don't submit anything.
Again, the motivation for this homework is to get you guys started early on program 3.
It is a fairly long program, and you want to break it down
into pieces and tackle each one separately, just like this homework.
Submission:
Like previous homeworks, submissions will be on Gradescope.
However, instead of submitting code, submit images from your
implementation.
The model would be of the mallet from Program 2, or other
models that you might have created using cylinders.
Last modified
Monday, 26-Apr-2021 06:48:54 PDT.