Skip to content

Simple Raytracer in Rust based on Peter Shirley's "Ray Tracing in One Weekend" C++ tutorial

License

Notifications You must be signed in to change notification settings

fildourado/raytracer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Intro

This project is a Rust based Raytracer based on Peter Shirley's "Ray Tracing in One Weekend V1.55", which is centered around C++

This is purely educational and just a way for me to familiarize myself with Rust, wouldn't recommend including this in a product.

Getting Started (Linux)

  • Clone this repo
  • cd raytracer
  • cargo build
  • Run the main app in 1 of 2 ways:
    • cargo run
    • ./target/debug/raytracer <args>

The app provides some command-line options should you want to alter the height/width

pfd@eigen2:~/projects/raytracer/raytracer$ ./target/debug/raytracer --help
Raytracer 0.1.0
Fil Dourado <fildourado91@gmail.com>
Simple Raytracer

USAGE:
    raytracer [FLAGS] [OPTIONS] [SUBCOMMAND]

FLAGS:
        --help       Prints help information
    -V, --version    Prints version information
    -v               Sets the level of verbosity

OPTIONS:
    -c, --config <FILE>      Sets a custom config file
    -h, --height <HEIGHT>    Sets the height for the output window
    -w, --width <WIDTH>      Sets the width for the output window

SUBCOMMANDS:
    help    Prints this message or the help of the given subcommand(s)
    test    controls testing features

What's left?

  • Diffuse Materials
  • Positionable Camera
  • Defocus Blur

Output

Singular Object in Scene

one_ball

About

Simple Raytracer in Rust based on Peter Shirley's "Ray Tracing in One Weekend" C++ tutorial

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages