JamesLee-Jones / ray-tracer

A ray tracer written in C++.
MIT License
1 stars 0 forks source link

Add input file parsing #14

Open JamesLee-Jones opened 1 year ago

JamesLee-Jones commented 1 year ago

Currently, all attributes of a scene (Objects, Lights, camera, etc.) are defined in the main function in main.cpp. It would be better if this acted as an entry point to the ray tracer, and took in a file representing the scene along with any command line arguments for the ray tracer, and then parsed this into a scene.

JamesLee-Jones commented 1 year ago

One possibility for this is to read .obj files directly or specify a unique file format, and write a translator from .obj to this file formal.