vkoskiv / c-ray

c-ray is a small, simple path tracer written in C

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Implement a JSON scene parser

vkoskiv opened this issue · comments

C-Ray should parse the scene definition from a JSON file:
./c-ray ./input/scene.json

And when arguments are not provided, read the JSON from stdin
cat input/scene.json | c-ray

This way implementing a separate launcher should be easier.

For the JSON parsing, I was considering the following lib:
https://github.com/kgabis/parson

Implementing this using https://github.com/DaveGamble/cJSON