Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 619 Bytes

README.md

File metadata and controls

22 lines (16 loc) · 619 Bytes

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