Raytracing in Excel - Using the GPU! @s0lly
Raytracing in Excel - Using the GPU!  @s0lly
Uploaded June 2022 | Updated September 2026, 3 hours ago
The model, add-in, and shader files can be found here: github.com/s0lly/Raytracer-In-Excel-GPU - please watch the video to follow how to download and use the files correctly

This excel file demonstrates using the GPU through Excel. It does so by using my own "User Defined Function" that is accessible via a DLL (called an XLL) that I coded in C. This DLL interfaces with the GPU (via GLFW / OpenGL) - effectively allowing the user to unlock the power of the GPU from Excel formulae directly.

In other words: I create my own functions - basically my own versions of “SUM” etc - that can do work on the GPU.

The GPU is able to handle vast numbers of calculations per second, and what better place to throw calculations at the GPU than through our Excel Raytracer model?

The Excel Add-In includes a number of functions that demonstrate this usage. This file only demonstrates the "RaytraceImage" function.

The raytracing algorithms used are largely based on that used in the book "The Ray Tracer Challenge" by Jamis Buck. It is an excelllent book that teaches the foundations of Raytracing in a fun and engaging way.

by s0lly
discord.gg/kvappxm
twitter.com/s0lly
https://twitch.tv/s0llygaming
Raytracing in Excel - Using the GPU!AI Steering Behaviours (v8: Toggle Behaviours)Game Engine 14: Atmospheric ScatteringRaytracing - in Excel!!Project Overlay 06: Slideshows & MoreGame Engine 16: Planet-Bound CameraExcel: Endgame (Using the GPU)Animating My Logo with a Particle Simulation: Part IIFirst Games in C++: Dungeons and Flagons (v0.1) - Setting the Stage2D Game Engine in C++: [3] Camera Rotation / Zooming2D N-Body Simulation in C++ (v4)Excel with s0lly: 4. Lifetime Budget - A Simple Model Example
s0lly |

Raytracing in Excel - Using the GPU!

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER