Skip to main content
grasp.study
About
Explore
Pricing
Log in
Try it for free
Back to course
👋
Welcome to a Grasp lesson
Create a free account
to keep studying and create your own study path.
Build a C++ ray tracer
·
Module 5
Scene Abstractions and Multiple Objects
1
Abstracting Hits with a Hittable Interface
Design an abstract 'hittable' interface with a virtual 'hit' method for intersectable objects.
2
Creating the Hit Record
Implement a 'hit_record' structure to store intersection data like the point, normal, and 't' value.
3
Building a Hittable List
Create a 'hittable_list' class that manages a collection of 'hittable' objects.
4
Ray Tracing: Finding the Closest Intersection
Trace rays against all objects in the scene and identify the closest intersection.
Previous module
Positionable Camera and Scene View
Next module
Antialiasing and Depth of Field