You need the following tools installed on your system:
The project relies on these libraries (handled via Vcpkg):
glewglfw3glmgit clone https://github.com/kavan010/black_hole.git
cd black_hole
vcpkg install
vcpkg integrate install
Copy the cmake toolchain path output by this command (e.g., -DCMAKE_TOOLCHAIN_FILE=...).
mkdir build
cd build
cmake .. -DCMAKE_TOOLCHAIN_FILE=[YOUR_VCPKG_PATH]/scripts/buildsystems/vcpkg.cmake
cmake --build .
If you prefer not to use Vcpkg on Linux, you can install the dev packages directly:
sudo apt update
sudo apt install build-essential cmake libglew-dev libglfw3-dev libglm-dev libgl1-mesa-dev
mkdir build
cd build
cmake ..
cmake --build .
After a successful build, you will find the executables in the build/Debug (Windows) or build/ (Linux) directory:
black_hole: The main 3D GPU simulation.2D_lensing: The 2D CPU-based ray visualization.