Not having touched C++ for a while, this mini book was the perfect refresher and an insight to some things that I didn’t know about c++. The following are screenshots of my progress.
Chapter 1:
The hello world of computer graphics
Chapter 2
added vect3 header
vect 3 contains all the 3D math calculations
Chapter 3
added the ray.h file. This is how we send rays to compute what colour is seen from the direction of the rays.
Chapter 4
Adding a red sphere on top of our previous rendering
Chapter 5
Surface normals
second attempt failed (WHAT’S GOING ON?)
It turns out I had hit_sphere as a bool class and not a float class as Peter Shirley Instructed
Successful Attempt
Chapter 6
Adding some anti-aliasing
Chapter 7
Adding Diffuse Material
Chapter 8
Adding Metal Material
Chapter 9
Adding reflective materials that resemble water or glass. This is called Dielectrics.
(Left Sphere has Dielectric material)
Chapter 10
Creating a positionable camera
Chapter 11
Adding focus and defocus blur
Chapter 12
Creating the cover of the Mini Book. Using a random_scene() function, creating many spheres with different materials.
(note the image will take a long while to finish rendering)