Skip to content

JP01/RTOneWeekend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ray Tracing in One Weekend

Learning to implement a ray tracer by following along with Ray Tracing in One Weekend

I won't be doing this in one weekend but over a couple of weeks/months when I get time.

Examples

I started taking screen shot examples as I went once I got about half way through. I started tracking render times in Debug builds when I added the camera in #3.

1. Creating a metallic material

2. Creating a dielectric material - eg: a glass ball

3. Added positionable camera with controllable FOV

Render Time: ~9.8s with no optimizations

4. Added defocus blur with controllable aperture size

Render Time: ~12.2s with no optimizations

5. Rendered the final image from the book

Render Time: ~415.3s (6m 55s) with no optimizations

Optimization

The final image render was pretty slow for such low resolution. Maybe we can speed it up!

Standard MSVC Release optimization

Visual Studio can create a 'release' build which provides some standard optimizations. This brought the final image render time to around ~50s.

Other optimizations

There are other optimizations we can do. I'll update as I work my way through.

About

Writing a ray tracer in a weekend

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors