Lesson 1: Writing a Simple Raytracer
Download Source code for this Lesson (9.7 KB)
1. How Does It Work?
To begin this lesson, we will explain how a threedimensional scene is made into a viewable twodimensional image.

2. Raytracing Algorithm in a Nutshell
This chapter will explain how the raytracing algorithm works and why it is efficient for simulating how light and objects interact in the real world.

3. Implementing the Raytracing Algorithm
Going from theory to practice, we will see how the raytracing algorithm can be adapted to a computer program.

4. Adding Reflection and Refraction
By extending the concept of backward tracing, we can easily add photorealistic effects such as reflection and refraction.

5. Source Code
We will finish this lesson with an example of a very simple C++ implementation of the ray tracing algorithm.