r/GraphicsProgramming • u/GatixDev • May 13 '26
r/GraphicsProgramming • u/riotron1 • Apr 08 '25
Path traced Cornell Box in Rust
I rewrote my CPU path tracing renderer in Rust this weekend. Last week I posted my first ray tracer made in C and I got made fun of :(( because I couldn't render quads, so I added that to this one.
I switched to Rust because I can write it a lot faster and I want to start experimenting with BVHs and denoising algorithms. I have messed around a little bit with both already, bounding volume hierarchies seem pretty simple to implement (basic ones, at least) but I haven't been able to find a satisfactory denoising algorithm yet. Additionally, there is surprisingly sparse information available about the popular/efficient algorithms for this.
If anyone has any advice, resources, or anything else regarding denoising please send them my way. I am trying to get everything sorted out with these demo CPU tracers because I am really not very confident writing GLSL and I don't want to have to try learning on the fly when I go to implement this into my actual hardware renderer.
r/GraphicsProgramming • u/iwoplaza • Jan 03 '25
After all, JavaScript IS the most "beloved" language 💥🥊
r/GraphicsProgramming • u/ai_happy • Dec 26 '24
Video Added "3D to UV warping visualization" into my free AI-texturing tool StableProjectorz
r/GraphicsProgramming • u/FractalWorlds303 • Oct 06 '25
Fractal Worlds: raymarched fractal “Xastrodu” (WebGPU)
👉 fractalworlds.io
New fractal formula Xastrodu added to the project. WebGPU raymarching + smoother mouse look controls.
r/GraphicsProgramming
•
u/Nice-Sand-3230
•
Jun 03 '26
Video Fluid simulation with ray marching rendering running at 70k particles in REAL-TIME.
open to building custom simulations for games or projects - DM me if you interested
r/GraphicsProgramming • u/[deleted] • May 04 '25
My First Triangle Using Metal!
Wooo! Thanks to how much easier it is to create a Triangle in Metal instead of Vulkan, I got this done in about 3 hours. Feels good. I'm using 'metal-cpp' but wondering if I should just use Swift instead? Does it even matter much?
Any tips for what I should get working on next? Only about three weeks into this Computer Graphics journey. Completed my first Ray Tracer in C++ and currently working on my second one, less hand holding this time. Been itching to start messing with Graphics APIs though so decided to just bite the bullet and go with Metal. I don't have a PC, only a macbook and with my research everyone says Vulkan is the way to go for industry standard. Can't afford a good enough PC for that right now though so going this route until then haha.
r/GraphicsProgramming • u/ParrleyQuinn • Feb 16 '25
Created a C++ Raytracer.
Mainly i just want to show it off cause I am super proud of it. Also any input on the code would be appreciated.
r/GraphicsProgramming • u/tamat • Dec 04 '23
I hate current state of GPU APIs
Sorry for the rambling but here is my story:
I teach Computer Graphics at the University. For many years I've been using my own OpenGL framework to teach my students the basics of 3D graphics, from meshes/shaders/textures to more complex things (SSAO,PBR,Irradiance Cache, etc).
I provide them with a repo that is small and contains a working project for windows, mac and linux (using SDL). No need to cmake, just contains a VisualStudio, XCode and Makefile project, plus the required libraries so it is straight forward to start. No need to download anything else.
But OpenGL is too old, and I want to teach other stuff like Indirect Rendering, Computer Shaders or Hardware Raytracing for which OpenGL is not the best option (or just not supported).
So time to migrate, but to where?
Vulkan is too hard for my students, and it wont work in OSX (I will have to use MoltenVK which makes the project way more complex).
WebGPU: The API feels nice but I need an implementation and just compiling the Dawn project is several Gigabytes in size, it is a monster with all the backends.
Sokol or BGFX: These wrappers are nice and lightweight, but then Im teaching an abstraction layer that it very random and dont support all features.
So anyway, how will you create a very lightweight multiplatform project for 3D rendering using a modern API that is selfcontained?
Thanks
r/GraphicsProgramming • u/evvvvil • May 18 '21
BREAKDOWN of Winning shader at Outline 2021 Shader Showdown
r/GraphicsProgramming • u/druv-codes • Sep 22 '26
How I Built My Very First Graphics Engine in 1 Year
So, over the last 365 days, I have been building my own custom 3D graphics engine ("Pyre") from scratch using C++20 and Modern OpenGL while reading the learnopengl book. It's been a massive learning journey going from a blank screen with a single colored triangle to a full Physically Based Rendering pipeline. I have added every feature listed in the book and some features which I felt were necessary for cool scenes such as SSBO, Imgui and dynamic batching.
Shadows were arguably the biggest headache, I eventually upgraded to Cascaded Shadow Maps (CSM) to eliminate pixelated shadows, The engine currently supports both deferred and forward rendering modes with bloom, ssao, pbr, normal mapping, parallax mapping, instancing etc.
I documented this entire 1 year process, the underlying math, the engine architecture shifts, and the bugs along the way in a 17 minute technical devlog here: https://youtu.be/m26BKeQwAPU
The engine is completely open-source. If anyone wants to poke around the implementation, the repo is here:https://github.com/Open-Source-Chandigarh/pyre/tree/dev
I'm currently deciding what to tackle next for year two, I'm thinking of making the entire engine again but this time using Vulkan and a much cleaner codebase, I would love to hear some feedback! Thanks!
r/GraphicsProgramming • u/Typical-Oven-8578 • Aug 21 '25
first graphics project!
after i finished chapters 1 and 2 of learnopengl and some parts of thecherno's youtube series i made this. it was fun and i'm hoping to dive deeper into graphics. if you have any tips/advice please lmk :)
this is the repo for the project: github
r/GraphicsProgramming • u/etherbound-dev • Apr 19 '25
My first triangle in SDL_gpu!!
I've gotten a triangle to show up before in OpenGL but switching to SDL_gpu was quite the leap. I'm feeling modern!!
In case anyone is interested in the code I uploaded it to github here:
r/GraphicsProgramming • u/ruinekowo • Dec 17 '25
Question How are clean, stable anime style outlines like this typically implemented
I’m trying to understand how games like Neverness to Everness achieve such clean and stable character outlines.
I’ve experimented with common approaches such as inverted hull and screen-space post-process outlines, but both tend to show issues: inverted hull breaks on thin geometry, while post-process outlines often produce artifacts depending on camera angle or distance.
From this video, the result looks closer to a screen-space solution, yet the outlines remain very consistent across different views, which is what I find interesting.
I’m currently implementing this in Unreal Engine, but I’m mainly interested in the underlying graphics programming techniques rather than engine-specific tricks. Any insights, papers, or references would be greatly appreciated.
r/GraphicsProgramming • u/TermerAlexander • Nov 22 '24
Finally got shadow maps working with Vulkan.
r/GraphicsProgramming • u/Far_Meeting_2763 • Jul 31 '26
Real-time CPU Black Hole Ray Tracer in C++ and Raylib
Hey everyone! I built a real-time simulation of gravitational lensing around a Schwarzschild black hole from scratch in C++ using Raylib.
Instead of writing GPU shaders, I wanted to build a CPU software renderer to see how far I could push numerical integration on a single thread. It traces around 30,000 light rays per frame to bend light around the singularity and accretion disk.
• Integrates geodesic light paths directly on the CPU.
• Renders to an internal 200x150 pixel buffer to maintain 60 FPS.
• Bilinearly upscales the buffer to 800x600 using Raylib for display.
Repo & code: https://github.com/hellosharma808-sys/3D-Black-Hole
r/GraphicsProgramming • u/sergeant_bigbird • Mar 26 '25
Video I wrote my own lighting engine for my falling-sand plant game!
r/GraphicsProgramming • u/MartianovTech • Jul 20 '26
Experiments with software rendering
After replaying HL1 on the software renderer (old habit), I got curious what CPUs can actually do today. So I wrote a rasterizer in C11 - pure CPU, no GPU/GL, the finished frame just gets blitted to the window via GDI. Tested on a Ryzen 5900x processor
I've been experimenting with software rendering and managed to run the Sponza scene at FHD 10-30 fps single-threaded, up to 200 fps multithreaded :) A very strong emphasis on SoA + SIMD (AVX2/FMA) on the hot path. Rendering 64x64 tiles in multithreaded mode. Throughout the entire rendering pipeline, I try to discard any possible work as early as possible, including frustum culling and back-face culling. This may be controversial, but I render in front-to-back mode; it allows me to completely bypass overdraw. To make it look more interesting, I added some effects!
It might not be very fast for a single thread, but I think it could be made a little faster by disabling mips and filtering nearby textures, which I also do on the CPU in this demo. Pixel textures are cheaper to draw, but they're ugly.
I'm not a professional and I just like it, so I didn't hesitate to use chatpgt as a companion in learning graphics.
r/GraphicsProgramming • u/imadr_ • Mar 03 '26
Article Physically based rendering from first principles
r/GraphicsProgramming • u/MangoButtermilch • Aug 28 '24
Video Finally figured out how to do GPU frustum culling (Github source)
r/GraphicsProgramming • u/AuspiciousCracker • Feb 25 '26
Slow-motion light simulation in C/Vulkan!
This was rendered with my hardware accelerated path tracer, in C using Vulkan (raytracing pipeline). There's still a ton more I'm planning to add, but this light timing was something I wanted to play around with. You can find the code here: https://github.com/tylertms/vkrt. Just tick the light animation checkbox, set the parameters and hit render. This scene has a decent amount of volumetric fog to aid with the visuals.
r/GraphicsProgramming • u/misaki_eku • Sep 16 '26
10k instances, 144k tris each (1.44B raw tris), running at 700+ fps!
Hey everyone, just wanted to share a milestone from my custom D3D12 engine! Testing a stress scene with 10,000 instances of high-poly Stanford bunnies (144k triangles each, totaling ~1.44 billion raw triangles). Running in an unmanaged C# backend at 700+ FPS (~1.3 - 1.4ms frame time) on a 2K viewport with ~74% GPU utilization. A few architectural details:
Pipeline: Fully GPU-driven rendering pipeline built on top of the new D3D12 Work Graphs API, feeding into Mesh Shaders and fetching data using bindless.
Hierarchical LOD DAG: Dual-error screen-space metric (cluster error vs. parent error) evaluated on-chip to dynamically cut LOD levels without CPU involvement.
Two-Phase Culling: Coarse 6-plane frustum test on bounding spheres -> Work Graph hierarchical DAG traversal -> coalesced fine cluster culling with wave compaction -> two pass Hierarchical Z-Buffer (HZB) occlusion culling.
Zero-Allocation Runtime: 100% unmanaged memory chunks and custom memory allocators on the CPU side for resource management to keep syscalls and WDDM paging queue interference at literally zero.