Homework 7
22C:151 Introduction to Computer Graphics
Due Tuesday, Nov. 11, 2003
NOTE: This assignment was modified 11/6/03 to add the additional
problem on circle drawing and to update the due date.
25 points
- Show details of tracing the execution of the midpoint circle algorithm (given
in class on 11/4) on a circle of radius 12. Include a picture showing
which pixels are illuminated (for at least for the first quadrant, i.e. upper right
quarter, of the circle.) By details, I mean, you should show at each step the
values of d, incr_E, incr_SE, etc.
- Extend your HW6 program to recursive ray-tracing.
For the ray-tracing program, you should
- handle reflectivity (via recursive ray firing)
- handle transparency, with refraction (via recursive ray firing)
- add one additional command line argument to your program - the depth of recursion to which
to do the ray tracing (a recursion depth of 1 would indicate
no recursion - just the basic ray casting of Part 1).
- add the ability to render BOXes described in the scene files.
Submitting your program
Submit your assignment according to the guidelines on the class WWW
home page. For the on-line part of the submission, respond 'hw7' to
the ``Location:'' request.