Skip to content

lambdacore66/Relativistic_Raytracer_Cpp

Repository files navigation

Relativistic Raytracer in C/C++ compatible with ffmpeg for video output.

Compile code with:

               g++ main.cpp -O3 -o main -static-libstdc++ -fopenmp
  • Do not use -O3 if you want no compilator optimizations.
  • Do not use -fopenmp if you want no multithread support.

To obtain video ouput, install ffmpeg and add it to the OS´ Path or locate the ffmpeg executable in the same folder as the compiled executable.

Tested and working on Windows and Ubuntu based distros.

Examples

Two cubes and a sphere moving at 0.95c as seen by two different cameras. Relativistic effects such as Terrel Rotation are present.

A perpendicular plane coming at 0.9c before and after crossing the camera view.

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published