hokiecsgrad / RayTracer

0 stars 0 forks source link

Add a .yml parser #2

Closed hokiecsgrad closed 3 years ago

hokiecsgrad commented 5 years ago

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

hokiecsgrad commented 5 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.

hokiecsgrad commented 5 years ago

I have created a branch called "yaml" to work on this. Doubt I'll come back to this for a while.

hokiecsgrad commented 3 years ago

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.