Skip to content

eliot1019/Black-Hole-Raytracer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Black-Hole-Raytracer

Raytracer for a Schwarzschild black hole

Writeup

lava_disk.jpg

Dependencies

Running on Mac

  • Install OpenCV for Mac
  • Install CMake and Xcode Toolchain
  • Create a build folder in the root directory of the Black-Hole-Raytracer cloned repo
  • Run cmake . to generate the make file for the project
  • In src/Program.cpp, replace the input images for DiskImg and SkyImg with absolute paths on your machine (due to OpenCV on Mac bug)
  • Run make and run the blackholeraytracer executable

Running on Windows

  • Install Visual Studio 2017 with Visual Studio C++ Support
  • Install CMake
  • Create a build folder in the root directory of the Black-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 the Visual Studio 15 2017 Win64 option
    • Click Generate and then Open Project
  • Follow instructions here to install and link OpenCV

About

Raytracer for a Schwarzschild black hole

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •