Ray Tracing in 10 images
Setting up the viewport to produce the initial scene:
Adding a sphere:
Adding a larger sphere to imitate earth:
Modeling Lambertian surface material:
Adding metal and glass materials:
Changing camera angle:
I started this project knowing little about computer graphics, planned to spend a week on it and move on. I ended up finding graphics much more interesting than I thought.
The code to produce the final scene took around 12 hours to run on my computer. At this point, I think I will pause explorations in graphics and learn more about computer architecture. I want to understand how to optimize the code to make future iterations faster.