Skip to content

ledyba/tiny-ray.rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 -- \
  --width 1024 \
  --height 1024 \
  --num-rays 8192 \
  --num-reflections 256 \
  --animation \
  --output "anim" \
  cornell-box

References

Ray Tracing (Path Tracing)

Volume

Cornel Box

Quaternion

Releases

No releases published

Packages

No packages published

Languages