Skip to content

cepsdev/RayTracerChallenge

Repository files navigation

RayTracerChallenge

Test driven implementation of a basic ray tracer as described in the book 'The Ray Tracer Challenge - A Test-Driven Guide to Your First 3D Renderer' by Jamis Buck.

Goals

  • Exemplify the usage of ceps in connection with modern C++.
  • Fun.

Status

  • chapter 1: ✔️
  • chapter 2: ✔️
  • chapter 3: ✔️
  • chapter 4: ✔️
  • chapter 5: ✔️
  • chapter 6: ✔️
  • chapter 7: ✔️
  • chapter 8: ✔️
  • chapter 9: pending
  • chapter 10: pending
  • chapter 11: pending
  • chapter 12: pending
  • chapter 13: pending
  • chapter 14: pending
  • chapter 15: pending
  • chapter 16: pending
  • chapter 17: pending

Installation

Requirements

Build

  • ./rebuild.sh

Run the Gherkin Tests

  • ./run-test features/NAME_OF_FEATURE_TEST

Some Pictures

Chapter 6

phomng

Chapter 7 - Putting it Together

ball_scene

Chapter 8 - Shadows

ball_scene

Remark: Change, albeit correct, makes two feature tests fail:

scenario{ 📎 Shading an intersection verdict{ ❗ Failed }
}
scenario{ 📎 Shading an intersection from the inside verdict{ ❗ Failed }
}