Ray tracing

In dev. Obviously.

Example of rendered spheres and a pyramid using ray-tracing

References

TODO

How it works

  • Start by placing objects in a 3d world.
  • Consider looking at the world through a camera (~ 1 point at the center looking through a screen that has width x height pixels.)
  • For each pixel, looking from the center towards that pixel and see if it encounters an object.
  • If it encounters an object calculate the color, else give the "default background color" to that pixel.

How the colour is calculated

Requirements

  • C++ 11