Skip to content

Implementation in Rust of the ray tracer presented in "The Ray Tracing Challenge" book by Jamis Buck

License

Notifications You must be signed in to change notification settings

lapiks/the-ray-tracer-challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Ray Tracer Challenge

Implementation in Rust of the ray tracer presented in "The Ray Tracing Challenge" book by Jamis Buck.

Here is the book's cover image, rendered with the ray tracer. Alt text

Progression

  • colors representation
  • canvas
  • linear algebra (through the glam crate)
  • ray-sphere intersections
  • phong shading
  • world description
  • camera
  • shadows
  • planes
  • patterns
  • reflections
  • refractions
  • cubes
  • cylinders
  • cones
  • object groups
  • bounding boxes
  • Bounding Volume Hierarchies (BVH)
  • triangles
  • obj importing
  • smooth triangles
  • constructive solid geometry
  • yaml scene descriptions importing
  • antialiasing (supersampling method)
  • area lights
  • focal blur
  • motion blur
  • texture mapping
  • CPU parallel rendering

Examples

Shadows

Alt text

Patterns

Alt text

Reflections

Alt text

Refractions

Alt text

Triangular meshes

Alt text

From the book

Alt text

Alt text

About

Implementation in Rust of the ray tracer presented in "The Ray Tracing Challenge" book by Jamis Buck

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages