Closed hokiecsgrad closed 3 years ago
This is quickly turning into a major task. I'm not yet sure if this is because YAML parsers for C# suck, or if YAML parsing is a more complex topic than I'd originally thought. The YAML files that I'm using don't seem to be standard, but I'm also not sure what a standard file looks like. Lots to learn about parsing YAML.
I have created a branch called "yaml" to work on this. Doubt I'll come back to this for a while.
Yeah, finally got back to this and now it's done. Though I can't use the yaml files straight from the book's author because they're poorly formed.
The book presents most scenes as .yml files. Add the ability for the RayTracer.Program system to take a .yml file as input from the command line and setup the scene appropriately.
This library may be a good place to start: https://github.com/aaubry/YamlDotNet