Path Tracing (WIP)
A path tracing renderer in Python accelerated by OpenMP & CUDA.
| 100,000 spp (1.5 min) | 50,000 spp (21 min) |
Getting Started
First of all, clone the repo recursively to your local environment.
git clone --recursive https://github.com/li-plus/path-tracing.git && cd path-tracing
If you miss the --recursive argument, you could still fetch the submodules in this way.
git clone https://github.com/li-plus/path-tracing.git && cd path-tracing
git submodule update --init
Python API
Install the python package from source.
sudo apt install gcc g++ cmake libeigen3-dev python3-dev python3-pip
pip install .
Run the Python example.
cd examples/python
python3 main.py --device cuda --num-samples 1000 --save-path scene.png --scene cornell_box
C++ API
C++ API is not yet stable. Please consider using Python API instead for the time being.
Install dependencies needed to build the C++ example.
sudo apt install gcc g++ cmake libeigen3-dev libopencv-dev libgflags-dev
Build the path tracing library and the C++ example.
mkdir -p build && cd build
cmake .. && make -j
Run the C++ example.
./bin/pt -device cuda -num_samples 1000 -save_path scene.png -scene cornell_box
Docker
For those who do not have root privilege, we offer an alternative to build & run path tracing within a docker container. For GPU support, nvidia-docker should be further installed.
Build a docker image with everything installed for development.
docker build ./docker -t pt:latest
Start a docker container, with project directory mapped to /opt/path-tracing.
docker run -it --rm --runtime nvidia -v $PWD:/opt/path-tracing -w /opt/path-tracing pt:latest bash
References
Metadata
Release files for path-tracing 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| path-tracing-0.0.1.tar.gz | 1.7 MB | Without provenance | Details for path-tracing-0.0.1.tar.gz |
Release files / path-tracing-0.0.1.tar.gz
| Download URL | path-tracing-0.0.1.tar.gz |
|---|---|
| Size | 1.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6770dddb8d764933aa5459ecb2ba10bc37fb7a9e1964756f321b78739ae32de6
|
|
BLAKE2b-256 checksum How to use checksums |
b33c42ae39b1f12e83ea0452ab89b37e6a23412ed14581b44d71e12397612200
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.5
|
Security for path-tracing 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.