r/GraphicsProgramming • • Oct 16 '21

Raytracing in Excel Using the GPU

450 Upvotes

19 comments sorted by

32

u/s0lly Oct 16 '21

This is using the GPU to do over a billions of
calculations multiple times a second, from inside Excel using my own
hand-made Excel functions, via an XLL using the Excel C API.

The raytracing itself is largely done via a compute shader using OpenGL.

For anyone interested, I made a meme-y video on using the GPU in Excel, here: https://youtu.be/o3hu7X_B8H0

4

u/A_Chungus Oct 17 '21

video unavailable

3

u/vanderZwan Oct 17 '21 edited Oct 17 '21

For some reasen the underscore in the url has a backslash in front of it, that's probably what breaks it. I see this more often these days and it makes no damn sense to me: in what kind of environment does an underscore need a escape character?

Edit: https://youtu.be/o3hu7X_B8H0 there, fixed it

2

u/s0lly Oct 17 '21

That’s weird. Original link works for me......

2

u/vanderZwan Oct 17 '21

Out of curiosity, which reddit client do you use?

1

u/kiradotee Jul 20 '22

For me it's broken in rif

1

u/miraculum_one Jul 20 '22

They all work for me. Reddit through a browser.

61

u/AngryTreeFrog Oct 16 '21

Lol we were too busy being concerned with if we could we never stopped to think if we should. Lol I love this.

19

u/s0lly Oct 16 '21

Problem is, I did stop to think if I should, and still did it......

5

u/AngryTreeFrog Oct 16 '21

I don't think this is a problem I think this is just called progress 🤣

12

u/agree_culture Oct 16 '21

8

u/s0lly Oct 16 '21

pff I made a full rasterizer in Excel too, happy to have a spreadsheet-off.

2

u/masaldana2 Oct 17 '21

why.

1

u/s0lly Oct 17 '21

T’was a dare

1

u/Trantorianus Oct 17 '21

Only one question : Why? ;-)

1

u/s0lly Oct 17 '21

A dare it t’was

1

u/theMelonator_ Jan 14 '23

I can hear the coil whine

0

u/[deleted] Oct 16 '21

[deleted]

3

u/s0lly Oct 16 '21

Thanks! "This good" in computer graphics - tbh the techniques here only require the knowledge of what's in "Raytracing in One Weekend" or "The Ray Tracer Challenge" books. Implementing in Excel is actually not much harder than in C. In terms of Excel knowledge, well... I've been using it every day 9-5 for years, so can't really say.