Skip to content

StanleyNeoh/raytracer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Raytracer

About

This project is from Ray Tracing in One Weekend by Peter Shirley, Trevor David Black, Steve Hollasch.

Setup

To use and render some scenes

  1. clone the project to your machine

  2. run make

  3. You will be prompted on which scene you want to render

    on_make

  4. Input the corresponding option.

  5. And your image is created in .ppm fomat as image.ppm

Future plans

  • Hardware acceleration
  • Dynamic scenes
  • Interactivity
  • Emitters
  • Lasers
  • Volumetric smoke
  • Diffraction

Sample images

Simple scene

10 samples per pixel

simple_10

100 samples per pixel

simple_100

100 samples per pixel with defocus blur

simple_100

Textbook scene

10 samples per pixel

textbook_small

The image is of quite low resolution as it takes too long to run. To be updated with higher resolution version once hardware acceleration is implemented

About

A bottom up implementation of a simple raytracer

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors