70 likes | 144 Views
The Construction of a Ray Tracer. Nicole Bieber. What is Ray Tracing?. A method of converting a 3D model into a 2D image Traces the path of light through each pixel An extension of ray casting, which was first developed by Arthur Appel in 1968
E N D
The Construction of a Ray Tracer Nicole Bieber
What is Ray Tracing? • A method of converting a 3D model into a 2D image • Traces the path of light through each pixel • An extension of ray casting, which was first developed by Arthur Appel in 1968 • Turner Whitted adds rays for reflection, refraction, and shadow in 1979 • Many applications: video games, movies, medical imaging…
How does it work? Diagram courtesy of the Wikimedia Commons.
How I Built It • Step 1: Write a Ray Caster • Step 2: Add Phong Shading • Step 3: Add recursive ray tracing for shadows and reflections • Step 4: Add other fun things, like supersampling, procedural solid textures, and a bounding sphere hierarchy • Step 5: Test, test, test!
How I Built It • Step 1: Write a Ray Caster • Write representations and intersection methods for several different types of objects • Write code to orchestrate the entire process, first calling the provided parser and then creating the necessary objects • Write three different view modes: regular, depth, and normal • Test, test, test! • Step 2: Add Phong Shading • Step 3: Add recursive ray tracing for shadows and reflections • Step 4: Add other fun things, like supersampling, procedural solid textures, and a bounding sphere hierarchy • Step 5: Test, test, test!