3D Ray Tracer
3D Ray Tracer renders a scene represented in json format and saves in bmp data format.
Getting started
-
Compile code in your favourite c compiler.
-
Create your own scene json representation by example in directory. Supports rendering of spheres and planes.
-
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