#ray-tracing #ray-tracer #weekend #described #ui #book

app raytracer-rs

This is Rust implementation of raytracer described in "Ray Tracing in One Weekend"

4 releases

0.1.3 Oct 9, 2022
0.1.2 Oct 9, 2022
0.1.1 Oct 9, 2022
0.1.0 Oct 9, 2022

#943 in Graphics APIs

MIT license

1MB
699 lines

Raytracing in one week

This is Rust implementation of raytracer described in https://raytracing.github.io/books/RayTracingInOneWeekend.html

build status

Used crates:

  • egui & eframe for UI
  • rand for random number generators

Current state of the project

  • Paragraph 8 is fully implemented

Screenshot:

screenshot

Todo:

  • implementation of the materials
  • Move renderer to separate thread
  • Split rendering to multiple cores
  • Optimizations in vector math
  • cleanup in module structure
  • release binaries

How to build

git clone https://github.com/jakudlaty/raytracer.git
cd raytracer
cargo run --release

Literature (free interesting books)

Dependencies

~7–22MB
~323K SLoC