Inspiration

I've been told, and believe, that one of the best ways to learn a new language is to write a raytracer in it. It forces you to learn program organization, file and string IO, image handling, and a lot more. So I decided that this would be a good opportunity to learn Rust, a language I constantly hear things about.

What it does

It generates a still image by generating rays and shooting them at predefined objects. It supports triangles (the foundation of all computer graphics) and spheres, with different colors and different materials with various reflective properties. It runs on the command line, allowing the user to provide .ray files that determine what shapes it will render and giving options for resolution and reflection depth.

How we built it

It was built feature by feature over the course of the first 12 hours

Challenges I ran into

I mainly ran into the normal issues of working with a new and more restrictive language, as well as a couple of math problems

Built With

Share this project:

Updates