Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

CodeSignal

Foundations of Ray Tracing in C++

via CodeSignal

Overview

Learn the basics of ray tracing in C++ by building a simple renderer, from writing pixels to casting rays with a virtual camera.

Syllabus

  • Unit 1: Getting Started with Ray Tracing
    • Your First Raytracer Program
  • Unit 2: Writing Your First Image
    • Change the Color to Blue
    • Change the Image Shape
    • Horizontal Split with Two Colors
    • Vertical Stripes with Pixel Logic
  • Unit 3: Vectors and the vec3 Class
    • Exploring Vector Components in Practice
    • Adding Vectors in 3D Space
    • Scaling Vectors with Different Values
    • Dot Product and Vector Relationships
    • Finding a Perpendicular Vector
    • Making Every Vector a Unit Vector
    • Comparing Vector Lengths Efficiently
    • Parallelogram Geometry with Vectors
  • Unit 4: Creating Color Gradients
    • Creating a Color Type Alias
    • Creating Color Gradients with Vector Math
    • Reversing Gradients in Image Generation
    • Creating a Diagonal Color Gradient
  • Unit 5: Rays and Simple Camera
    • Fix the Ray Bug
    • Customizing Ray Tracer Background Gradient Colors
    • Experimenting with Virtual Camera Parameters
    • Creating a Radial Gradient Background
    • Creating a Checker Pattern Background

Reviews

Start your review of Foundations of Ray Tracing in C++

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.