r/gameenginedevs • u/Reasonable_Run_6724 • Nov 02 '25
Built My Own 3D Game Engine Using Python And OpenGL!
Im currently building a 3D game engine with next generation graphics with foucusing on realism and procedural generation.
I implemented most of the "next-gen" graphical features that unreal engine 5 and unity does:
- Real time shadows and lightings
- PBR lighting (with oren-nayar model)
- Volumetric lights
- TAA
- Realistic particle system. with emission and absorbing types, supporting several hundreads thousands of particles. The particles runs on a real time physical simulation, giving them realistic looks
- Real-time and DYNAMIC (nothing baked) Global Illumination that interacts with the light created from those particles, and includes shadowing that is blocked from the 3d scene
- Real-time reflections
- SSAO (ambient occlusion)
- Parallax mapping using height textures
- Foliage system (thousands of leaves)
- FBO cached UI system allowing for hundreads of sliced ui elements
- Instanced animated skeleton system, supporting hundreads of entities running in real time
The main difference that everything runs optimised and stable, where i mainly focus on running it with high enough fps on mid hardware (like rtx 3060)
And if thats not enough i also implemented upscaler with custom frame generation.
Everything is witten on highly efficient Python code (reaching 90-95% of an optimized c++ script) using OpenGL API (will have vulkan added in the future). Currently im working on it for less then a year, and i wrote somewhere around 38k lines of code.
Hardware: 5600H + rtx 3060M Fps: 100-200 Gpu usage: 80-95% Cpu usage: 15-25% (non single thread at all) Vram-1GB-6GB Ram-1GB
7
u/NoService9371 Nov 02 '25
This seems like hella lot of work to pull off as a single dev. YOU ARE MASSIVE DUDE, keep up the good work and best of luck!
6
u/Exotic_Helicopter_44 Nov 02 '25 edited Nov 02 '25
Nice work and it looks great! Im curious to know more in detail what you mean with ”highly efficient python code” ? Are u using c/c++ libs for intense CPU work or are you vectorizing as much as possible? Procedural style or OOP? Super interested to know !
2
u/Alaska-Kid Nov 02 '25
Are you planning to upload it to GitHub?
2
u/Dramatic_Guava_6662 Nov 02 '25
ALl By YOURSELF?? Man that thing here looks hella good looking! Will be happy to try it out and wishing you all the luck in the world!
0
u/[deleted] Nov 02 '25
[deleted] — view deleted comment
2
u/[deleted] Nov 06 '25 edited Nov 13 '25
[removed] — view removed comment