Ray Tracing, Version 5.0
Day #14
|
Goal: Ray trace a scene where
|
Ray Tracing Tools:
int recurse_level;
and change its constructor so that it initializes recurse_level to 1.
GLdouble shininess;
and change its constructor so that it initializes shininess to 0.0.
Scene:
int MAX_RECURSION_DEPTH
and change its constructor so that it is initializes to 1.
maxRecursionDepth
Examples:
Example files are in /classes/cs3114/Advanced_Graphics/files/reflection and use the usual assortment of ppm files.
refl_1.scn (uses maxRecursionDepth = 1; no reflection)
refl_2.scn (uses maxRecursionDepth = 2)
refl_3.scn (uses maxRecursionDepth = 3)
refl_4.scn (uses maxRecursionDepth = 4)
refl_5.scn (uses maxRecursionDepth = 5)
refl_globe.pos.scn (uses positional light, square is textured and reflected onto the sphere)
refl_globe.dir.scn (uses directional light)
refl_globe.pos_above.scn (uses positional light, as viewed from above the scene)
refl_globe.pos_reverse.scn (sphere is textured and reflected onto the square)