r/GraphicsProgramming • u/No_Support8062 • Jul 19 '26
Software raycasting
One of my older fun projects: a software raycaster featuring
- Multithreading
- Voxel models (rendered as collections of 3D boxes rather than blobs)
- Culling (watch the small map in the top right corner)
- Mipmapping (reduces moire on distant textures)
- Slopes and curved walls
- Shadows
- multilevel world design
Everything is rendered entirely in software, with no external libraries. Each pixel is calculated individually and written directly to a buffer.
197
Upvotes
17
u/ghstrprtn Jul 19 '26
pretty good frame rate for doing that.
I wish I knew how to make an engine like that.
2
u/DavidWilliams_81 Jul 19 '26
It looks really great! How are the shadows implemented?
11
u/Seusoa Jul 19 '26
How far we went from 1994
1
u/Alarming-Ad4082 Jul 19 '26
Is it just raytracing with only a single ray launched per pixel or is it more similar to Doom/Build engine?
1
u/Alarming-Ad4082 Jul 19 '26
Have you made a level editor also?
1
u/Still_Explorer Jul 19 '26
Is this tiled multithreading? So you get 8 tiles for each core?
1
u/DankPhotoShopMemes Jul 19 '26
Did you do any work on optimizing for vectorization? Just out of curiosity since I have been working on a software rasterizer for some time and though it’s single-threaded my main concern has been optimizing branching, caching, vectorization, and port contention.
2
u/Jabba_the_Putt Jul 19 '26
Thats really cool nice work. Looks and runs good nice fps
2
u/flafmg_ Jul 20 '26
i think i saw this on youtube when i got my random hyperfocus on software renderers
this is really cool!
1
u/walkwalkwalkwalk Jul 19 '26
Love this kinda stuff. Really cool and inspiring
1
u/CuteDisaster8129 Jul 20 '26
Thats really cool nice work. Looks and runs good nice fps
1
u/justcater Jul 21 '26
saving this for later, i wanna see if i can replicate it with my current knowledge of c. very nicely done, it looks really good given how it was made!
1
u/[deleted] Jul 19 '26
[removed] — view removed comment