r/GraphicsProgramming • • Aug 16 '25

Better vegetation rendering than Unreal, the Witcher 4 demo proves why w...

Thumbnail
youtube.com
36 Upvotes

In my next video I take a look at the Witcher 4 demo, and Nanite vegetation, and compare it to my own vegetation system.

We frequently forget how fast GPU's have become and what is possible with a well crafted setup that respects the exact way that stages amplify on a GPU. Since the video is short and simply highlights my case, here are my points for crafting a well optimized renderer.

  1. Use bindless, or at the very least arrays of textures. By sizing and compressing (choice of format) each texture perfectly you can keep the memory footprint as low as possible. Also see point 2.

  2. Use a single draw call, with culling, lodding, and building the draw commands in compute shaders. Bindless allows an uber shader with thousands of materials and textures to render in one pass. Whatever you loose inside the pixel shader is gained multiple times in the single draw call.

  3. Do as much work in the vertex shader as possible. Since my own engine is forward+, and I have 4 million tiny triangles on screen, I process all lights, other than the sun inside the vertex shader and pass this in. The same is true for fog and small plants, just calculate a single value, don't do this per pixel.

  4. Memory access is your biggest enemy

  5. Memory - Compress all of you vertex data as far as humanly possible. But pack and write extraction routines. Only need 3 bits, don't waste an int on it. By far the biggest gains will come from here.

  6. Memory - Use some form of triangle expansion. Here I use a geometry shader, but mesh shaders can work as well. My code averages 1 vertex per 2 triangles using this approach.

  7. Test and test. I prefer real-time feedback. With hot reloading you can alter a shader and immediately see the rendering time change. It is sometimes interesting to see that changes that


r/GraphicsProgramming • • Apr 26 '26

New release of my emergence engine made with webGPU and three.js 🥳You can use it to see all kinds of crazy things—all of them 100% emergent

3 Upvotes

r/GraphicsProgramming • • May 09 '22

Bugs in the game

3 Upvotes

r/GraphicsProgramming • • Nov 15 '19

Question Modern Touchscreen User Interface for Fully Controllable Humidified Orbital Shaker

1 Upvotes

Hey guys,

I am trying to build a modern-looking user interface for my senior design project using a Raspberry Pi. I like coding a lot but I have never designed a user interface before and kind of do not know where to begin.

As background, I am making a humidified orbital shaker where the user inputs the desired RPM and temperature while maintaining a relative humidity of 100%. My team, consisting of three mechanical engineers, already have the design done on CAD programs. Right now, we are learning how to wire the motor, humidifier, heating element and sensors to the Arduino which will be connected to the Raspberry Pi and touch screen for a user interface to input parameters. Our client would like to use this fixture for her research, so I would like it to be strictly running this app!

My research has led me to "Kivy" and after going through the gallery, I really like the look, and that it is possible to link my fixture to this interface. Am I right in thinking it is possible to link the user interface to my fixture using Kivy? Please give any advice, some good books, sites, tutorials, anything and everything to help me build the interface and link it to this fixture, if possible! How long do you think it will take for a somewhat beginner coder ( I am a really fast learner!)?


r/GraphicsProgramming • • Oct 23 '25

Tellusim Core SDK

4 Upvotes

Hi r/GraphicsProgramming,

Tellusim Core SDK is now on GitHub! It's a cross-platform C++ SDK for graphics and compute with bindings for C#, Rust, Swift, Python, Java, and JavaScript, and comes with plenty of basic and advanced examples.

It's free for education, indie developers, and the open-source community.

GitHub: https://github.com/Tellusim/Tellusim_Core_SDK

Happy coding with Tellusim!


r/GraphicsProgramming • • Feb 25 '26

Bit-Exact 3D Rotation: A 4D Tetrahedral Renderer using Rational Surds (Metal-cpp)

Post image
4 Upvotes

I’ve been building a 3D engine that abandons the standard Cartesian (XYZ) basis in favor of Buckminster Fuller’s Synergetic Geometry.

I’m not a professional graphics programmer, so I pair-programmed this with an LLM (Gemini CLI) to implement Andrew Thomson’s 2026 SQR (Spread-Quadray Rotor) framework.

We realized that by using a Rational Surd field extension ($\mathbb{Q}[\sqrt{3}]$), we could achieve something standard engines can't: Bit-Exact Determinism.

  1. Zero-Drift Rotation: A meditative rotation about the W-axis. It passes a benchmark where 360° of rotation returns the engine to the exact starting bit-pattern.

  2. The Jitterbug Transformation: The twisting collapse of the Vector Equilibrium (VE) into an Octahedron. In Quadray space, this complex 3D move is a simple linear interpolation.

  3. Janus Polarity: Hit the spacebar to flip the "Janus Bit" (the explicit double-cover of rotation space).

The "Surd-Native" Shader:

The Metal kernel is doing all the rotation math using our custom surd-arithmetic library. It only converts to float at the final pixel projection.

The Hardware Question:

Since this engine runs purely on integer addition and multiplication, I'm curious if this could lead to a "Geometric ASIC" or FPGA that runs 3D simulations with absolute precision and significantly lower power than current FPUs.

Source Code: https://github.com/johncurley/synergetic-sqr

Research Paper: https://www.researchgate.net/publication/400414222_Spread-Quadray_Rotors_-v11_Feb_2026_A_Tetrahedral_Alternative_to_Quaternions_for_Gimbal-Lock-Free_Rotation_Representation

Would love to hear from anyone working on algebraic determinism or alternative coordinate systems! I'd just love to get this out there so people can understand and hopefully utilize Andrew's incredible work.


r/GraphicsProgramming • • Aug 05 '26

Informal RFC: KoreGP, a first-class API based on Sebastian Aaltonen 's no-graphics-api

Thumbnail
koregp.org
0 Upvotes

KoreGP (KGP): A Proposal and Implementation Plan

A minimal General Processing API, built from the guts of Mesa's Vulkan drivers

Draft 0.2 — for discussion. Nothing here is built yet, the point of this document is to find out whether it should be. I'm probably not even the person to build it. I'm just a guy going to market across the valley on my bicycle. I can see where a bridge should be built, but I'm not qualified as a structural engineer, architect or builder.

Yes, some of this document was partially written using AI tools. That doesn't make it wrong. I just didn't have the effort necessary to flesh it out, so I gave it my notes and asked it to complete the work. If that morally offends you, move along, but AI tools ARE a force multiplier, if used responsibly.

Reference target: AMD RDNA2+ through Mesa RADV internals, NVidia NVK through Mesa, on Linux.

I am now wearing my flameproof underoos, so go ahead and flame me, everyone. (Vulcan was the god of fire.)


r/GraphicsProgramming • • May 22 '20

Question Best practices for 3D(or 2D) axes

0 Upvotes

Hello all. What are the best practices for 3D or 2D axes rendering for viewers. You all know those axes in bottom-left of the viewer or somewhere else over everything.

  • Rendering to a texture and then to a quad?

  • Rendering to a 1mx1mx1m Voxel away from the camera?

Looking forward to get inspired.


r/GraphicsProgramming • • Feb 25 '25

Question Issue with my shader code

0 Upvotes

Can anyone help me with this? I am new to shaders and just learnt about raymarcing and SDF. Here I try to simulate the schwarzchild blackhole. The ray bending works as expected. But I want the objects to follow the geodesic. When I place an object in a position like (4,0,-3) [And the camera is at (0,0,-3)] then a mirror image seems to appear from the black hole and the object disappears before falling in the black hole. But in other positions it works fine.

In the video the position of the spheres are (0,5,2), (6,0,-3), (-5,0,2). The issue is with the sphere at position (6,0-3).

And here is my shader code: https://www.shadertoy.com/view/wfB3WW


r/GraphicsProgramming • • Oct 23 '17

How about using shaders as singletons ?

0 Upvotes

I want to have a getActiveShader() method so it will return the active shader(custom class) and use it with my playerComponent or anything that needs to be rendered. I was thinking to use singletons to do that so that the shader can be accessed on the fly from everywhere. I am a bit confused though and i am not really sure if i am on the right track here. Any thoughts on the subject? Using Opengl 3.3 .


r/GraphicsProgramming • • Jul 09 '25

What will give me the biggest bang for the buck?

0 Upvotes

I'm starting a new game using bgfx, but I don't want to create a full blown game engine. I'd rather focus on a handful of shaders and features that will give me the biggest impact.

Which features do you think have the most impact for a modern "realistic" feel? All the effects I've messed with in godot/unity make such a subtle impact that I can't tell which are the most effective.


r/GraphicsProgramming • • Sep 20 '22

Question What's the advantages of Rust over C/C++ today ? Is it possible to create the best 3d engine in Rust or a AAA game like Elden Ring, FF7 remake, GTA etc with it ? If it's possible why it asn't been done yet ?

0 Upvotes

A) What's the advantages of Rust over C/C++ today ? Is it possible to create the best 3d engine in Rust or a AAA game like Elden Ring, FF7 remake, GTA etc with it ? If it's possible why it asn't been done yet ?

B) How long it took you to learn Rust or C/C++ and 3d graphics programming to feel "competent" in it ? Do you consider yourself a senior 3d graphics programmer or Rust programmer ? I've heard of a game studio who want to use Rust exclusively to code... but there is many ppl in forums online who say the toolings need to mature is that true and why ? Do you believe Rust will be forever a competitor to C++ and stick to game programming or anything that demand real performance or it will start to be a alternative to Javascript, C#, Java and all the other higher managed language ?


r/GraphicsProgramming • • Oct 18 '22

DAE just think probe grids are boring?

Post image
6 Upvotes

r/GraphicsProgramming • • May 19 '25

Question I love this, but AI is super demotivational...

0 Upvotes

Hello,

I have been a fullstack SE for 2 years now, so mainly working with React and .NET, plus things around such a kubernetes, teamcity etc...

I have started learning c++ about 3 months ago mainly with the purpose to start graphical programing. I am on page 150 of the LearnOpenGl book, and I must say I am really in love with this, I will work on my game / game engine after that, and slowly would also love to get into some simulations. However obviously as many people in the sofware world, I am worried about AI, and I must say, everytime I complete a chapter, AI is on my mind, that it would get it done too.

I obviously know that the progress of learning to program is gradual, steep, and every step is worht a celebration, but until I get to a point where I am better than the CURRENT AI, the future AI will be even better and I am worried I will never catch up, until all programmers including the graphics and low level ones are replaced.

How do you see this in few years? I thinking of really quitting SE and going to trades and doing graphical programming just for fun without any practical / profit benefits...but it would be still super cool to have a change to work in graphical programming :/

Thank you very much.


r/GraphicsProgramming • • Mar 11 '26

Article NVIDIA RTX Innovations Are Powering the Next Era of Game Development

0 Upvotes

At GDC, NVIDIA unveiled the latest path tracing innovations elevating visual fidelity, on-device AI models enabling players to interact with their favorite experiences in new ways, and enterprise solutions accelerating game development from the ground up.

For game developers we’ve put together a quick summary of our NVIDIA GDC announcements and some guides to get started . We hope you find them useful!

  • Introducing a new system for dense, path-traced foliage in NVIDIA RTX Mega Geometry 

  • Adding path-traced indirect lighting with ReSTIR PT in the NVIDIA RTX Dynamic Illumination SDK and RTX Hair (beta) for strand-based acceleration in the NVIDIA branch of UE5

    • We’ve also released our latest NVIDIA RTX Branch of Unreal Engine 5.7. Here is a full guide on how to get started. 

  • Expanding language recognition support in NVIDIA ACE; production-quality on-device text-to-speech (TTS); a small language model (SML) with advanced agent capabilities for AI-powered game characters

    • New models are available on our NVIDIA ACE page. 

  • Scaling game playtesting and player engagement globally with GeForce NOW Playtest


r/GraphicsProgramming • • Feb 03 '20

Source Code linalg - a kick-ass and fun to use single-header short vector math library for C++ that should come standard with every graphics API. It functions as a great light-weight replacement for GLM and covers all of your vector math bases for OpenGL, Vulkan, DirectX, Metal, GLSL, HLSL, etc.

Thumbnail
github.com
7 Upvotes

r/GraphicsProgramming • • Jun 24 '25

Question Anyone using Cursor/GithubCopilot?

2 Upvotes

Just curious if people doing graphics, c++, shaders, etc. are using these tools, and how effective are they.

I took a detour from graphics to work in ML and since it's mostly Python, these tools are really great, but I would like to hear how good are at creating shaders, or helping to implement new features.

My guess is that they are great for tooling and prototyping of classes, but still not good enough for serious work.

We tried to get a triangle in Vulkan using these tools a year ago, and they failed completely, but might be different right now.

Any input on your experience would be appreciated.


r/GraphicsProgramming • • 10d ago

Question Could two GPUs render separate halves of a game using a PBP monitor?

2 Upvotes

I've had this idea floating around in my head about bringing back multi-GPU gaming, but approaching it differently from SLI or CrossFire. I'm curious if something like this would actually be possible.

Basically, what if we used Picture-by-Picture (PBP) monitors to split a game's rendering workload between two GPUs?

Say you're playing at 4K (3840 × 2160). Instead of one GPU rendering the entire image, GPU 1 would render the left half at 1920 × 2160, while GPU 2 renders the right half at the same resolution.

Each GPU would have its own HDMI or DisplayPort connection to the monitor. Since PBP already allows two separate inputs to be displayed side by side, the monitor could display both halves as one continuous image.

The main idea is to take advantage of resolution. Each GPU would only be responsible for roughly half the pixels, potentially reducing the rendering workload while maintaining the full 4K image.

Now, I understand that rendering involves more than just pixels. Both GPUs would still need access to game data, geometry, textures, and lighting information. There would also be synchronization overhead.

But here's what interests me.

If each GPU sends its rendered portion directly to the monitor, wouldn't that eliminate the need to transfer the completed image between GPUs? I'm wondering whether avoiding that transfer could offset some of the additional overhead and result in an FPS increase.

I'm not expecting double the performance. Even a 15–25% improvement would be interesting.

Another possibility would be using GPUs from different manufacturers, like AMD and NVIDIA, since each card would independently handle its assigned portion.

Obviously, mismatched performance would be an issue. If one GPU finishes its half faster than the other, the slower card could bottleneck the entire system.

One possible solution could be adjusting the rendering workload based on GPU performance. Instead of splitting the image 50/50, maybe the faster GPU handles 65% while the slower one handles 35%. Although I imagine standard PBP monitors having fixed display regions could complicate that.

As for the software side, here's what I'm thinking.

Rather than trying to make existing games support this, what if someone built a simple 3D game or benchmark specifically designed around two GPUs?

Using Vulkan or DirectX 12, a single CPU-side game simulation could coordinate both GPUs, with each rendering its assigned portion of the same frame.

The goal would be to minimize duplicated calculations, keep both GPUs synchronized, and output each rendered region directly to the PBP monitor.

You could then compare the same scene running on one GPU versus two GPUs to see whether there's any measurable performance improvement.

I know split-frame rendering already exists, and NVIDIA has experimented with multiple GPUs rendering different sections of a display. I'm more interested in whether this could be accomplished using ordinary consumer hardware and an existing PBP monitor.

I'm not developing this myself. I'm just putting the concept out there because I think it would be an interesting experiment for someone with the hardware and programming experience.

A few things I'm curious about:

- Could Vulkan realistically coordinate two independent GPUs this way, especially from different manufacturers?

- Would avoiding inter-GPU transfers of completed image data provide enough benefit to outweigh synchronization and duplicated rendering work?

- Could a standard PBP monitor keep both halves synchronized, or would modifications to its display controller be necessary?

- Would this approach have a better chance of improving performance at higher resolutions, where pixel rendering becomes more demanding?

I'm not claiming this is some revolutionary new technology. I'm just wondering whether combining existing technologies differently could give us another way to get some extra performance out of multiple GPUs.

What do you guys think? Is there something obvious I'm overlooking, or could this actually be worth experimenting with?

---

AI disclosure: I used ChatGPT to help organize and write this post. The concept and questions are my own.


r/GraphicsProgramming • • Jan 29 '23

The Impossible In Real Time Graphics

2 Upvotes

What is somthing that a computer cant render in realtime?


r/GraphicsProgramming • • Oct 23 '15

What does compagnies want to see in CV?

2 Upvotes

Hey everyone,

I am on my third year of university in computer sciences, and I need to find an internship for the end of the year. I'd like to find it in real time computer graphics. I've read a lot of this subreddit posts, and it seems like it is impossible. However, I'd still like to try to send some CV's. Before that, I'd like to know what kind of projects/experience a common company wants to see. ( I am interested for answers even if this is for a first job and not an internship )

So I have a basic understanding of the pipeline stages, matrices, vectors and common operations. I know how to produce basics effects you can see in tutorials : shadows, normal mapping, reflection, skinned animations. I have a little experience with procedural generation, I can generate basics heightmaps, planets, textures, however it's not looking that great.

The problem is that I don't have any project to show, if they ask me "hey show me some projects you did?", I don't think they are gonna be satisfied with one mesh + shader demos. I often tried bigger scenes, but I was always stuck with assets.

What should I do? More importantly what should I show them? Bigger project ( by that I just mean a scene containing some effects I've working on, and try to render it the best I can ) ? More advanced effects?

If you have already interviewed some people for graphics position, how would you select them?

Thanks.


r/GraphicsProgramming • • May 03 '25

Question Why does nobody use Tellusim?

0 Upvotes

Hi. I have heard here and there about Tellusim and GravityMark for a few years now, and their YouTube channel is also quite active. The performance is quite astonishing compared to other modern game engines like UE or Unity, and it seems to be not only a game engine but also a graphics SDK with a lot of features and very smooth cross-platform, cross-vendor, cross-API GPU abilities. You can use it for your custom engine in various programming languages like C++, Rust, C#, etc.

Still, I have never seen anyone use it for a real game or project. One guy on the project’s Discord server says he adopted this SDK in his company to create a voxel game or app, but he hasn’t shared any real screenshots or results yet.

Do you think something is wrong with Tellusim? Or does it just need more time to gain traction?


r/GraphicsProgramming • • 4d ago

Source Code Reverse-engineering macOS Liquid Glass into an independent Linux EGL/GLSL offscreen renderer (SDF unions, mip blur, and retargetable springs)

Post image
3 Upvotes

I have been working on an open-source offscreen glass renderer for Linux (written in Rust and Python with OpenGL 4.5 / GLSL shaders) that recreates macOS-style refractive glass effects, and I wanted to rewrite this in plain English to get some thoughts from the community.

At a high level, the host app gives the renderer the background image (like your wallpaper or desktop) and a list of glass shapes. The renderer blurs and bends that background through the shapes and returns the finished image.

Here is roughly how it works under the hood:

  1. Shaping and melting the glass: Instead of building 3D meshes on the CPU, the shader uses simple math functions (distance fields) to describe rounded rectangles and pills. A nice bonus of doing it with math is that two nearby shapes can smoothly melt into one another when they get close, without having to rebuild any geometry.

  2. Blurring the background without killing performance: Running a big blur directly on a full-resolution screen every frame is too slow on integrated GPUs. Instead, we shrink the background down step by step into smaller, blurrier copies and sample from those. The tricky part is that if you shrink too aggressively or sample across levels carelessly, you can get faint blocky or wavy patterns (what I meant earlier by artifacts) when things move behind the glass. Finding the sweet spot between smooth blur and low frame times is still a balancing act.

  3. Bending the light and edge highlights: Near the curved border of a shape, the shader shifts where it looks up pixels from the background, which creates that lens-like bending effect. It also shifts red, green, and blue slightly differently for subtle color fringes, and adds a bright rim highlight.

  4. Only updating what changed: When something small changes behind the glass (like a ticking clock or a moving cursor), the Rust side tries to only re-render that small rectangle. Since the glass bends light from nearby pixels, we have to expand that update box slightly so the refracted edges do not look cut off.

Questions I would love to hear your take on:

  • When you do blurred backgrounds behind UI elements on integrated GPUs, what approach gives you the cleanest look without hurting frame times?

  • If you do partial screen updates behind a refractive or blurred effect, how do you handle the extra margin around the dirty rectangle?

Source code if anyone wants to poke around the shaders: https://github.com/SaMaili/liquid-glass-renderer

AI disclosure: AI assistance was used to help draft and format this post (and rewritten here to cut down on the jargon).


r/GraphicsProgramming • • Feb 26 '25

#python

Post image
4 Upvotes

r/GraphicsProgramming • • May 03 '15

What's the difference between all these terms?

0 Upvotes

What's the difference between them - Physically based simulation, Physically based animation, Physical simulation for computer animation, Physically based animation for Computer graphics, Physically based modelling for interactive simulation and games and Cognitive modelling ?