Notes for Homework 10
- NOTE: Make sure to update your webpage with images from this assignment!
- Code to read and write PPM and BMP images is available here.
- A list of interesting indices of refraction is available
here.
- Example images of:
a reflective material,
ray traced shadows,
correct refraction,
incorrect refraction,
scene with a triangle,
and three
pathtracing
examples.
- Make sure you turn in a 512 x 512 image for the following scene.
- Eye at: (0,5,5), Looking at: (0,0,0), with Up Vector: (0,1,0).
- Field of view in the Y-axis should be 90 degrees.
- Red (1,0,0) sphere centered at (0,1,0) with radius 1
- Green (0,1,0) sphere centered at (3,1,-3) with radius 3
- Yellow (1,1,0) sphere centered at (-2,-3,2) with radius 2
- Blue (0,0,1) plane with normal (0,1,0) running through point (0,-2,0)
- Reflective plane with normal (0,0,1) running through point (0,0,-7)
- You may make this reflector non perfect (less than 100% reflectivity) if you want.
- Red (1,0,0) triangle with vertices (3,-2,4), (3,2,3), and (2,-2,2).
- Refractive sphere of radius 1.5 centered at (0,3,3).
- Please show at least two images on your web page -- one with and one without this sphere!
- Light at: (-5,5,2) with color (1, 0.6, 1)
- Here is a snippet of code that initializes this scene inside my ray tracing framework.
- You may, again, use my ray tracing framework as the basis for this assignment (as a
[tar/gz] or
[zip] file).
- Sample executables:
- Linux (runs on MLH 301 lab machines)
- Windows (requires a copy of glut32.dll)
Last Modified: Monday, November 6, 2006
Chris Wyman (cwyman@cs.uiowa.edu)