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 2
Rays, Pixels, and Image Output
1
Defining Rays: Origin and Direction
Define a ray mathematically as an origin point and a direction vector.
2
C++ Ray Class: Path Computation
Implement a C++ class for a ray with a method to compute points along its path.
3
PPM Image Structure
Describe the structure of the PPM image format for simple image writing.
4
Gradient Image Generation in PPM
Write a program that outputs a gradient image in PPM format by mapping pixel coordinates to colors.
Previous module
C++ Foundations for Ray Tracing
Next module
Basic Object Intersection