lleoha / trace-rs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TRACE-RS

This is yet another ray tracer (with global illumination). It renders following image in ~15 minutes in the current state of the project with 10k samples/pixel:

cornell box

And following images in ~5m with 10k samples:

showcase

dof

Rationale

This project is not complete nor correct by any means. It was created for the following purposes:

  • learn some Rust,
  • it was always one of my "bucket list" project - something I always wanted to do,

Planned features

  • global illumination
  • multi-threaded rendering
  • importance sampling
  • antialiasing
  • refraction
  • depth of field
  • russian roulette
  • textures
  • serialize and deserialize scene (.obj loader)
  • spectra rendering (instead of RGB)
  • light dispersion (stretch)

Known bugs

  • occasionally NaN values are return from trace method

Non-goals

  • be fast
  • be efficient
  • model diffraction

References

About


Languages

Language:Rust 100.0%