GitXplorerGitXplorer
e

ptrt

public
2 stars
1 forks
0 issues

Commits

List of commits on branch main.
Unverified
c899bf1be61ac686e42edbda147a9400c96d7260

Remove unused `default_input_name`

eerfan-khadem committed 3 years ago
Unverified
c897102ba942c857ff543946c200f4ca0a2d4c08

Started implementing worker for using in clusters

eerfan-khadem committed 3 years ago
Unverified
c80d65700c6b01b2cce9cfcad9313329afddc355

Improved tiling

eerfan-khadem committed 3 years ago
Unverified
e9b03d6b92ac603548eac6785c5f238ad2daa6f3

Added tiling support

eerfan-khadem committed 3 years ago
Unverified
079e76eddcb8626a4bbfaa3479f99944ab83c183

Added tiling support

eerfan-khadem committed 3 years ago
Unverified
1d65bd2b263ec46af197300af13e4c8520ba9673

Added a better way of seeding

eerfan-khadem committed 3 years ago

README

The README file for this repository.

ptrt

A simple path-tracing ray-tracer

Building

You will need meson + ninja:

pip3 install --upgrade meson
pip3 install --upgrade ninja

You will also need OpenMP + Nlohmann-JSON:

# Debian based distros:
sudo apt install libomp-dev nlohmann-json-dev
# Arch based distros:
sudo pacman -Sy openmp nlohmann-json
# Fedora based distros:
sudo dnf install libomp-devel json-devel

To build use the following commands:

cd ptrt # root of the project
meson builddir
cd builddir
ninja

To run the compiled program:

./ptrt standalone /path/to/scene.json

Sample output

sample output hallow glass sample output spheres

Credits

Almost all calculation related code comes from these amazing books from Peter Shirley but I have added a few optimizations and parallelization to make it run faster.