r/GraphicsProgramming • • Aug 04 '26

Hobby path tracer (GPU-based)

Thumbnail
gallery
286 Upvotes

Started a CPU ray tracer about 7 years ago and then a year later decided to play around with a GPU version of it. Over the years I’ve added to it.

Full disclosure that I had LLM assistance with some of the recent features added, in the interest of saving time, I normally only have a few hours of free time per week.

Repository: https://github.com/nfoste82/gpuraytracing


r/GraphicsProgramming • • Jun 02 '26

Recovering Eric Graham's 1987 Amiga Juggler raytracer source code (now on GitHub)

Post image
285 Upvotes

I recently got Eric Graham's explicit permission to put the code on GitHub for posterity, as the only copy I could find online (archive.org 7-zipped ADF) wasn't very accessible to most people.

https://alphapixeldev.com/recovering-eric-grahams-1987-amiga-juggler-raytracer-source-code/


r/GraphicsProgramming • • Sep 20 '25

Video Stress Testing ReSTIR + Denoiser

285 Upvotes

I updated the temporal reuse and denoiser accumulation of my renderer to be more robust at screen edges and moving objects.

Also, to test the renderer in a more taxing scene, this is Intel’s Sponza scene, with all texture maps removed since my renderer doesn’t support them yet

Combined with the spinning monk model, this scene contains a total of over 35 million triangles. The framerate barely scratches 144 fps. I hope to optimize the light tree in the future to reduce its performance impact, which is noticeable even tho this scene only contains 9k emissive triangles.


r/GraphicsProgramming • • Oct 09 '24 Take My Silver

Hardware accelerated meshlet rendering in my DirectX12 engine

Post image
285 Upvotes

r/GraphicsProgramming • • Feb 02 '25

Video Field of time clocks blinking at the same* time

284 Upvotes

More information in my comment.


r/GraphicsProgramming • • Feb 02 '26

Some animations of the Schrödinger equation

Thumbnail gallery
283 Upvotes

r/GraphicsProgramming • • Jun 05 '25

Freya Holmer on Quaternions (and rotations in general)

Thumbnail
youtu.be
283 Upvotes

r/GraphicsProgramming • • Jan 05 '23

They took us for absolute fools!

Post image
282 Upvotes

r/GraphicsProgramming • • Dec 26 '24

Video 🎨 Painterly effect caused by low-precision floating point value range in my TypeGPU Path-tracer

280 Upvotes

r/GraphicsProgramming • • Feb 17 '15

Minecraft with a self-made GLSL shader!(8K and 4K)

Thumbnail
imgur.com
280 Upvotes

r/GraphicsProgramming • • Oct 01 '25

Window Mode on Splats (demo linked in comments!)

276 Upvotes

r/GraphicsProgramming • • Mar 23 '25

Realtime Physics in my SDF Game Engine

276 Upvotes

A video discussing how I implemented this can be found here: https://youtu.be/XKavzP3mwKI


r/GraphicsProgramming • • Nov 21 '25

I made an anime character renderer with WebGPU and wrote a tutorial about it

275 Upvotes

Built an MMD anime char renderer with GPU skinning, physics, and some post-processing effects. Also wrote up what I learned going from "hello triangle" to actually rendering a character.

Demo

Tutorial

Source

The tutorial focuses on understanding the pipeline (buffers, bind groups, pipelines) rather than shader code and math. My background is real-time systems, not graphics, so this was all new to me.

Hope this helps other beginners and maybe gives you something concrete to build after finishing the triangle examples.


r/GraphicsProgramming • • Oct 08 '24

Question Updates to my moebius-style edge detector! It's now able to detect much more subtle thin edges with less noise. The top photo is standard edge detection, and the bottom is my own. The other photos are my edge detector with depth + normals applied too. If anyone would like a breakdown, just ask :)

Thumbnail
gallery
275 Upvotes

r/GraphicsProgramming • • Dec 21 '25

My first simple ray tracer

271 Upvotes

At first I just wanted to implement my own ray tracer as a challenge based on "Ray Tracing in One Weekend". Then I started reading around various sources and got overwhelmed with all the material related to ray tracing, so I decided to implement it using approximations (e.g. for the shadows). Graphics is not my expertise, so after 2-3 months of working almost every evening I managed to get to this point and so far I'm happy with it. It feels really satisfying to have it working :)

It additionally implements more features like emissive materials or wavefront (.obj) file rendering and maybe in the future I'll try a more advanced one. More in this repo.


r/GraphicsProgramming • • Jan 26 '25

WebGPU Parallax Occlusion Mapping 2

269 Upvotes

Found a better algorithm for parallax (though steep parallax) at webgpu-samples. Slightly modified it, added pcf shadows (4 samples). Now works well from any angles, both directional and point lights.


r/GraphicsProgramming • • Jun 12 '25

Source Code Liquid glass with GLSL

Post image
268 Upvotes

Hi all, tried my hand on recreating the "liquid glass" effect. https://www.shadertoy.com/view/wccSDf

It's basically a simple ray tracing, following the Snell's law, etc. Its not monte-carlo, but it does have normal and interception calculation. I doubt that's how apple does it, but I think it looks pretty good🙃


r/GraphicsProgramming • • May 26 '25

New in TinyBVH: TinyScene! => Real-time CPU ray tracing.

268 Upvotes

r/GraphicsProgramming • • Oct 01 '24

Spinning 3D cube on MSDOS

268 Upvotes

r/GraphicsProgramming • • Dec 20 '24

point-cloud data and perlin animations in webgl

264 Upvotes

r/GraphicsProgramming • • Feb 03 '21

Article Computer Graphics from Scratch: now as a real book!

264 Upvotes

About three years ago I shared with you a Computer Graphics book I wrote. Due to a series of improbable events, the book is now about to become a real book, with pages and all!

The folks at No Starch Press graciously agreed to let me publish the updated contents, the product of almost two years of hard editing and proofreading work, for free on my website. But if you’d like to preorder the printed or ebook version, you can use the coupon code MAKE3DMAGIC to get a 35% discount at https://nostarch.com/computer-graphics-scratch.

Have fun!

--Gabriel


r/GraphicsProgramming • • Dec 20 '25

Video I use FFT to detect number of rows and cols of frames in sprite sheet automatically. It is still not perfect but makes preview so much faster and more interesting [my free engine - 3Vial OS]

263 Upvotes

r/GraphicsProgramming • • Jun 21 '26

Video Robot shooter game with custom Vulkan engine

262 Upvotes

Finally released my C++/Vulkan robot shooter game built on a custom engine on Steam! It has a deferred PBR renderer with a multi-queue async render graph, and lots of passes: spherical harmonic irradiance probes for the laser particles lighting the scene, PCSS soft shadows, SSR, GTAO, SMAA, and raymarched volumetrics for the explosions smoke and muzzle flashes. For the CPU, I used ISPC SIMD kernels for big iteration hot paths, a spatial hash grid for binning colliders for faster collision lookup, and a thread pool for multithreading particles.

It runs on Windows, macOS, and Linux, and the engine also ships as a reusable library to build a game with! You can grab it for a dollar on Steam or compile it for free or look at the code on GitHub, and there's more info on the engine there too.

I profiled it to run 55-65 fps on Steam Deck and Macbook Air on low to mid settings, and same fps on RTX 4070 on highest settings. It definitely can be optimized more, I still want to make it a full ECS, improve the volumetrics performance (quality setting that degrades fps the most on low-end devices), find and use a more efficient structure for collision lookups, and try experimenting with the thread pool usage more (as well as game features too like more enemy types and bosses and weapons lol).

Try it out on your device and let me know how it runs!


r/GraphicsProgramming • • Apr 14 '26

Video Physically based clouds and planet atmosphere rendering

262 Upvotes

Based on S. Hillaire "Production Ready Atmosphere" paper and Guerrilla Games "Nubis" presentations and papers.