GitXplorerGitXplorer
e

ptrt

public
2 stars
1 forks
0 issues

Commits

List of commits on branch main.
Unverified
76f790c3caa67777e53e10852cb9c46db73d3a23

fixed compiler warning (unused variable)

eerfan-khadem committed 3 years ago
Unverified
0a6682dddfdaa51071aa98050fda7eccd3d7de06

Fixed tile spliting

eerfan-khadem committed 3 years ago
Unverified
37d5e3a8668b653607e7735aa412394b3b1ff776

Fixed usage message and progress report

eerfan-khadem committed 3 years ago
Unverified
bafee88dac47b4d840d6591656525ae8d0aa8f92

Changed running command

eerfan-khadem committed 3 years ago
Unverified
c505521fae3f918ffb66034511ea7732be534180

Added `render_name`

eerfan-khadem committed 3 years ago
Unverified
d872b75b0ffea7625ec7fc01563bf60750853cc7

Added `render_name` property to render

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.