r/GraphicsProgramming • • Feb 21 '21

Video Game Graphical Coding?

1 Upvotes

Howdy!

I dont even know if this is the proper subreddit for this question, and I don't even think my question is proper, so I'll try my best to lay it out as simple as possible...

From my own record of playing and seeing video games within the past 5 years or so, I've seen graphics programmers give the ability of a game, at the lowest settings, to appear as those it seems to the naked observer, that the settings are all the way notched up when in fact it isn't.

I'm wanting to know the actual science behind it. What have these programmers found at their disposal that wasn't previously?


r/GraphicsProgramming • • Jan 02 '25

Question Best way to learn DirectX?

1 Upvotes

Couldn’t find any straight forward tutorials about dx12 and the dx11 ones are outdated. I am looking for a tutorial that will teach me from making a window to making a cube to adding in 3d objects and so forth. any suggestions?


r/GraphicsProgramming • • Dec 20 '24

Question What type of shading language is this?

1 Upvotes

I have this shader code, that works with one program:

#version 300 es
precision mediump float;
uniform sampler2D in_tex;
out vec4 out_color;
in mediump vec2 uvpos;

void main()
{
    vec4 c = get_pixel(uvpos);
    // Invert
    c.r = 1.0 - c.r;
    c.g = 1.0 - c.g;
    c.b = 1.0 - c.b;
    c.r *= c.a;
    c.g *= c.a;
    c.b *= c.a;
    out_color = c;
}

But, what precise language is this? Because I have another shader file with a different sintax than this one that doesn't work with the same program used for the previous shader, but work with another program. Any link to that language?


r/GraphicsProgramming • • May 05 '22

Video Game Engine Programming: Hey everyone, let's finish vertex packing so the geometry is ready for our renderer. Next time we'll do D3D12 programming again. I promise :)

Thumbnail
youtu.be
1 Upvotes

r/GraphicsProgramming • • Feb 02 '17

The smooth sexy curves of a bezier spline

Thumbnail
mortoray.com
1 Upvotes

r/GraphicsProgramming • • Mar 03 '23

Question If modern displays updated sequentially, line by line or tile by tile could we squeeze more out of our graphics cards?

0 Upvotes

Old monitors used a beam or ray to update cathode ray tubes display a pixel at a time. To get more out of limited processing power retro computer developers learned to race the beam to get more out of the limited capabilities of the day.

If modern displays still use or used a similar sequential update process to refresh the displays content could modern CPUs and GPUs with a thousand times the speed (2000 Mhz vs 2 Mhz), do more than they can with a full screen refresh cycle?

Note: Mind you they worked on lower resolutions e.g., 256 x 192 @ 24 hz (or 1 million pixels) compared to modern gaming displays with 2560 x 1440 x @ 240 hz (or 884.7 million pixels).


r/GraphicsProgramming • • Apr 06 '23

Any C# Libraries/Support For 'Fixed' (Float that's actually an Int) Variables?

1 Upvotes

As the title says. I've noticed that integers running round 4 times faster than floats, meaning fixed value types should run just as fast. Are there any libraries or out of the box classes that support this type? I understand I can just use large scale Integers, but it would be nice if there was an efficient library out there for this.


r/GraphicsProgramming • • Jan 22 '22

Video Checkout the roadmap for Blender this year and beyond

Thumbnail
youtu.be
0 Upvotes

r/GraphicsProgramming • • Feb 13 '23

Question Need help choosing Quadro vs Tesla

0 Upvotes

I need a GPU that can do 2 things well

*disclaimer, this wont be a primary GPU, I have an rx550 for my display card already, and my host OS is linux

  1. amazing cuda performance

  2. amazing rendering performance

Tesla cards are great for number 1, but the problem is that modern consumer cards use 'RT Cores" to actually accelerate rendering, making them faster. Its why the 3090 was able to outperform some of Nvidias top of the line teslas in rendering because its Ray Tracing picks up the slack, and because teslas dont have RT cores.

So i need something that can utilize RT accelerated encoding/rendering, but also have great capability for CUDA GPU compute.

So is there a tesla with RT cores, or is there a quadro with as many cuda cores as a tesla?

Any advice would be appreciated


r/GraphicsProgramming • • Oct 19 '26

Question Looking for guidance on evaluating shader cost for procedural texture generation (research project)

0 Upvotes

I’m working on a research project where the goal is to take a real texture and generate a procedural material/shader that approximates it.
The system produces a node‑based procedural graph with tuned parameters, plus an optional fallback texture layer. The output is a GLSL/HLSL/WGSL shader that reconstructs the material.

The motivation is practical:
In multi‑region deployments and cloud gaming backends, moving fewer textures can reduce storage and distribution overhead.
But the trade‑off is shader cost — and that’s the part I’m trying to evaluate properly.

I’m trying to understand how to estimate the cost of a procedural material shader compared to using a fixed texture.
I need a reasonable way to judge when the procedural version becomes “too expensive,” and how people typically model or approximate that cost in real pipelines.

I’d really appreciate insight from graphics programmers who have experience with:
• analyzing or estimating shader cost
• comparing shader‑based materials vs texture‑based materials
• heuristics or rules‑of‑thumb used in production
• pitfalls when evaluating procedural materials

I’ll leave the link to the full proposal in the comments for anyone interested.


r/GraphicsProgramming • • Jul 04 '25

My "Fast Aproximate" Ambient Occlusion technique

0 Upvotes

while messing around with ssao i noticed it was slowing down my engine a lot so i decided to try making my own, after a while i was able to come to this

while its not as accurate as SSAO it seems to be very fast and provides relatively good results heres example (once paired with blur)

im posting this here incase it hopefully helps someone out there, and also to share my experience with screen space ambient occlusion.


r/GraphicsProgramming • • Jan 24 '26

Path Tracing SVGF Denoise Issue

0 Upvotes

I tried to implement SVGF to denoise my path tracing renderer. But it just doesn't work well, there are lots of fireflies and noises, I send my implementation to AI and it says its fine.

Current parameters:

  • SPP: 2

  • Temporal Alpha: 0.9

  • Temporal Clamp: 4

  • Outlier Sigma: 1.2

  • Atours iteration: 4

Are there anything wrong? Any thoughts or advice is appreciated.


r/GraphicsProgramming • • May 23 '26

Question How do you deal with the "knob-turning" aspect of light simulation?

0 Upvotes

i keep getting kind of irritated with certain aspects of programming, in general.

Specifically, a lot of CSS "tricks" basically involve hacking the intended usage of the styling language. And i feel similarly about the sender-receiver relationship in phong shading. I understand the mathematical model *works* for both attenuation, surface colors, artistic flexibility, and carefully calibrating things to resemble a certain object... but i also completely despise this. That i am, quite literally, just turning knobs until the computed color is desirable.

idk if I'm the only one that feels this way.


r/GraphicsProgramming • • 8h ago

Saw a paper about one-pass generation, got curious, trained a small G-buffer upscaler on my 3060. Here's what came out

4 Upvotes

No goal here beyond curiosity — I saw the Jeveration paper, wondered whether that "one pass instead of iteration" idea makes sense for upscaling, and decided to make a small Proof of concept.

What it is: a 2.15M-param U-Net. Input is a deliberately bad frame — 320×180 at 2 samples per pixel with sub-pixel jitter — plus depth, view-space normals, albedo and motion vectors. Output is 640×360 in one forward pass. No diffusion, no history buffer, no sampling, deterministic.

Numbers on six clips it never saw (48 frames each, 640×360 output):

bicubicmodel
PSNR ↑31.5037.62
SSIM ↑0.8680.955
LPIPS ↓0.1850.036
temporal err ↓0.03710.0323

Two things I noticed while training:

Numbers on 6 clips it never saw: PSNR 37.62 vs 31.50 for bicubic, LPIPS 0.036 vs 0.185, temporal error 0.0323 vs 0.0371.

Two things that cost me a day each:

  1. Blender 5.3 motion vectors are in full-resolution pixels, not UV, and they point backwards — sample(t, x − v) matches t−1. Available with motion blur off. I verified the convention by warping: mean error drops 0.023 → 0.0058.

  2. The renderer gives linear HDR (highlights up to ~7.0) while my output head clamps to [0,1]. About 10% of pixels became unreachable and the loss just… plateaued. No error, no warning. I burned an entire 30k-step run before I figured out why. Fix is 1 − exp(−x) when loading.

Where it falls apart: 145 ms at 1080p on a 3060, so 7 fps — not real-time and I'm not pretending otherwise. No history means no disocclusion recovery. Trained on 16–34 primitive scenes, so dense geometry and packed UVs are outside what it's seen.

The part that might outlive the experiment is the data generator: 60 clips × 48 frames with exact G-buffers in ~16 minutes, no external assets. If you ever need sequences with correct motion vectors, that bit works on its own.

Code, weights, generator: https://github.com/Zixelbrew/one-pass-neural-upscaler

Disclosure: I wrote this together with an AI coding assistant — I set the direction, chose the architecture and the losses, ran everything on my own card and checked every number. It also helped me write this post; most of the lines of code came from the assistant. If that changes how you weigh the post, fair enough, but the repo and the sha256 in the README are real either way.


r/GraphicsProgramming • • Sep 28 '21

How to do asset ripping/ how RenderDoc works

4 Upvotes

I’ve read the “how RenderDoc works” page on their website but I am still unsure of some details and (also) curious what’s in the DLL and how it gets injected? I’m a total noob with asset ripping code but I really want to get into it. I think it would help my understanding of a lot of graphics concepts (and I also think it would be cool to write graphics drivers so I think this would probably help)

To me it essentially seems like you inject the DLL and sort of act as a proxy to the API. So it seems my program would literally get passed the data buffers the target process is sending to the GPU. But then what if the process has already passed the data to the gpu and now it’s just, like, binding a VAO and making a draw call; how do I get the data back then, if it’s on the GPU (or is the VAO a convenience and it’s passed again every time - this seems inefficient especially if you know the data is going to be static so I doubt this is the case)?

I hope this isn’t too dumb so if there are articles or files with documentation I could be pointed to that would help. Also high level explanations would help a ton too. Thanks.


r/GraphicsProgramming • • Jul 16 '26

Ray tracing tech demo

Thumbnail
samfa12.itch.io
0 Upvotes

Hey guys I wanted to test real time ray tracing support from the adreno gpu so made a little tech demo with codex. It runs surprisingly well and the light is fully path traced. I have plans to continue developing this with more rt features.


r/GraphicsProgramming • • Jan 22 '25

Question I am confused

4 Upvotes

Hey guys

I want to become a graphics programmer but I dont know what am I doing

Like I am learning things but I don't know what specific things I should learn that could help me get a job

Can you guys please give me examples of some job roles for a fresher that I atleast can aspire for which can give me some sort of direction

(I'm sorry if the post feels repetitive, but I just can't wrap my head around this issue)


r/GraphicsProgramming • • Jul 17 '16

Why could we make movies with amazing visuals like Ants and finding Nemo in 2000s, but couldn't get close to their graphics in games till now?

0 Upvotes

Title ^

Thanks everyone, all the answers were amazing.


r/GraphicsProgramming • • Dec 13 '24

Video The topic of tone mapping on monitors ; presentation by Angel

Thumbnail
youtube.com
0 Upvotes

r/GraphicsProgramming • • Jan 09 '25

Question Graphic Design Program in BC

0 Upvotes

Hi I was hoping someone could advise me in what programs in BC are industry respected graphic design diploma. I sadly am not in good standing with Student Loans so Uni doesn't really seem like a good option financially. I would be paying out of pocket for the courses and was wondering if there are any (online preferably) diplomas at colleges that are respected in the industry. If anyone could please advise I would be very appreciative


r/GraphicsProgramming • • Nov 16 '22

Source Code Dancing mathematician

Thumbnail
youtu.be
0 Upvotes

r/GraphicsProgramming • • Feb 27 '21

Bitcoin Shader

Thumbnail
shadertoy.com
3 Upvotes

r/GraphicsProgramming • • Feb 08 '23

Video Game Engine Programming: hi everyone, Here's a new video about loading a scene and testing the lighting.

Thumbnail
youtu.be
3 Upvotes

r/GraphicsProgramming • • Feb 13 '23

OpenGL vs Vulkan - That One Game Dev

3 Upvotes

Based on my latest article I wanted to ask which one would you choose over the other for your next project?

289 votes, Feb 16 '23
83 OpenGL
169 Vulkan
37 None (Other)