Skip to content

mps0/pt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A simple pathtracer.

Building:

Linux:

# clone repo
git clone git@github.com:mps0/pt.git

# get minifb module
git submodule update --init

# build folder
mkdir build && cd build

# configure and build
cmake .. && cmake --build .

Running:

# NEE integrator
./pt nee

# Photonmap integrator
./pt photonmap

Some Renders:

First render:

Comparing standard path tracing with photon mapping:

Standard path tracing:

Photonmap:

Care has to be taken with how lights are sampled (directly or indirectly), as well as how photons are shot and how much energy each photon has for the two methods to converge to the same result.

Photonmap Glass:

Gamma Correction:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors