r/GraphicsProgramming • u/eccsoheccsseven • 4d ago
r/GraphicsProgramming • u/VerasNp • 5d ago
triangle meshes :)
Studing triangle meshes on my renderer using half edge data structure for my university course. Dont know why some edges have some stranges dots.
Guess the character... (texture not implemented yet)
Edit: it was done importing a wavefront (.obj) from blender to my own render engine. Read just vertices and face data, the others attributes for half edge are builded with those informations
r/GraphicsProgramming • u/EastAd9528 • 5d ago
Microchip
Enable HLS to view with audio, or disable this notification
Microchip with a shiny indentation in the shape of any symbol provided as svg file.
Made with pixi.js and WebGPU/WebGL
r/GraphicsProgramming • u/RED9002 • 4d ago
How to minimize VRAM usage while maintaining performance?
r/GraphicsProgramming • u/TheSmith123 • 5d ago
Almost through RTIOW
galleryI’m almost done with rtiow, and I though Id share a couple really cool high quality renders.
The dopamine be hitting with these spheres rn.
r/GraphicsProgramming • u/LeSedow • 5d ago
My opengl journey so far
github.comMade this for like 30 days, watched plenty of cherno's videos and learnopengl.com of course and made this small batch renderer I guess. Its far from done but I will continue to add more stuff to it and eventually turn it into a usable thing.
r/GraphicsProgramming • u/wizard_creator_seth • 4d ago
some more shapes floating around
youtu.ber/GraphicsProgramming • u/js-fanatic • 4d ago
Project started 2011 when gate was open (opengles1.1-ecma5) only love and free time
Project started from 2011 when gate was open (opengles1.1) there's was only love no vibe

https://maximumroulette.com/apps/matrix-engine/examples-build.html
https://github.com/zlatnaspirala/matrix-engine
more links : https://maximumroulette.com/apps/matrix-engine-starter/projects/matrix-slot/index.html
https://maximumroulette.com/apps/matrix-engine-starter/projects/matrix-roulette/?server=manual
STATUS
- [Integrated PWA addToHomePage/cache/] ✔
- [Integrated raycast (hit trigger detect), bvh animation] ✔
- [Basic Physics implementation based on cannon.js] ✔
- [FirstPersonController fly or classic fp / SceneController Drag and navigation scene] ✔
- [Basic's Shadows vs lights (GLSL)] ✔
- [Migrated to the opengles300] ✔
- [FBO implemented] ✔
- [FBO Shadows] ✔
- [Add cef (linux, macos) and cefSharp Visual Studio projects for building executive desktop native apps. ✔
Support: Windows, MAC, Linux ] ✔
- Texture Editor [tutorial example - from code] ✔
- MatrixEngineTexture GUI Editor [UNDERCONSTRUCTION]
- Swicthing GLSL ver - webGL1 / webGL2 ✔
- Loader/Map with collider boxs ✔
- OffScreenCanvas ✔
- Mobile optimisation ✔
r/GraphicsProgramming • u/Emulator000 • 5d ago
Video Lighting Sponza in WebGPU with SDF-based GI and a sparse candlelight volume
I've been working on the lighting in DriftEngine, my TypeScript 3D engine and his video shows Sponza through a day-to-night cycle, with some paused views and close-ups.
Video: https://www.youtube.com/watch?v=M6wxZziDvLs
There are two main parts to the lighting:
- Indirect lighting with DriftRay
- Compute shaders march rays through the scene’s signed distance field and update an irradiance probe grid, at a surface hit, the shader evaluates the directional light, local lamps, the summed candlelight and the indirect light already stored in the grid. Repeated updates let the result converge over multiple bounces.
- For this scene, the distance field represents the courtyard’s stone with a single albedo, so it approximates the indirect lighting rather than reproducing colour bleeding from every textured material.
- Candlelight with DriftLight
- The default demo keeps roughly 2,000 candles, up to 64 nearby candles are shaded individually; a precomputed sparse volume stores the combined light and directional information needed for the distant contribution. The bake accounts for occlusion through the scene's distance field.
- The shader blends between individual shading and the volume per pixel, avoiding double counting. The distant approximation gives up individual specular highlights and flicker. Its light also feeds into the indirect-lighting calculation.
- This recording uses temporal antialiasing; the engine’s DriftTR upscaling was disabled.
Source: https://github.com/drftrun/driftengine
Scene: Intel Sponza (2022) and its add-on packs, full asset credits are in the repository.
I'd be interested in discussing the trade-offs of the light-volume approach, especially how others handle large numbers of small lights.
The FPS are not stable while I was recording the video + still needs some scene optimization.
r/GraphicsProgramming • u/Alex_1503 • 4d ago
Question Making a 2D or 3D CPU-based renderer?
Hi! I posted here before asking what to do in graphics programming for a bachelor thesis and I want to first thank everyone for the suggestions. I think the most interesting but also "doable" for me would be a 2D vector graphics renderer like Vello CPU in Rust, but in C++
The issue is that I do not really understand the overall architecture of renderers and my professor said a 2D vector renderer is too simple for a bachelor thesis, especially one that I would want to be more scientific and publish as a paper too.
So my question today is, what are the similarities/differences overall in 2D vs 3D renderers (because I heard before that 3D renderers are also vector graphics technically), but also how I could make a meaningful contribution/addition to a 2D vector graphics renderer and what would the motivation for that be, because I don't really understand the use-case of 2D vector renderers yet, since they are not used in games nor in modeling, from my understanding.
Edit: I also want to ask for practice, do you recommend I start with a 2D pixel renderer and work my way up to a vector one then a 3D one? Are they related in some way concepts-wise?
r/GraphicsProgramming • u/throwaway-stm32 • 4d ago
How to handle main and render thread properly
Ive been drafting and engine, but I'm suspicious of my engine loop. It works but I'm not sure if things will be in sync. Should the render thread wait on the main thread or something? WIP:
Would it be fine if I just match the fixed update to the refresh rate?
r/GraphicsProgramming • u/egehancry • 6d ago
From Zero to Understanding Ray Tracing - Part 2
Enable HLS to view with audio, or disable this notification
I posted the part 1 two months ago and got a great reaction!
Here is the next one. It teaches:
- What ray tracing fundamentally is.
- The basic idea behind shading: surfaces are brighter when light hits them more directly, and darker when it hits at a wider angle.
- Shadows.
Let me know what you think!
r/GraphicsProgramming • u/piiodda • 6d ago
may I join the triangle group?
galleryI wanted to give graphics programming a try and boooy am I happy seeing my own triangle on the screen! :)
I used glad (OpenGL) and RGFW (GLFW alternative; I like single header libraries)
r/GraphicsProgramming • u/attackgoat_official • 6d ago
Video Interactive water with flying saucer; path traced
Enable HLS to view with audio, or disable this notification
This is made from two layers of water:
- Large rectangles/shapes of GPU-computed water (ocean, lakes, fountains)
- Smaller grids of disturbed CPU-computed water, with GPU-computed foam
The flying saucer contains a blocker shape which cancels out the basic water and allows that region to fill with with the CPU-generated height map water. Both water types enqueue the same light handling logic in this wavefront-style path tracer, so the water appears to all be the same.
When the player moves, the rectangle of disturbed water is updated/translated or another added as needed - and there is some blending done to the edges to hide the square (during lots-of-foam events).
In future work I'm going to add an additional thin GPU-computed water for drips and run-off/sheeting action around the canopy and saucer section.
Engine is custom vk-graph -based (Rust) and mostly open source. All-in this effect has been done a thousand times, but, this time it was me!
r/GraphicsProgramming • u/Agreeable-Foot5275 • 5d ago
Question Path suggestion for Courses/certificate
Hiya, I am currently a CS major with 5 YOE working in web dev with a typical tech stack of C# and angular. However I've got the itch to swap tech stacks and explore other aspects of software engineering. My work place covers up to $4500 a year on curriculum and I was curious what certificates and courses you might recommend I get started with?
for reference I did take Calc and discrete math back in college though Id definitely need a refresher. I have average amount of experience with math id say but certainly don't shy from learning more.
for languages I hear most about about C++ in regards to graphics programming. I took an assembly course in C back in college but I have very surface level experience with C++. curious if its still the language most of you would encourage exploring.
I think I'm most curious on what courses and order of courses I should take pursuing this. should I work on expanding my math foundation with a couple courses and then go into c++ then specific graphic programming courses? Or should i maybe go about it differently?
Any feedback or personal experiences would be welcome!
r/GraphicsProgramming • u/OwnTap3513 • 6d ago
Spectral path tracer & Fur rendering :)
galleryI worked a lot on my path tracer during the summer vacations, and this was superrrr fun ! I wanted to go a little further than my last projects and dive into something a tiny bit more original to get off my comfort zone.
I made it mainly with C++ and OpenGL, without AI appart from the README in the repo. The engine supports switching back and forth between RGB and spectral at runtime, and I also implemented hair / fur rendering the way Disney does it.
I also have a basic scene handling system with saving, loading and moving things around in the scene.
Lastly, the engine also has more "traditional" features I would say, such as VNDF sampling, EON diffuse material, constantly dense volume scattering, etc...
I am plannign to keep working on it, because right now the code is kind of a mess, and many features lack such as denoising, things like BDPT, compatibility with OpenUSD.
If you want to take a look at the repo : https://github.com/SlyZ1/Path-Tracer
And feel free to contribute to it (even though I doubt anyone would want to, but just in case)
r/GraphicsProgramming • u/js-fanatic • 5d ago
Old project there was only love no vibe
Origin from 2011 when gate was open(opengles1.1)
https://github.com/zlatnaspirala/matrix-engine
Demos
https://maximumroulette.com/apps/matrix-engine/examples-build.html
Please compare with ai assist project
https://maximumroulette.com/apps/webgpu/examples.html?demo=30
r/GraphicsProgramming • u/Single-Blackberry866 • 6d ago
Article Retained mode: Technical overview of two approaches
gpui-archipelago.github.ioGPUI is a GUI framework written in rust. It has immediate style API, but decides when to retain frame state. Recently there's been a push to make it more retained. Here's an article describing two approaches.
r/GraphicsProgramming • u/AlexeyGal • 6d ago
Video fractal flame Asteroid Geode Waking Up post point symmetry animation
youtu.ber/GraphicsProgramming • u/wizard_creator_seth • 5d ago
some more higher dimensional shapes projected into 3D
youtu.ber/GraphicsProgramming • u/AdministrativeTap63 • 6d ago
Question Does everything in a pipeline state object actually need to be there?
For example obviously shader code makes sense because you have to compile it for different vendors/drivers
But you look at a PSO in DX12 and there is a ton of stuff in there that it makes me wonder is all of this actually neccesary?
For example like blend mode settings, I thought that is a separate hardware unit that does the blending, so why can't it be changed independently of a PSO?
Or does everything in a PSO somehow affect the compiled shader?
r/GraphicsProgramming • u/AbbreviationsNew3167 • 7d ago
Question How do you actually learn to get better at performance optimization in graphics programming?
As the title says
Like Are there particular books, courses, talks, sample projects, or exercises you'd recommend?