Skip to content

KarthikRIyer/RayTracer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RayTracer

This is a simple ray tracer based on Peter Shirley's RayTracing in One Weekend series and the book PBRT.

Features currently implemented

  • Analytical Sphere, Rectangle and Triangle Geometry
  • Mesh loading using assimp
  • Simple BVH
  • Gradient and Black Sky
  • Lambertial, Metal, Dielectric and Emission materials
  • Random and Stratified sampling
  • Importance sampling materials
  • Solid, Checker and Image Textures
  • Multithreaded Rendering
  • Integrated Intel's OpenImageDenoise

Building

The builds have been tested on Windows with MSVC 14.2 and on Ubuntu 18.04LTS GNU C++ Compiler.

Windows

To build install CMake create a build directory in the root directory of the project. From the build directory execute the following command in cmd:

cmake -DCMAKE_BUILD_TYPE=Release ..

You should now get a file RayTracer.soln in the build directory. Open the file and build.

To test the project, from the root directory of the project run:

Release/RayTracer.exe

or

Release/viewer.exe

Linux

You can use CMake to build on Linux.

mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make

To run (from root directory of project):

./Release/RayTracer

or

./Release/viewer

Dependencies

Example Images

Releases

No releases published

Packages

No packages published