- Parses a scene in Mitsuba XML file format.
- GPU Path Tracer (with global illumination) using CUDA.
- Implements a BVH acceleration structure.
- Support for spheres and triangle meshes.
- Support for diffuse, mirror, plastic, Phong materials (with Fresnel reflection).
- Anti-aliasing, Russian Roulette termination.
- Exports the scene into a png file.
- To compile, use the command:
make
in the home directory. (If the program cannot find CUDA, adjust the CUDA_PATH in the Makefile)
- After compiling, use the command:
./torrey scenes/spheres/scene1.xml
'scenes/spheres/scene1.xml' after ./torrey is just an example. Additional scenes can also be rendered. The xml file can be located in various folders within the ‘scenes’ folder like:
./torrey scenes/cbox/cbox.xml
The resolution and sample size can be adjusted by changing the values of the xml files.
3. The rendered image can be found in the 'output' folder under the name 'img.png'!
- System: Ubuntu 23.04
- CPU: Intel i7-13700k
- GPU: RTX 3080
- Nvidia Driver Version: 535.86.10
- CUDA Version: 12.2
(The bunny has 144046 triangles, the dragon has 871306, and the armadillo has 212574)