Git Product home page Git Product logo

rt-one-week-rust's Introduction

Rust implementation of 'Ray tracer in one week(end)' series

To render build with

RUSTFLAGS=-C target-cpu=native cargo build --release

and then ./do-render.sh release . The rendered image will be in renders/ subdirectory.

If you have mogrify installed it will be converted to PNG, otherwise left as PPM.

Examples

Ray tracing the next week final scene 1024x1024, 10k samples per pixel, up to 8 bounces per ray, unbiased

Biased vs Unbiased

Cornel box with caustics 800x800, 10k samples per pixel, up to 16 bounces per ray, biased towards light, boxes and ball

Cornel box with caustics 800x800, 10k samples per pixel, up to 16 bounces per ray, unbiased

For the same number of samples biased renderer gives harder light and less noise, which is redistributed into caustics brightness, making image darker overall, at the same time it is slower, so generating image with same level of noise with the biased renderer is not very much faster than unbiased one, but caustics quality and light softness changes as well, making selection between biased and unbiased renderer more of an artistic choice.

rt-one-week-rust's People

Contributors

pavlus avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

rt-one-week-rust's Issues

Update Readme

  • Update examples
  • Add build and usage info
  • Add helper scripts usage info

Implement wrapper with property interpolation

Current approach with MovingSphere is a no-go, it scales badly, need wrapper for properties (location, rotation, scale, maybe texture?), that receives object and interpolation function.

Add benchmarks

To simplify optimization -- add benchmarks after refactoring.

  • vec ops: check fused_multiply
  • check difference between V3 struct and [f64;3] array
    ... to be continued

Add triangle support

With triangle support it would be possible to load scenes from 3D models ๐Ÿต

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.