Skip to content

marcopetreri/path-tracer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Path tracer written in C++

A simple rendering engine written in C++ that implements Monte Carlo Path Tracing technique.

Compatibility

Tested on linux ( ubuntu ) and mac osx.

Requirements ( linux )

Before building the project make sure you install OpenGL dev suite.

sudo apt-get install libglu1-mesa-dev freeglut3-dev mesa-common-dev

Building

From the root of the project, type this commands in order to build it.

mkdir build && cd build

cmake ..

make

Usage

From the building folder launch the program with the path of a scene for render it.

./path_tracer ../scenes/SCENE_NAME

The program outputs its render in the building folder as rendering.png

Credits

Special thanks to:

Some sample renders

Cornell Box

Cornell Box

Star Wars Cornell Box

Star Wars Cornell Box

Cook Torrance Roughness

Cook Torrance Roughness

Star Wars R2D2 and BB8 scene

R2D2 and BB8

About

Simple Monte Carlo Path Tracer written in c++

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published