Skip to content

VoidPtr74/RayTracingInOneWeekend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ray Tracing in One Weekend

Overview

Yet another implementation of a simple ray-tracer based on Peter Shirley's "Ray Tracing in One Weekend" written in Rust.

This implementation goes a little further from the first weekend by also using the BVH tree from the next week to improve rendering speed.

Building

This implementation uses intrinsics for SSE instructions. To compile, run the following:

cargo rustc --release -- --C target-cpu=native

Running

For best performance, I recommend building for and running on a cpu that supports FMA AVX instructions. The picture at the top was rendered in about 16 minutes on a laptop running an Intel i9-8950HK CPU @ 2.90GHz (boosting as inconsistently as one might expect). The image was rendered at 3840x2160 with 1024 samples per pixel, running 24 worker threads with a maximum of 20 bounces per ray.

Notes

Much of the implementation for vec3 and enhancements to AABB were translated from GPSnoopy's C++ implementation of the next week

About

Peter Shirley's "Ray Tracing in One Weekend" in Rust

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published