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!
8
u/OkStatement9823 Sep 22 '26
this seems a very complete engine and it looks very good congrats
3
u/Le_9k_Redditor Sep 22 '26
Very good looking reflections!
1
u/scroy Sep 26 '26
Nice work. What did you use to produce the devlog video? Especially the 2-D animations
1
u/puredotaplayer Sep 22 '26
you should be proud! congrats
0
u/Ra_M2005 Sep 22 '26
Nice dude, I talked to you a year ago especially in Discord, for learning OpenGL (Although, I stopped doing that as I lost the motivation, I'll do it after some time, did made the render), great progress dude :D
1
u/ziplock9000 Sep 22 '26
What UI library did you use? I see a lot of projects use exactly the same one with even the same sizes and colours.
-1
u/BandAny2285 Sep 22 '26
ray tracing/path tracing could be a good next topic
-1
u/BingoBongoVrn Oct 05 '26
say honestly, you told claude to look at learnopengl materials and make engine
-7
u/Icy-Collection1072 Sep 22 '26
Ai
-12
u/VictoryMotel Sep 22 '26
This is all AI slop, it's 300,000 lines all committed at once, the exact structure of every other AI program, wrappers, boilerplate, low karma name hunting for stars.
Do you think this person made 49 repositories themselves?
Then they package it up like a clickbait youtube video just for a few niche subreddits.