Raytracer for a Schwarzschild black hole
- Install OpenCV for Mac
- Install CMake and Xcode Toolchain
- Create a
build
folder in the root directory of theBlack-Hole-Raytracer
cloned repo - Run
cmake .
to generate the make file for the project - In src/Program.cpp, replace the input images for
DiskImg
andSkyImg
with absolute paths on your machine (due to OpenCV on Mac bug) - Run
make
and run the blackholeraytracer executable
- Install Visual Studio 2017 with Visual Studio C++ Support
- Install CMake
- Create a
build
folder in the root directory of theBlack-Hole-Raytracer
cloned repo - Use CMake to compile, generate, and open this project
- Point the source code to the project repo path
- Set the binary build location to the
build
folder - Click
Configure
and choose theVisual Studio 15 2017 Win64
option - Click
Generate
and thenOpen Project
- Follow instructions here to install and link OpenCV