Skip to content

danjavv/RayTracer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Path Tracing

Path tracing to create photorealistic renderings of 3D scenes.

Features

  • Ray tracing with point sources of light
  • Supported shapes: Cuboid, Plane, Sphere and their affine transformations
  • Supported materials:
    • Diffuse objects
    • Metals with specified reflectance
    • Transparent objects with specified refractive index
  • Light transport effects:
    • Soft shadows
    • Recursive reflections and refractions
    • Total internal reflection
    • Indirect illumination
    • Caustics

Demo

Ray traced spheres in a Box Diffuse interreflection at walls Creative scene with mirrors and prisms Transformed shapes

Installation

  1. Install required packages: SDL2, SDL2 Image, OpenGL, GLEW, CMake.
# Ubuntu
sudo apt-get install -y libsdl2-image-dev libglm-dev libglew-dev libopengl-dev cmake
  1. Create build directory in the project root.
mkdir build
  1. Build the project
cd build
cmake ..
make
  1. Run any of the examples: e1, e2, e3, ...

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors