This is my first raytracer.
Only capable of rendering Spheres and Planes.
I assume that you already have installed a decent version of CMake and Git on your computer.
You need to install the following dependencies:
You can either follow the official tutorials, or abruptly copy/paste the following into your terminal:
git clone https://github.com/google/benchmark.git
git clone https://github.com/google/googletest.git benchmark/googletest
cd benchmark
mkdir build && cd build
cmake ../ -DBENCHMARK_DOWNLOAD_DEPENDENCIES=ON
make -j 8
sudo make install
mkdir build && cd build
cmake ../ -DCMAKE_BUILD_TYPE=Release
make -j 8
- Run the benchmark:
./build/bench/bench
- Run the project:
./build/src/raytracer
- the maths behind the camera's virtual screen are broken
There's nothing crazy here, just my first steps to the 3D world.