2023-02-06 03:52:42 +00:00
|
|
|
# Raycaster
|
|
|
|
|
|
|
|
## Bundle contents
|
|
|
|
|
|
|
|
Writeup is located at `/writeup.pdf`.
|
|
|
|
|
2023-02-16 00:58:10 +00:00
|
|
|
The binary can be found at `/raytracer1b`. Run `./raytracer1b --help` to see
|
2023-02-06 03:52:42 +00:00
|
|
|
how to use it. The binary has been built using the Rust Docker image, which
|
|
|
|
should have an environment similar to CSELabs. If there is trouble running the
|
|
|
|
binary, try building from source, as documented below.
|
|
|
|
|
|
|
|
Examples are found in the `examples` directory. The text files are the input
|
|
|
|
sources, and the ppm files are the corresponding outputs. They have been
|
|
|
|
generated by running this program. For convenience, pngs have also been provided
|
|
|
|
using imagemagick.
|
|
|
|
|
2023-02-16 07:14:22 +00:00
|
|
|
## Showcase image
|
|
|
|
|
|
|
|
The showcase image can be found at `/showcase.png`.
|
|
|
|
|
2023-02-06 03:52:42 +00:00
|
|
|
## Building from source
|
|
|
|
|
|
|
|
The Makefile currently uses Docker to produce a more consistent build. If you
|
|
|
|
have a Rust+Cargo toolchain installed locally, it's also possible to build the
|
|
|
|
source using just:
|
|
|
|
|
|
|
|
cargo build --release
|
|
|
|
|
|
|
|
The binary will be found in `target/release`.
|