r/gameenginedevs • • 8h ago

After building a 3D engine in Raylib mostly with AI, I realized I wasn't actually learning graphics programming — so I started writing my own OpenGL 3.3 Core library from scratch in C++20

Thumbnail
gallery
34 Upvotes

Hi everyone! I wanted to share a bit of my learning journey and get some feedback on my current project.

A while ago, I built a small 3D editor/engine using Raylib and ImGui (complete with gizmos, undo/redo, JSON scene serialization, and dynamic C++ script generation), but I relied heavily on AI to write most of it. When it was done, I realized that while it worked, I didn't truly understand how low-level rendering actually works under the hood — and that bothered me.

So I decided to take a step back and build openglforge-cpp completely on my own, from scratch, to genuinely learn modern C++20, CMake, and OpenGL 3.3 Core.

Since I had already experimented with code-gen in my previous project, the first thing I wrote by hand was a build-time CLI tool (shader_packer) hooked into CMake: it scans my .glsl folder on every build and packs all shaders into a generated_shaders.hpp header as inline constexpr const char* literals inside namespace glf::shaders.

What I've built so far on my own:

  • RAII Shader wrapper with compilation/linking error checks
  • Automatic build-time shader_packer CMake integration
  • Bundled GLAD (OpenGL 3.3 Core)

Next steps on my learning roadmap:

  • RAII wrappers for VBO, EBO, and VAO
  • Texture2D loader with stb_image
  • Framebuffer wrapper for off-screen rendering & ImGui viewports

GitHub repo: github.com/brick244/openglforge-cpp

Has anyone else gone through this "stepping back from high-level tools/AI to learn raw OpenGL" phase? Any advice on structuring VAO/VBO wrappers or improving my CMake setup is super welcome!


r/gameenginedevs • • 11h ago

I spent 2 years trying to bring open world games onto web natively,I m more then half way there

10 Upvotes

r/gameenginedevs • • 1h ago

We've been building our own game engine – here's a look at our latest lighting and sky experiments.

Thumbnail
gallery
8 Upvotes

We've been working on our own full-fledged game engine, and lately we've been spending quite a bit of time experimenting with the sky and lighting systems.

This is one of our recent experiments featuring an island surrounded by an ocean, cloud formations, and the Northern Lights.

We're still tweaking things and trying different approaches to atmospheric effects, sky rendering, lighting, and how everything comes together in a scene.

It's interesting seeing how much the overall atmosphere can change just by adjusting the lighting and sky.

We're curious to hear what other developers and 3D enthusiasts think.

What do you think of the results so far? Anything stand out that you would change or improve? We're open to honest feedback!

For anyone interested in following the occasional development updates, we're also on:

Facebook: https://www.facebook.com/people/Easy-Game-Creator/61597182654610/

Instagram: https://www.instagram.com/easygamecreator2027/


r/gameenginedevs • • 1h ago

13 years ago I ported my C++ game engine to linux and now...

Thumbnail
gallery
6 Upvotes

13 years ago my game engine (C++ / MFC for the editor and at the time DirectX) was not x-platform enough for my liking so I ported it to OpenGL and SDL. An old video (nothing special but it was the first time I got it running on linux) : https://youtu.be/k2pnrnjU2pg then (thankfully) life got in the way (job, kids). Things settled down and I picked it up again. The engine / game now has a little demo on steam at just 64 mb in size (owing to it being procgen based) : https://store.steampowered.com/app/2223480/Infinicity/ A more recent video: https://youtu.be/4a2LMN0bOjU For many of us there is no pot of gold at the end of this hobby it's all about the learning and journey. Hobbies have a great effect on long term health (and sometimes professional development) so it's okay to not be a rockstar and just enjoy it as a side-project. It doesn't matter how old or young you are if it's of interest just give it a go. Whether you choose to start from the bottom up (as I did as I had no choice, mostly books when I started) or from the top down (which is now AI) I don't doubt that many new comers will enter via AI but then will want to know more about what's being generated and will deep dive (hence top down) then give it a go. Just don't get too obsessed, balance! Hobbies are for filling the cracks of life. Life is about relationships (with people not AI).


r/gameenginedevs • • 5h ago

Game engine developing to help beginners etc

2 Upvotes

How would you simplify visual coding for complete beginners?

I'm developing a visual coding editor for my own game engine.

I've found that nesting blocks can become confusing, so I'm considering clearly labelled command blocks with the actual written code generated alongside them.

I'm also exploring whether connecting blocks would be more intuitive than nesting them.

I'd be interested to hear your thoughts on making visual coding more accessible without removing important programming concepts.


r/gameenginedevs • • 7h ago

Should I stick with OpenGL or switch to WebGPU if my end goal is building a game engine?

2 Upvotes

Hi everyone! I'm relatively new to graphics programming and I've just started learning OpenGL 3.3 Core in C++20. My ultimate goal is to build my own 3D game engine from scratch to understand how everything works under the hood.

Right now, I'm still at the fundamentals (shaders, VBOs, VAOs, and basic rendering), and I really like how direct OpenGL is for seeing things on screen quickly. However, I keep hearing that OpenGL is legacy and that WebGPU (via Dawn or wgpu) is a much better modern alternative—easier than Vulkan, cross-platform, and with modern concepts like compute shaders, command buffers, and explicit pipelines.

For those of you who have built engines or taught graphics programming:

  1. Would you recommend sticking with OpenGL until I finish a basic 3D renderer (lighting, model loading, framebuffers, shadows), or switching to WebGPU right now before building bad "OpenGL habits"?
  2. How steep is the jump from OpenGL to WebGPU in C++?

Any advice would be greatly appreciated!


r/gameenginedevs • • 5h ago

Castrum , a framework/engine I'm building on Ebitenengine, just had its biggest release and I'm both excited and overwhelmed.

0 Upvotes

I've been building Castrum for the past 5 months and its simultaneously been one of the most rewarding and frustrating experiences ever. I've been wholly guilty of accepting AI "suggestions" too much and its lead to me burning myself quite a few times. Working on weaning myself off being reliant on it but as someone who also programs professionally it's been difficult to stop the atrophy.

I'm going to be slowing down over the holidays and work on actually building something with the engine/framework (is it an engine if it uses another engine for its low level API?) but I'm happy its finally in a state where I feel comfortable sharing a bit more.

Documentation · Examples · Source

AI Use Disclosure:
AI assisted programming used when coding features (explicitly not "vibe coding").
No AI generated assets (Art, Sound, Music, etc) were used either in the development or in any of the examples/documentation. All asset use attributed in engine as much as possible.


r/gameenginedevs • • 5h ago

Is a 3D game engine in Forth possible?

Thumbnail reddit.com
0 Upvotes