Skip to content

sprunq/RaySharp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 

Repository files navigation

RaySharp

Lucy and Dragon

What is this?

A C# raytracer, based on the book Ray Tracing in One Weekend by Peter Shirley, with additional live preview in OpenTK, Wavefront OBJ model loading and a denoiser.

Why C#?

I mainly used this project to learn C# for an upcoming internship. You should choose C/C++ if you care more about performance.

Adding the Denoiser

Download the compiled binaries or compile this Project (DeclanRussell/NvidiaAIDenoiser) yourself and add it as a path in the Raytracer constructor. This Denoiser only works well in some cases and makes the image pretty blurry.

Without Denoiser With Denoiser

Rendering

Rendering can be done either in random order or in spiral chunks.

Sources

- Basic Raytracer Structure Ray Tracing in One Weekend

- Additional Info Scratchapixel Raytracing