r/GraphicsProgramming • • Oct 06 '26

There's more AI content on this subreddit than human content

389 Upvotes

I've started filtering out webgl and threejs posts because every single one of them, without fail, is an ai generated project from someone who couldn't tell you what the rendering equation was. The sheer number of posts that follow these patterns are drowning out out any genuine graphics programming discussion.

I understand that this subreddit is taking a more neutral stance towards AI generated code, I also understand that these tools can be used by experts to develop incredibly impressive projects, but the vast majority of posts on this subreddit are from people who do not know the first thing about graphics programming promoting their entirely vibecoded projects. There is no meaningful conversation to be had on these kinds of posts.

Edit, A few examples of posts that are blatantly entirely vibecoded by people who aren't even developers, much less graphics programmers:

https://www.reddit.com/r/GraphicsProgramming/comments/1wx03ny/from_zero_to_understanding_rasterization/

https://www.reddit.com/r/GraphicsProgramming/comments/1wydhww/i_finally_got_procedural_grass_looking_the_way_i/

https://www.reddit.com/r/GraphicsProgramming/comments/1uxpi1o/from_zero_to_understanding_ray_tracing/

https://www.reddit.com/r/GraphicsProgramming/comments/1wwcl1w/i_wanted_to_understand_modern_pointerbased_gpu/

All of these projects have clear misinformation in them and the posters don't know enough about graphics programming to hold an actual conversation. They dilute any meaningful discussion that could happen on this subreddit.


r/GraphicsProgramming • • Mar 26 '26

Broke my DDGI and accidentally made something beautiful

Post image
387 Upvotes

r/GraphicsProgramming • • Jul 10 '26

Video Breathing nature: forest with stream simulation, volumetric clouds and path traced shadows

384 Upvotes

Hi all,

THIs is my forest simulation made witih Vulkan. My goal is to create a full simulation of water, clouds, wind, so that it feels alive, without being "scripted".
Water is full 3d flow simulation, clouds are volumetric clouds, trees are rigid body simulation with elastic joints, and lighting is full path tracing; all is basically running on the GPU with VUlkan, save for the rigid body simulation which runs on the CPU.
I wanted an "ancient forest" and therefore I generated the trees with 2d to 3d models - Trellis2 from huggingface.
Wanted to get feedback from you, what feels good and what needs improvement. Could this lead to an immersive forest based game? Should I push instead for more tech?

short version here: https://youtube.com/shorts/5xy5Y6JsrVk?feature=share


r/GraphicsProgramming • • Oct 26 '25

Video Real-time 'Ray tracing in one weekend' - 12ms/frame, 1920x1080, 100k spheres

382 Upvotes

I have been working on my real-time path tracer using vulkan and compute shaders. This scene has 100k spheres in it and renders at 12ms/frame (1920x1080, 5060ti). Currently set to four samples per pixel and four max bounces. There is still a massive amount of optimization to do as I really just threw this thing together over the last little while. I do have a simple uniform grid as my acceleration structure that is built on the CPU side and sent over the the GPU for ray traversal.

Edit: Someone asked for the github url: https://github.com/idobbins/callandor


r/GraphicsProgramming • • Jun 14 '25

Here's my rendering engine

376 Upvotes

I would love some feedback or advice. For the repo: https://github.com/BarisPozlu/Lypant-Engine


r/GraphicsProgramming • • May 03 '25

Video Here is my completed ocean simulation

374 Upvotes

This was my previous post,

https://www.reddit.com/r/GraphicsProgramming/comments/1k9aqe0/any_advice_to_my_first_project/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button

Thanks for your advices, it really encouraged and helped me to go forward. I am very happy to see some satisfying results after a huge learning phase.


r/GraphicsProgramming • • Dec 25 '23

John Carmack telling NASA Engineers that Rocket Science is simple compared to Graphics Programming

Thumbnail
youtube.com
374 Upvotes

r/GraphicsProgramming • • Apr 08 '26

Participating Media / Volume Scattering in my CUDA Path Tracer

Thumbnail
gallery
373 Upvotes

I've recently been looking at participating media - fog, smoke, clouds, fire - the kind of effect where light doesn't just bounce off surfaces but actually scatters through the volume itself.

For each ray that enters a volume, the renderer decides whether the ray scatters inside it, or passes straight through. For homogeneous volumes (uniform density throughout) this is relatively straightforward using Beer-Lambert: you sample a free-flight distance exponentially distributed by the volume's extinction coefficient, and if that distance falls within the volume, a scatter event occurs. The ray then picks a new direction according to the Henyey-Greenstein phase function, which has a single parameter controlling whether scattering is predominantly forward, backward, or isotropic.

For heterogeneous volumes - where density varies spatially - I'm using delta tracking (Woodcock / null-collision tracking). The idea is that you pick a majorant, which is an upper bound on density across the entire volume. You then take free-flight steps as if the volume were uniformly that dense, but at each candidate scatter point you sample the local density and accept or reject the event probabilistically. Null collisions (rejections) are effectively fictitious collisions that keep the estimator unbiased whilst handling the spatially varying density correctly.

For emissive volumes like fire, emission is accumulated along the path during delta tracking. Each candidate point contributes emission weighted by the local density relative to the majorant - this accounts both for the density of the medium at that point and for the null-collision probability inherent in the tracking algorithm.

Still plenty to look at - proper (spectral) extinction, multi-scattering in fire, and direct VDB file support are all on the list (time permitting!)


r/GraphicsProgramming • • Feb 17 '25

Working on my first Game Engine! (Open Source)

Post image
372 Upvotes

r/GraphicsProgramming • • Mar 05 '26

Video Built a real-time PBR renderer from scratch in Rust/WebGPU/WASM

371 Upvotes

Built a real-time PBR renderer from scratch in Rust/WASM, running entirely in the browser via WebGPU.

I am in love with Rust + WebGPU + WASM!

Cook-Torrance BRDF · GGX specular · Fresnel-Schlick · HDR IBL (prefiltered env + irradiance + BRDF LUT) · PCF shadow mapping · GTAO ambient occlusion · bloom · FXAA · chromatic aberration · tone mapping · glTF 2.0 (metallic-roughness + specular-glossiness + clearcoat + sheen + anisotropy + iridescence + transmission) · progressive texture streaming.


r/GraphicsProgramming • • Aug 23 '25

3 months of progress on my D3D12/Vulkan renderer

Post image
370 Upvotes

Repo is https://github.com/AmelieHeinrich/Seraph

It's been a fun journey learning everything and I'm happy with how things are turning out :D posting on the subreddit has also been pretty good for motivation ^-^


r/GraphicsProgramming • • Jan 18 '25

Genart: Image generation with compute shaders and genetic algorithms

368 Upvotes

r/GraphicsProgramming • • Aug 30 '25

First Ray Tracer

Thumbnail
gallery
362 Upvotes

I studied physics in school but recently got into computer graphics and really love it. I found out a lot of the skills carry over and had fun making my first ray tracer.

I followed along with the Ray Tracing in One Weekend series and this NVIDIA blog post: https://raytracing.github.io/ https://developer.nvidia.com/blog/accelerated-ray-tracing-cuda/


r/GraphicsProgramming • • Apr 07 '25

Very slow clouds, time to optimise

361 Upvotes

Very basic clouds using a multiscattering approximation from a paper for the Oz movie


r/GraphicsProgramming • • Jul 12 '26

Source Code Krbn: an open-source rendering engine that imitates a sketch artist and outputs pure SVG (v1)

Thumbnail gallery
360 Upvotes

r/GraphicsProgramming • • Oct 27 '26

Source Code 67 - shadertoy

359 Upvotes

r/GraphicsProgramming • • Sep 04 '25

the GL brothers

Post image
358 Upvotes

r/GraphicsProgramming • • May 03 '25

Trillions of Cubes Rendered in Real Time

Post image
358 Upvotes

r/GraphicsProgramming • • Jul 30 '26

It's Been 3 Years Since LearnOpenGL. NEVER GIVE UP!!

Thumbnail
gallery
356 Upvotes

Been doing games and graphics (as a hobby) for around 20 years, but mostly with stock engines and some experiments using DirectX and Vulkan. Started on my current project 3 years ago, never having tried OpenGL in my life. Images show the latest update from my engine, and what I accomplished on the first day of reading LearnOpenGL back in 2023. Never give up!!


r/GraphicsProgramming • • Mar 25 '26

It’s been two years since I first decided to do it

Post image
356 Upvotes

I wish I had done it sooner


r/GraphicsProgramming • • Apr 08 '21

"Reclaim the streets" - Winning shader made at Revison 2021 shader showdown semi final

356 Upvotes

r/GraphicsProgramming • • Jun 04 '26

LLM’s can’t do graphics programming

354 Upvotes

I have generally been tracking LLM progress and attempting to integrate LLM’s into my workflow. My two cents: LLM’s are not currently capable of high-level autonomous graphics programming.

Here are some anecdotes I’ve collected over a series of experiments and production tests that I hope will add some color to the current discussion being had in posts on this sub/elsewhere.

Shader Obfuscator

2 months ago, I tested Claude code (using Opus 4.6) on some tasks for a custom HLSL obfuscation pipeline I built in rust. It parses a simple AST from HLSL and then runs various AST transforms on it to make it unreadable to the average programmer.

Claude was able to successfully implement very simple features and refactors. It was also able to quickly stamp out plausible boilerplate given high level descriptions. This was awesome because there’s a lot of these sorts of tasks involved in writing a compiler front end, and using an LLM made the process more enjoyable.

That said, it was not able to handle anything of intermediate complexity, even with a pretty good description of exactly what should be done and a lot of hand-holding. It would often make subtle mistakes that I would catch in tedious fine-grained reviews.

Contrary to what others have said: it could not produce meaningful unit tests on its own. The tests it wrote looked extensive at first glance, but they were just verbose and repetitive. They typically missed critical edge cases present in real shader files.

I think this is an interesting case because this project was favorable to the LLM (heavily unit-tested, CLI interface, small number of lines of code, few external dependencies), but also algorithmically complex enough to evaluate its problem solving skills. On the latter, it performed worse than I expected.

Volume Renderer

~1 month ago, I used Claude Opus 4.7 to vibe code a real-time volume renderer from scratch with Web GPU and Rust.

My goal with this experiment was to evaluate both the degree to which a non-expert could have success in this matter, and failing that, the effectiveness of LLM’s at translating a very high level implementation request from an expert into a working solution.

I understand that this is not the most effective way to use an LLM; a tight spec where you describe exactly what you want in detail is best. But, the capability to do this kind of hands-off work is what is being advertised and hyped, so I think it’s important to circumscribe the boundaries of what is possible.

I was actually stunned when after ~10 mins of churning, it produced a working prototype that imported an open VDB file to a 3D texture, set up a simple camera + viewport, and successfully ray marched the volume.

That is more or less where the successes ended though.

I tried to get it to optimize the ray-marching loop—starting with deliberately vague non-expert requests to just “make it faster” and then progressing to targeted algorithmic suggestions. It had quite a hard time with the open-ended nature of these requests; often it would undo work it had previously done when I provided new suggestions, and ultimately it failed to implement anything meaningful.

I also attempted to get it to iterate on the lighting techniques by providing screenshots. No luck here: it could not translate visual critiques to solutions, even with progressively specific algorithmic guidance.

Finally, I asked for a trivial adjustment to the camera controller to make it more intuitive to fly around. I expected it to be able to do this, but it failed.

When I read the code, it was a bizarre combination of clean and messy; highly documented but overly verbose, with tons of unused functions. It only got messier as I asked for more modifications.

Final thoughts on this one: someone without experience would likely not push past the initial result to discover that LLM’s can’t currently vibe out unique graphics functionality. This may explain some of the conflict in discourse on the topic.

The structure of the successes/failures makes me slightly more confident that as of 2026 LLM’s continue to associatively interpolate the latent space of all code they’ve been trained on (including hand-tuned “reasoning paths”), despite recent claims to a more structural understanding of reasoning.

Unreal Plugin Integration

I’m working on a plugin for Unreal engine and, in the last 2 weeks, I’ve been looking for clever ways to inject my plugin’s data structures into the Unreal render passes without modifying Unreal’s source.

Using Claude code to scrape the UE source, which is largely undocumented, has been great for surfacing API’s and common usage patterns. This has sped up my work immensely.

However, it would often tell me there was no way to do something without modifying source, when in truth it was actually possible with some creative thinking.

Had I relied on Claude entirely here, I would have been forced to conclude I cannot ship my project as a plugin, which is wrong and would have significant business model consequences for our product.

Open VDB Transforms

Final relevant example: about 2 weeks ago, I was dealing with a non-trivial bug with Open VDB frame transforms.

I threw Claude Opus 4.7 at it and, despite having access to all the open VDB source, it hallucinated a bunch of stuff that didn’t work. I managed to figure it out in ~an hour.

Of course I’ve had Claude successfully spot bugs for me as well. But I’ve found the more complex the issue the less likely it is to figure it out; perhaps an obvious statement.

Conclusion

The discussion of the failures of LLM programming often centers around:

  • lack of notable productivity increases in companies that have heavily adopted LLM coding

  • challenges with code maintainability

  • flawed unit economics of token costs

These are all valid critiques, but a more fundamental issue is the simple fact that LLM’s cannot do effective graphics programming autonomously, i.e. without close guidance, and thus the productivity improvements appear to me to be (currently) overstated.

Expert-level graphics skill is still required, both for boundary-pushing work and for run-of-the-mill tasks of intermediate complexity. How long that remains true is a mystery to us all, but given the current state of things I do not think we should assume we are within striking distance.

EDIT: wow this has gotten more traction than expected. I started writing this as a comment on another post but I’m glad I decided to post it for real instead.

Few things I wanted to address from the comments.

All of the above experiments were using agentic tools (claude code’s $20/mo tier in particular).

The stories I shared cover a somewhat wide range of usage patterns. The volume renderer experiment was more about seeing what a naive non-expert could build with LLM’s. On the other hand, the Open VDB bug was something I encountered in my day to day usage of the tools.

As written above: I agree that LLM’s can successfully complete “bite sized” tasks given the appropriate specs and an accurate description of the desired solution. I agree you could probably build an awesome renderer this way, maybe quite a bit faster than “by hand”. I do not consider this “LLM’s doing graphics programming”, at least in the way I meant it in the post title, because the expert graphics programmer is the one doing 90% of the substantive work.

Lastly: I use LLM’s to great benefit all the time. I am not anti-LLM coding. But I think we all ought to evaluate these systems honestly, with a high bar for correctness, and ask “when is it worth it to outsource work to a paid subscription service; what productivity improvement is required?“.

Thank you all for an interesting discussion!

EDIT #2: edited original post’s language for clarity and intent.


r/GraphicsProgramming • • Apr 26 '25

Video Finally added volumetric fog to my toy engine!

354 Upvotes

Hey everyone !

I just wanted to share with you all a quick video demonstrating my implementation of volumetric fog in my toy engine. As you can see I added the possibility to specify fog "shapes" with combination operations using SDF functions. The video shows a cube with a substracted sphere in the middle, and a "sheet of fog" near to the ground comprised of a large flattened cube positioned on the ground.

The engine features techniques such as PBR, VTFS, WBOIT, SSAO, TAA, shadow maps and of course volumetric fog!

Here is the source code of the project. I feel a bit self conscious about sharing it since I'm fully aware it's in dire need of cleanup so please don't judge me too harshly for how messy the code is right now 😅


r/GraphicsProgramming • • Nov 30 '25

Question Cool texture I saw in Rivals I want to know more about

353 Upvotes

So I am not at all familiar with graphics in games, but this subreddit seemed most relevant to ask about this.

I know this may not be all that interesting or new, but it's the first time I've noticed something like this in a game. The way that the wall itself has a 3D environment in it, that doesn't actually exist within the game, caught my attention the first time I saw it. What's happening here? What is this called? Where could I see more examples of this in other games? Because it's pretty fun to look at lol.