No description
| .cargo | ||
| octree | ||
| src | ||
| .gitignore | ||
| .rust-analyzer.toml | ||
| Cargo.lock | ||
| Cargo.toml | ||
| optimized_0.log | ||
| optimized_2.log | ||
| optimized_octree_1.log | ||
| readme.md | ||
| unoptimized_0.log | ||
| unoptimized_1.log | ||
| unoptimized_2.log | ||
rt — CPU Raytracer in Rust
A multithreaded CPU path tracer written in Rust with a real-time windowed preview.
Rendered at commit 47cb9c4
Features
- Real-time preview via
speedy2d— renders progressively into a live window - Multithreaded rendering with
rayon— saturates all available CPU cores - Sphere primitives with analytic ray-sphere intersection
- Three material types — Lambertian (diffuse), Metal (mirror/glossy), Dielectric (glass with refraction)
- Global illumination — recursive path tracing with Monte Carlo sampling
Build & Run
git clone https://github.com/MajidAbdelilah/rt
cd rt
cargo run --release
A window will open and the scene will render progressively in real time.
If master doesn't build, check out the stable commit:
git checkout 47cb9c4
Roadmap
- Octree
- Depth of field (thin-lens camera)
- Triangle mesh support
- BVH acceleration structure
- Scene file loading (JSON/TOML)
- Progressive accumulation / denoising