Skip to content

saigono/raytrace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Rust raytracer

Based on wonderful series of books "Ray Tracing in One Weekend" by Peter Shirley et al. I wrote it a while ago, using old version of everything, both book and Rust itself. Also, I'm not any good in Rust, so don't consider my code to be an exemplar of best practices. With that being said, you can launch this program like this

cargo run PATH_TO_SCENE PATH_TO_OUTPUT

# e.g. cargo run scenes/basic.json out.png

Basic scenes and objects could be found in 'scenes' folder. I honestly don't remember where did I get the format for the scene, but it's pretty straightforward. Obj files support is quite limited, but let's hope it'll get fixed in the future.

Noisy sample output:

scene/basic.json

scene/basic.json

scene/teapot.json

scene/teapot.json

About

Rust implementation of Peter Shirley's basic raytracer with a few additions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages