Skip to content

Naitsirc98/Tiny-Ray-Tracer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 

Repository files navigation

Tiny-Ray-Tracer

A simple Ray Tracer written in C

Output Image 1920x1080 RGB, 64 samples

This is a C port of Ray Tracing in One Weekend by Peter Shirley. The original code is available here.

This CPU-only Ray Tracer is totally written in C, with an (almost) Object Oriented design.

What it does is to render a semi-random generated scene to an image (called output_image.png). The result image is antialiased and gamma corrected.

The scene is made up with lots of random placed spheres, each of them with one of these different materials:

  • Lamberdian (Diffuse)
  • Metal
  • Dielectric (Glass)

The above scene was rendered to a 1920x1080 RGB image, with 64 samples per pixel and gamma correction of 2.2, after approximately 25 minutes, which is a pretty decent rendering time for the CPU.

About

A simple Ray Tracer written in C

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages