Skip to content
/ Luma Public

A simple ray tracer with lots of comments to learn from

Notifications You must be signed in to change notification settings

pixnblox/Luma

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Luma

This is a simple ray tracer which uses Ray Tracing in One Weekend as a starting point. This code has (many) more comments than the code on that site, so I hope you can learn from it as well.

Confession time: I am using this as a way to (finally!) write a ray tracer from scratch. I have modified ray tracers, integrated ray tracers, and used ray tracing frameworks (like DirectX Raytracing), but somehow never wrote a ray tracer from scratch, not even in school.

This is written as a Visual Studio 2019 project. Just open the solution file, and build the Debug or Release configuration. The Release configuration is much faster here.

Currently the code covers up to and including section 8 of Ray Tracing in One Weekend, "Diffuse Materials." It will render the image below (or one close to it, depending on settings).

Sample Image Rendered at 960x540 with 128 samples per pixel in 7.5 seconds on a Core i7-8700 CPU with 12 threads.

About

A simple ray tracer with lots of comments to learn from

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published