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. You must document in your README
how we can recreate this scene with your program!
- 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)
- C++ code snippets you may use:
- Additional code snippets will be posted later:
Last Modified: Thursday, October 27, 2005
Chris Wyman (cwyman@cs.uiowa.edu)