r/GraphicsProgramming • u/pbcs8118 • Dec 12 '24
r/GraphicsProgramming • u/Edd996 • May 07 '26
I was trying to understand how u/FreyaHolmer’s Shapes library keeps line geometry so crisp at any distance, so I had Gemini explain it to me. Was not expecting this visualization
r/GraphicsProgramming • u/Rayterex • Feb 07 '26
Video A physics-driven image stippling tool
r/GraphicsProgramming • u/Andrew1139 • Jul 10 '25
Video just made my first triangle in directx11! was a lot of fun!
r/GraphicsProgramming • u/TomClabault • Oct 21 '24
Video Implementation of "Practical Multiple-Scattering Sheen Using Linearly Transformed Cosines" in my path tracer!
r/GraphicsProgramming • u/LegendaryMauricius • May 11 '25
A WIP experimental precise shadowmap technique
I'm working on an idea I had for some time, also similar (coincidence) to an old paper I discussed in this post. To prove there's still merit to old undiscovered ideas and that classic rasterizing isn't dead, I tried implementing it, calling it Edge alias adjusted shadow mapping (EAA). Obviously WIP, but since I made a big breakthrough today, I wanted to post how it looks :P
From first to last image: EAA shadow with linear fade, EAA without fade, bilinear filtering, nearest-neighbor filtering. All using the same shadow resolution.
The pros: it produces shadow edges following real 3D models without blocky artifacts from rasterizing. Supports nice shadows even on low resolutions. Can be used both for sharp shadows akin to stencil shadows, without the terrible fillrate hit, or softer well-shaped shadows with a penumbra of less than 1 pixel of the shadowmap's resolution (could have bigger penumbra with mipmapped shadowmaps).
The cons: it requires rendering the outer contour of the shadow mesh. Currently it's done by drawing a shifted wireframe after polygon drawing for shadowmaps, and it is quite finicky. Gets quite confused when inner polygon edges overlap with outer contours. Needs an additional texture target for the alias (currently Norm8 format). Requires some more complex math and sampling when doing the filtering.
I hope I'll be able to solve the artifacts by fixing rounding issues and edge rendering.
If my intuition is right, a similar idea could be used to anti-alias the final image, but I'm less experienced with AA.
r/GraphicsProgramming • u/UberSeal • May 06 '26
Source Code 3D software rasterizer in C
Hey all,
In light of my recent post on my Golang path tracer, I realized that I never really looked for any feedback for my other graphics project: a software rasterizer in C:
I lost motivation after some time developing it, but I got it to a place where it can render basic OBJs with interpolated vertex normals for colour, and some debug views for viewing wireframe and vertex normal directions.
I think a large part of my stopping the project is because the performance felt hopeless. Even for simple models with backface culling and clipping, the FPS drops when a large part of the screen is "taken up" by the models.
And then there's the architecture: I don't really know how to approach it. My `engine.c` file kind of represented most of the logic, but it feels messy.
Would love if you checked it out and gave any feedback!
r/GraphicsProgramming • u/Twenmod • Jan 12 '26
Video I created a cloud renderer based on Nubis, together with an article on how it works.
I created a voxel cloud raymarcher based on Guerrilla games' presentations about their Nubis renderer,
I wrote an article on how the techniques work and how to go about implementing them here
The code is also available here
Video is running on an 4060 laptop GPU
r/GraphicsProgramming • u/WW92030 • Oct 24 '25
Source Code I added BONE (armature, rig, skeleton, etc.) to my software renderer
r/GraphicsProgramming • u/Many-Sherbet7753 • Jan 27 '25
When you forget to apply normal maps
galleryr/GraphicsProgramming • u/rice_goblin • Mar 25 '26
Working on a software renderer in C, here's a video of the triangle clipping in action
I post about this on twitter: https://x.com/phee3D
code for this project: https://github.com/sameerahmed99/cgame
____________
Hello! I've been working on this since end of January 2026 and have implemented the following features:
- perspective projection
- gltf models importing (from blender's coordinates system only for now)
- triangle clipping and rasterization
- texture mapping
- depth fog
- vertex lighting (diffuse only at the moment)
and I'm now working on the asset system and 3d physics.
The goal is to make a simple 3D game first before moving on to a more ambitious project. The point of the first simple game is to help me identify all the features I need as well as performance bottlenecks.
You can follow me on twitter if you want to see updates on this project.
r/GraphicsProgramming • u/0x405 • Jun 30 '26
RAM optimized SDF-renderer with plain C
1024x1024x1024 SDF-grid takes up 303MB instead of 8.5GB. 1024x1024 path traced image renders in 1.5s on a single CPU core. 8.5GB grid renders in 1.1s. No libs used.
r/GraphicsProgramming • u/admtrv • May 16 '25
objcurses - ncurses 3d object viewer using ASCII
GitHub: https://github.com/admtrv/objcurses
Hey everyone! This project started out as a personal experiment in low-level graphics, but turned into a bit of a long-term journey. I originally began working on it quite a while ago, but had to put it on hold due to the complexity of the math involved - and because I was studying full-time at the same time.
objcurses is a minimalistic 3D viewer for .obj models that runs entirely in terminal. It renders models in real time using a retro ASCII approach, supports basic material colors from .mtl files, and simulates simple directional lighting.
The project is written from scratch in modern C++20 using ncurses, with no external graphic engines or frameworks - just raw math, geometry and classic C library for terminal interaction
Also I’d be happy to hear any feedback, and if you find the project interesting, a star on repo would mean a lot for me! It took quite a bit of time and effort to bring it to life.
At some point, I might also organize the notes I took during development and publish them as an article on my website - if I can find the time and energy :)
r/GraphicsProgramming • u/Slackluster • Dec 17 '24
Source Code City Ruins - Tiny Raycasting System with Destroyed City + Code
r/GraphicsProgramming • u/KRIS_KATUR • Apr 25 '25
My fully coded skull got selected as Shader of the Week on www.shadertoy.com — feeling super honoured and grateful 💀🖤🦴
So I’m beyond honoured that this was picked as Shader of the Week on Shadertoy.com 🖤
For those unfamiliar: Shadertoy is the brainchild of graphics grandmaster Inigo Quilez, and it’s become a legendary playground for creative coders and real-time graphics nerds. You write GLSL shaders directly in the browser, hit play, and boom - your code comes alive. It’s basically a sketchbook where math, code, and visual art collide.
The community is insanely talented, generous with knowledge, and always inspiring. I’ve learned so much just by scrolling through other people’s work and asking noob questions in the Shadertoy Discord ツ
The selected shader is part of my DULL SKULL series, where I sculpt forms purely through math and code — no meshes, no polygons, only Signed Distance Functions (SDFs) and ray marching inside a fragment shader.
You can check out the full shader code here:
🖤 https://www.shadertoy.com/view/DlyyWR
This work is not about realism or efficiency — it’s about exploring what’s possible when linear algebra and constructive solid geometry become creative tools. The real challenge (and fun) was to treat math like clay — blending basic geometric forms, playing with symmetry. It’s less about efficiency and more about exploring how it is possible to code a realtime animated skull.
r/GraphicsProgramming • u/SuboptimalEng • Dec 29 '24
WebGPU + TypeScript Slime Mold Simulation
r/GraphicsProgramming • u/KKV0918 • Jul 31 '26
I made a wetness system that works at the renderer level no material edits needed, works on any asset
r/GraphicsProgramming • u/MrRainbowSquidz11 • Mar 30 '25
My Portal inspired prototype in OpenGL
r/GraphicsProgramming • u/egehancry • Jul 16 '26
From Zero to Understanding Ray Tracing
Do you think a video like this could help someone with no graphics background intuitively understand ray tracing?
My goal is to explain the core idea visually before introducing any math or technical details. I could expand it with reflections, different materials, and arbitrary 3D objects.
Does this feel like it would "click" for a complete beginner? What would you add or change?
r/GraphicsProgramming • u/IlRsL • Oct 22 '24
Ray tracing in Neovim
Just a hobby work
width 28, height 20, spp 5, no accelerations
r/GraphicsProgramming • u/wangmerc • Feb 20 '26
GPU Zen 4 : Advanced Rendering Techniques is out!
The fourth volume of Advanced Rendering Techniques is out! Has anyone managed to grab a copy or pre-order it? Would love to hear what you think. I’ve been trying to buy the Kindle version from Amazon but no luck so far — the order just won’t go through.
r/GraphicsProgramming • u/Illustrious-Play8363 • Oct 13 '25
Interactive Rendering of the Moana Island Scene
https://github.com/mavenkim2/rt Rendered on an RTX 4070 with 8 GB VRAM. All unique geometry (-curves) and bottom level acceleration structures are stored on disk using the new NVIDIA mega geometry extensions. Ptex textures are streamed from disk using a similar system to this: https://www.yiningkarlli.com/projects/gpuptex.html
r/GraphicsProgramming • u/gabrieloc • Sep 19 '26
Article Divide by depth for instant 3D
Hi! I wrote a few notes on how 3D cameras work with interactive examples to hopefully demystify a pretty complex topic that I once struggled with. Maybe this is useful for someone here, and if not, there are fun sliders to play with!