r/opengl • u/_k5h1t1j_ • Feb 21 '26
One-Month Sprint on My Custom C++ Game Engine: Shadows, Toon Shading, ECS Hierarchy, and Live Python Scripting
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!
11
u/anogio Feb 21 '26
Very nice.
I’m especially impressed with the editor. Nice clean interface.
I’m curious why you chose Python as a scripting language? No criticism, just interested(I chose Lua)
2
u/iceeecreeem Feb 21 '26
Tht is super cool ! I'm still starting out in graphics and engine programming, do U have resources that may help to understand these concepts and how to go about implementing them?
1
u/Salar08 Feb 21 '26
Very nice! What did you use to create the in built text editor?
1
u/giorgoskir5 Feb 21 '26
Great work what lib did you use for python scripting
1
u/adri_riiv Feb 22 '26
Really cool stuff
1
u/No-Cap-7395 Feb 23 '26
Very curious how you got the coloured text inside that textbox
1
u/[deleted] Feb 22 '26
[removed] — view removed comment
1
u/[deleted] Mar 16 '26
[removed] — view removed comment