https://github.com/printfn/raytracer
Multithreaded cross-platform raytracer in C++
https://github.com/printfn/raytracer
Last synced: 3 months ago
JSON representation
Multithreaded cross-platform raytracer in C++
- Host: GitHub
- URL: https://github.com/printfn/raytracer
- Owner: printfn
- License: gpl-3.0
- Created: 2021-03-26T21:29:02.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-03-10T09:37:20.000Z (over 1 year ago)
- Last Synced: 2025-01-18T07:12:56.888Z (5 months ago)
- Language: C++
- Homepage:
- Size: 3.32 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Raytracer
This code has been tested on Linux and macOS, and with both Clang and GCC.
The following dependencies are *required*:
* CMake (to build the project)
* libpng
* X11 (available on macOS via XQuartz, or `sudo apt install libx11-dev` on Debian)CMake should be able to find libpng and X11 automatically.
Instructions for building:
```bash
mkdir build
cd build
cmake ..
make
./raytracer ../scenes/snowman.txt
```The `raytracer` executable accepts the following command-line options:
```
--no-gui Disable the X11 GUI
-o Change the output filename to
-j Use threads for rendering
```