Code Monkey home page Code Monkey logo

rttnw's Introduction

rttnw

Ray Tracing: The Next Week implementation in Rust

How to run

  1. Install Rust: Link here.
  2. Run project
git clone https://github.com/luliic2/rttnw
cd rttnw 
cargo run --release # List all scenes.
cargo run --release -- <scene> # Run a scene.

Images

Cornell_Box Final image

Ray Tracing in One Weekend

Implementation here: https://github.com/luliic2/rtiow

rttnw's People

Contributors

luliic2 avatar johan-mi avatar

Stargazers

Cooper Jax Reiff avatar Adi avatar Aldiyar Y. avatar Ernad Halilović avatar zbv avatar Hoang Phan avatar 爱可可-爱生活 avatar Alexandru Ică avatar Denis Kolodin avatar  avatar Sergey Melnychuk avatar Jerzy Husakowski avatar Fredrik avatar kirill avatar Gregory King avatar Victor Ray avatar  avatar Marc Haemmerle avatar Daniel Eriksson avatar Fabrizio Destro avatar Rasmus Schlünsen avatar Willi Kappler avatar

Watchers

 avatar

Forkers

isgasho

rttnw's Issues

Rust compile error's

error[E0658]: use of unstable library feature 'clamp'
   --> src/main.rs:219:52
    |
219 |                     let col = col.map(|x| x.sqrt().clamp(0.0, 0.999) * 256.);
    |                                                    ^^^^^
    |
    = note: see issue #44095 <https://github.com/rust-lang/rust/issues/44095> for more information

error[E0658]: use of unstable library feature 'clamp'
  --> src/math/texture.rs:80:23
   |
80 |             let u = u.clamp(0., 1.);
   |                       ^^^^^
   |
   = note: see issue #44095 <https://github.com/rust-lang/rust/issues/44095> for more information

error[E0658]: use of unstable library feature 'clamp'
  --> src/math/texture.rs:81:28
   |
81 |             let v = 1. - v.clamp(0., 1.);
   |                            ^^^^^
   |
   = note: see issue #44095 <https://github.com/rust-lang/rust/issues/44095> for more information

error: aborting due to 3 previous errors

For more information about this error, try `rustc --explain E0658`.
error: could not compile `rtiow`

I am using macOS

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.