Skip to content

Latest commit

 

History

History
68 lines (52 loc) · 2.78 KB

README.md

File metadata and controls

68 lines (52 loc) · 2.78 KB

Tiny ray-tracing engine

Lighted Spheres

Cornell Box

Many Spheres

Kaleidoscope

thumb.mp4

How to run

cargo run --release -- spheres
cargo run --release -- many-spheres
cargo run --release -- many-boxes
cargo run --release -- lighted-spheres
cargo run --release -- cornell-box
# with full options
cargo run --release -- \
  --width 1600 \
  --height 1600 \
  --num-rays 8192 \
  --num-reflections 256 \
  --output "cornell-box.png" \
  cornell-box
# Make an animation (anim/1.png, anim/2.png, ...)
cargo run --release -- \
  --animation \
  --width 1024 \
  --height 1024 \
  --num-rays 8192 \
  --num-reflections 256 \
  --output "anim" \
  cornell-box

References

Ray Tracing (Path Tracing)

Volume

Cornel Box

Quaternion