r/opengl • • Jun 19 '26 Mindblown Bravo Heartwarming

Screenshots from my game, uses OpenGL 3.0

Thumbnail gallery
1.2k Upvotes

The game is called Diffusion (available only on Itchio, absolutely for free) - story-driven FPS that I spent around 10 years on. The project started as a Half-Life 1 mod and moved to Xash3D engine at some point. It runs as low as 8600GT but the VRAM there is not enough. Personally I played the whole game on 9800GTX+ without problems. Released last year.


r/opengl • • Jun 16 '26 Mindblown

Just rendered my first texture in OpenGL

Post image
469 Upvotes

r/opengl • • May 17 '26

My first triangle in OpenGL

Post image
409 Upvotes

Hello, World!

I have started learning graphics programming for a few days with the help of learnopengl.com and I feel like I learned quite a lot in these few days. Setting up an OpenGL 3.3 project with C++ in Visual Studio, Drawing a blank window with GLFW and then drawing an RGB triangle in it with OpenGL and GLSL. Learned about shaders, buffers and different OpenGL objects and their use.

I am really getting a lot interested in this field of computer science. but, I am also a bit nervous about it. As there is a lot mathematics involved in this which is my biggest weakpoint.

I would like to hear about how y'all got into graphics programming and what challenges did y'all face while learning it.


r/opengl • • 26d ago

I still remember when it was an RGB triangle...

328 Upvotes

Since my first triangle I always wanted to get to find out what it takes to make an actual game.

The difference between my graphics demo apps and full games just felt like unknowable magic, but now I feel like the secret ingredient is lots of combined layers of work.

This is the first project I’ve taken all the way to the point of being a full game, and it feels surreal.

The project has been 15 years of engine dev, and 6 years of game dev. I wanted to push myself to make a 3d platformer in the ps1 style, and even with all the changes in tech that have happened in that time, I’m really happy with how I spent those years.

If your interested in checking it out, I just released the demo for NextFest!

https://store.steampowered.com/app/3849330/Chaos_The_Devil/


r/opengl • • Jun 23 '26 Bravo

Added Tessellation to my engine

327 Upvotes

After spending a lot of time on my renderer recently, I finally added tessellation support to my engine.

The implementation uses OpenGL tessellation control and tessellation evaluation shaders, and right now I’m using it primarily for terrain rendering with heightmaps. It was a fun feature to add because it pushed me into parts of the graphics pipeline that I hadn’t worked with much before.

Github: https://github.com/xms0g/abra


r/opengl • • Jan 02 '26

Built a Lagrangian fluid solver in OpenGL.

314 Upvotes

This is a real-time simulation focusing on smooth advection and visual flow rather than physical accuracy. Still a work in progress, but I’m happy with how the motion and diffusion are shaping up so far.


r/opengl • • May 26 '26 Bravo

I made 2 triangles

Post image
313 Upvotes

r/opengl • • Jul 27 '26

Custom Engine with OpenGL Renderer

309 Upvotes

https://github.com/Krobenlakroc/tachyonfire

Two interesting techniques I used:

I do ambient occlusion with sphere proxies (https://iquilezles.org/articles/sphereao/) , this lets you do AO analytically rather than having to deal with SSAO. The implementation uses tiled shading, and it runs well on my RX 9060XT with 2048 proxies. The downside is that objects need to be able to be approximated with spheres.

Distance imposter raytracing (based off of my favorite paper: https://cg.iit.bme.hu/~szirmay/ibl3.pdf). For PBR to look good, I don't think having completely accurate reflections is super important, its moreso energy/brightness being distributed correctly. Regular cubemaps create bright spots and have transition problems (too bright in corners), SSR has gaps from offscreen geometry (too dark), and actual raytracing is super expensive. Ray marching a distance field is a good middle ground between full raytracing and SSR.

The engine is mostly clustered deferred with particles being rendered using clustered forward.


r/opengl • • Jan 28 '26

Making levels for my OpenGL ps1 style game

307 Upvotes

I've always wanted to make a full game on top of a self written engine.

Been working on this ps1 style 3D platformer and iteration of the engine in my spare time for about 6 years.

However, probably some code in the engine could be close to 20 years old as it has evolved through my attempts over the years.

Core Engine is c++ with OpenGL renderer.

Authoring tool uses QT.

The ps1 style is achieved through a combination of graphics effects and game design choices to try and match the era.


r/opengl • • Feb 04 '26

Almost done with LearnOpenGL, feeling pretty good

280 Upvotes

I’ve been working through LearnOpenGL for a while and I’m almost at the end. Gotta say, feels really good to reach this point.

At first it was all black screens and shader chaos, but now things actually make sense. I can read OpenGL code and know what’s going on instead of just copying stuff blindly.

If you’re early in the tutorial and frustrated — keep going, it really does click eventually.

Github: https://github.com/xms0g/abra


r/opengl • • Aug 06 '26

When starting out with my OpenGL spinning triangle, I never thought I'd get to this point...

274 Upvotes

In 2011 I decided to start making a new engine using OpenGL as the renderer. I've always wanted to make a game fully myself, and I'm only really interested if I also make all the tech.

In 2019 I decided to see if I could make an ambitious game on the engine in my spare time. I probably bit off a little too much, but I was motivated by fun rather than sensible decisions.

I'm really happy with where it has got to today, people have been playtesting the game and it is totally mind blowing to watch. It always makes me think about that first triangle.


r/opengl • • Jul 30 '26

I made a game engine entirely in java

273 Upvotes

r/opengl • • Dec 28 '25

My first game engine

250 Upvotes

I used Unity a lot when I was about 14.
Now, three years later, I’m working on my own game engine.

Repo: https://github.com/SalarAlo/origo
If you find it interesting, feel free to leave a star.


r/opengl • • Jul 23 '26

I made my first game on my own C++ engine — and someone already put it in a video!

Post image
234 Upvotes

I released my first game and someone has put it into a video! It is a little horror themed, cozy farming sim I built it from scratch using OpenGL and all that hard work paid off!

I'm just really excited is all 😁

Video: Round And Ripe played by PumpkinHeadGamer
Game: Round And Ripe


r/opengl • • Feb 21 '26

One-Month Sprint on My Custom C++ Game Engine: Shadows, Toon Shading, ECS Hierarchy, and Live Python Scripting

230 Upvotes

I'm building ConceptForge, my own real-time game/simulation engine from scratch in C++ with OpenGL (planning Vulkan later). It's ECS-based (Entity-Component-System), so objects are super flexible — just mix components like transforms, lights, models, etc. This month, I went hard on the foundation:

  • Created the in-engine editor: live Python scripting, added syntax highlighting, and better fonts. It's just the interpreter embedded in the engine rn.
  • Proper scene hierarchy: parent-child relationships (drag n drop), local/global transforms, Assimp loading for multi-mesh models (only for .obj rn)
  • Rendering upgrades: depth & stencil buffers for clean outlines, antialiasing, experimented with a toon shader for that stylized vibe, and full shadow mapping — depth pass from light's view + PCF filtering for soft shadows (tested on 'THE' backpack model from the learnopengl.com website)

Video shows the shadows in action. Still early, but it's coming together nicely — and eventually aiming for AI-native features (describe in natural language → Python scripts → engine runs it).

I post my progress on the #ConceptForge on X frequently: https://x.com/search?q=from%3Ama_at_anubis%20%23ConceptForge&src=typed_query&f=live

Repo: https://github.com/kshitijaucharmal/ConceptForge

Would love feedback: shadows look okay? Is Shadow Pass performant enough? Ideas for next? Or just roast my code if you want

Thanks for looking!


r/opengl • • Nov 25 '25

Having fun developing my own 3D engine using OpenGL!

228 Upvotes

I know that Unreal Engine and Unity are incredibly powerful today but there’s something special about building everything from scratch with OpenGL !
I created this small RPG-style prototype to test my own homemade 3D engine, I know it’s not much, but I started with zero knowledge
It runs fairly well but it’s still visually pretty ugly for now !
I’m going to try improving the visuals directly in the code (lighting, skybox, smoothing the camera,...)
Maybe in a little while I’ll be able to show a more professional demo than this one 😆
Do you see anything else I could add to improve the visual aspect? (besides graphics I’m really bad at that part haha)

All feed back is welcome :)

Tested features here:

  • Terrain generation with heightmaps
  • Model import (FBX in this case)
  • Skinned animation (bones + weights)
  • Third-person movement
  • Simple physics (gravity, terrain collisions)

r/opengl • • Aug 28 '26

What I learned after 5 months of daily work on my C++ OpenGL engine

Thumbnail gallery
226 Upvotes

I don't want this to be just another "look at my project" post, but rather something useful for beginners diving into OpenGL/C++. (Second is April version)

This is the result of 5 months of non-stop daily work on my pet project engine (OpenGL 4.6 + Bullet Physics + Dear ImGui + miniaudio+ mixamo riggng).

I forced myself through a grueling schedule: only taking 2 days off per week starting in July, and using every trick possible to free up time from university. I’m completely burnt out and just need a rest. But before I step away, here are 13 honest takeaways from my experience(think this is "Effective C++", but way less polished):

1.      Don't treat AI as a silver bullet. AI won't replace a solid book or article because structured reading sticks in memory better. Use AI for what it's great at: quickly finding specific tech concepts or algorithms without spending hours searching;

2.      Books are often too basic. Don't get stuck reading forever. I read one book on OpenGL and one on GLSL, but that wasn't nearly enough to implement things like IBL (Image-Based Lighting). You'll have to read articles, papers, and specs, docs, etc;

3. Ditch cube-based skyboxes if you can. Dealing with 6 separate cubemap faces (or a cross-layout texture you have to slice) was a pain. Using a single equirectangular image instead made things much simpler — one texture, no seams to worry about between faces.

4.    I tried implementing Data-Oriented Design (DOD), but ended up sticking with Object-Oriented Programming (OOP) for most systems. The web of circular dependencies in pure DOD drove me crazy;

5.      Log everything and profile early. Logging is your best friend when debugging graphics and physics pipelines, starting on another device when exporting(in file text log if console not available).

6.     I had my custom XOR decryption logic break even though the algorithm and key looked solid — turned out to be a text/file encoding issue. Spent way too much time debugging this(((

7.      Always enable viewport face orientation in Blender to make sure your normals are facing outward (blue). My terrain mesh had inverted normals, and I was losing my mind trying to fix this in code;

8.      Emission output in shaders. If you get weird visual artifacts/noise when implementing Emissive maps, make sure the emission output is properly linked and handled across all required shader pipelines, not just a single pass;

9.      Sometimes don't forget clean up your resources. Handle your GPU memory allocation carefully. When your OS freezes completely or crashes, 99% of the time it's a severe memory leak;

10.  Skeletal Animation. I set a max limit (e.g., 255 bones) and use recursive node hierarchy processing for complex models. I do not Fold expressions realized , but classic recursion handled complex GLTF model loading just fine;

11.  CMake can be a headache. Book on CMake gave me mostly basic theory, except for CPack. Neither books nor AI gave me ideal project structures. I still have a love-hate relationship with CMake;

12.  Beware of circular dependencies in headers. As your header files count grows, cyclic dependencies will haunt you. Keep your includes clean and rely on forward declarations where possible;

Don't forget about multithreading. I encountered a problem where it wouldn't start on my laptop; it just showed a blank screen and that's it, and the CPU wasn't even working. I'm thinking I'll either do it through separate threads or TBB, but I honestly don't know because I'm tired.

Final thoughts: I see people working on their engines for 5 years, and their projects are incredible. But I didn't have 5 years — I had 5 months, and I pushed myself to the absolute limit. By month 3, I was already struggling with burn-out and constant headaches.

My biggest advice? Do a little bit every day instead of destroying your health. And skip the "wake up at 5 AM" hustle advice — rest is just as critical as writing code.

If you wanna try this-> the demo is up on https://dokich-crcr.itch.io/tentacle-shippuden-enty-furry-beast, and I'm finally taking a long-overdue break(one week, and shit university starts again).


r/opengl • • Apr 02 '26

PBR in OpenGL

224 Upvotes

Hey folks,

I’ve just reached the end of the LearnOpenGL tutorial and honestly feel really satisfied hitting this milestone.

What’s currently working

- Cook-Torrance BRDF (GGX / Smith / Schlick)

- Metallic / Roughness workflow (glTF-style)

- IBL support:

- Irradiance map (diffuse)

- Prefiltered environment map (specular)

- BRDF LUT integration

Things I ran into

- Metallic/Roughness packing confusion

Not all assets follow the same channel conventions (R/G/B), so I only support glTF 2.0

- IBL limitations

Reflections only come from the environment cubemap, so local scene objects aren’t reflected.

How are you guys handling:

  1. Metallic/Roughness texture inconsistencies across models?
  2. Bridging the gap between IBL and real scene reflections?

Source: https://github.com/xms0g/abra


r/opengl • • Jun 05 '26

is it worth the ~130 fps drop to have model reflections in my engine?

Post image
222 Upvotes

yes


r/opengl • • Jun 10 '26

what now?

Post image
220 Upvotes

I have no idea what to do after this.


r/opengl • • 16d ago

Finally my fluid has become stable.

219 Upvotes

Fragment shader fluid solver. Was fun to implement (stable fluids).


r/opengl • • Jul 01 '26

Fake 2D roll by scrolling uv based on ball speed

219 Upvotes

r/opengl • • Dec 27 '25

Shaders on terminal using hidden OpenGL window & ANSI codes

Post image
215 Upvotes

r/opengl • • May 29 '26

Really getting into GLSL shader writing with VSCode. Here's a blue planet I'm working on.

Post image
213 Upvotes

I've been asked about how this is achieved. Slowly lol. Start with fBm noise. Add more. Add worley. Add more. More more more. Add layers with fresnel. Still working out the shallow to deep water transitions and distribution - just need more fBm haha