W Randolph Franklin home page
... (old version)
ComputerGraphicsFall2014/ home page Login


List of Homeworks.

Homework 7, due Thurs Oct 30, 2014, 1159pm

Hand in your solution on RPILMS. Each team should submit their solution under only 1 student's name. The other student's submission should just name the lead student. (This makes it easier for us to avoid grading it twice.) For programming exercises, hand in code and screen dumps. We won't run your code, but will use the screendumps to judge how it worked.

  1. (8) Modify the shadedCube program in shadedCube.html and shadedCube.js as follows.
    1. Make the scene have two lights, one red and one green. They can be infinitely far away.
    2. Add buttons to rotate the lights.
    3. Add buttons or a slider to control the diffuse and ambient lighting. You can vary them together.
    4. Shade the cube properly as it rotates. You can do vertex (Gouraud) shading.
    5. Submit some images showing the effect of the lights in different positions.
  2. (2) Modify shadedSphere1 and shadedSphere2 to display the number of subdivisions. (You figure out how to do this.) For each program, then increase the number of subdivisions until your browser becomes unresponsive (perhaps when you try to decrease). For each, report your GPU, browser, OS, and number.