Skip to content

sbobyn/realtime-software-raytracing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Realtime Software Raytracing

This is a simple realtime ray tracer following Peter Shirley's Ray Tracing in One Weekend series. The implementation is purely written in TypeScript and the rendering is purely written on the CPU (i.e. no graphics APIs). As such, it is extremely inefficient and low resolution, but it can still run in real time!

A live demo is available here

Demo gif

Sample Renders

Sample Renders

Features

  • pretty closely follows the first 2 books of the Ray Tracing in One Weekend series

    • sphere, quad ray tracing
    • textures
    • lighting
    • BVH
    • more
  • additions

    • realtime rendering via the HTML canvas API
    • progressive rendering window when camera is stationary

To do

  • In One Weekend Book 3
  • high resolution offline render. Could do it w/o blocking UI on a background thread but need some restructuring
  • GPU-based version with WebGL

About

A realtime implementation of Ray Tracing in One Weekend in pure TypeScript, no graphics APIs used

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

No contributors