For the "Advanced Computer Graphics" module
GitHub-Repository
40MB render
- Install rust and cargo, preferably with rustup
- In the project root, run
cargo build --release
This will download and compile the dependencies for random numbers and png-encoding cargo run --release
to build and/or run the raytracer
Optional:
- The program can also take 1 or 2 arguments to define the image resolution
e.g.:
cargo run --release 1000
orcargo run --release 1920 1080
- build with
--profile=release-with-debug
to preserve debug-symbols
- Spheres and infinite planes
- Phong shading on diffuse materials
- Perfectly reflecting materials
- Shadows from 1 light source
- Randomly created sample scene