Get the latest tech news

Ray tracer in a boot sector


Ray Tracer in 484 bytes (x86 boot sector). Contribute to nanochess/RayTracer development by creating an account on GitHub.

I asked Williamson for permission to make a port to a boot sector, and here it is. The code isn't exactly the same because I changed some constants to adapt it, and also collapsed some to save bytes. One of the biggest surprises is how so fast are modern computers so technically the animation is real-time in my Macbook Air running the ray tracer in Windows XP under VirtualBox.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of boot sector

boot sector

Photo of ray tracer

ray tracer