/3D-Ray-Tracer

Non-real time 3D ray tracer

Primary LanguageC

3D Ray Tracer

3D Ray Tracer renders a scene represented in json format and saves in bmp data format.

Getting started

  1. Compile code in your favourite c compiler.

  2. Create your own scene json representation by example in directory. Supports rendering of spheres and planes.

  3. Run compiled c code with following parameters:

  • scene json file name
  • file name for saving traced scene in bmp data format
  • width of traced image
  • height of traced image
  • num bounces
  • num samples ray per pixel (root must be an integer)
    ./main scene.json traced.bmp 1000 1000 10 4

traced.bmp