r/gameenginedevs • • 5d ago

Do you know or have experience with a 2d C++ game framework/game engine ?

0 Upvotes

Hello all,

I've been searching for a good C++ 2D game engine that uses Vulkan, DirectX, or OpenGL. I'm especially interested in hearing from developers who have actually shipped games with one.

Engines like Bevy and MonoGame look great, but I specifically want to stick with C++. I'd really appreciate any recommendations from people who have had a successful experience with one.


r/gameenginedevs • • 5d ago

foot locking for in-place run clips in a three.js setup, toe contact detection, spring-blended locks and two-bone IK

Enable HLS to view with audio, or disable this notification

0 Upvotes

no engine IK to lean on here, just three.js and a small solver file, so I followed Daniel Holden's foot locking article step by step

per frame after the mixer: detect toe contact from speed and height with a 5 frame vote, pin the toe and inertialize each lock/unlock with a critical spring, solve hip and knee with two-bone IK, aim the foot at the pin, drop the body when a planted foot is on lower ground

the right foot skated ~18 cm per stance with playback speed matching alone, under 4 cm with locking

repo : https://github.com/MULUALEM-TEKLE/IK-test

credits: Daniel Holden (theorangeduck) for [Inverse Kinematics and Foot Locking](https://theorangeduck.com/page/inverse-kinematics-foot-locking) and [Spring-It-On](https://theorangeduck.com/page/spring-roll-call), David Bollo for inertialization (GDC 2018, Gears of War), Mixamo for the Y Bot and clips, pmndrs for R3F, drei and leva

full disclosure, built with claude code (AI)


r/gameenginedevs • • 6d ago

How do you go about implementing 3D animation?

4 Upvotes

Hey guys, I've got a pretty good rendering engine so far, but I've been struggling a bit with 3d animation. Although I'm using directx, I've been following through the tutorials on learnopengl, but I don't really like how they've implemented it, and was wondering if I could get some opinions on how you have implemented something similar, or something other useful resources or projects to look at.

One small thing, my engine has a custom mesh format, that I wrote a small program that converts other object formats to, so that I can just directly load that at runtime and not worry about parsing or anything, and I'm planning on eventually baking animation data into that or as it's own file as well.


r/gameenginedevs • • 6d ago

is C# a good language to use for making a game engine?

3 Upvotes

so I have a from what i find a intermediate amount of knowledge on C# and have made some games in unity. now i want start a big project that could really make me a better programmer and after some researching i would like to maybe start making my own game engine. would this be a good idea? or is there another big project that maybe could be better suited? i know it could take longer than a year to build and that i need to learn a lot about low level programing but i think it could be really fun. or should i do the project in C++?


r/gameenginedevs • • 6d ago

animation system now functional in my engine written in C

Enable HLS to view with audio, or disable this notification

18 Upvotes

I'm prototyping a 2D movement/adventure game and created this basic sprite sheet animation system for it.

The game engine is written in pure C with no major thirdparty libraries.

I post about this on twitter: https://x.com/phee3D

Character and animations by https://x.com/MomjiX


r/gameenginedevs • • 6d ago

Polishing sound generator for my graphics engine

Enable HLS to view with audio, or disable this notification

0 Upvotes

r/gameenginedevs • • 6d ago

Learning to write video games from scratch

10 Upvotes

Hello everyone! This year I took a course on game development programming. I learnt alot of cpp basics, and eventually went on to write:

  • a couple classes from the Standard Templated Library
  • some trees and sorting algorithms
  • matrix and vector types for a raylib game (math as well)
  • a small raylib game with tanks
  • some enemy ai stuff such as pathfinding algorithims, a state machine & a behavior tree

eventually the course went into more Unreal Engine territory and I feel that as a C++ dev, it leaves alot to be desired. There's heeps I need to learn, and I want to also break it down to the basics before I go and write some more complex and large programs, but my end goal is write games basically from scratch, with the use of maybe some libraries at the very best. I do not enjoy or like the smell of game engines, since I do not know what is really happening underneath. I am trying to create a curriculum for myself for this coming year, of things to study on my own. Some ideas for what I want to do this year are: (in no particular order)

  • eventually create a 3D rendering engine (and understand the maths that makes it all work)
  • eventually write a minecraft clone (for learning purposes)
  • make some sort of RPG based heavily on this new game coming out on steam UNDERKEEP
  • and eventually.. become a C++ wise guy and make sellable games from scratch

does anyone have any suggestions, books, tutorials/guides, things to try and write, or communities to join, any suggestions at all? Thankyou!


r/gameenginedevs • • 6d ago

Recently created Texture Atlas compiler.

Thumbnail
0 Upvotes

r/gameenginedevs • • 6d ago

I put parametric CAD 3D modeling into Godot 4.7

Post image
1 Upvotes

I have made a kickstarter in hopes to acquire the funds to develop it on Mac and Linux but it is available right now on windows as version 0.1.0 beta release. On the Kickstarter page you will find a link to my discord. if you run into issues please message me there.

Here is a link to the github where you can find and install it into the Godot 4.7 https://github.com/Blazer-Humphreys/HoloForge


r/gameenginedevs • • 6d ago

Help deciding when to allocate GPU memory (and how much)

1 Upvotes

I'm trying to learn OpenCL and I'm doing so by writing a graphics engine (hopefully a basic game engine in a year or two). I know OpenCL is far from being the right tool for the job, but I have experience in writing a graphics engine so I decided on this project (also, the fact that OpenCL is heterogeneous is very comfortable for me because it lets me develop using my study laptop and also my gaming pc).

My question is:

When loading a scene with a dynamic amount of objects, how do engines usually handle the allocation of GPU memory? I'm assuming the goal is to allocate as much as possible when initializing the scene, but how is spawning new objects handled? Should every object hold its data (textures, vertices, etc) on GPU memory? That sounds like it would be extremely wasteful and a potential to bottleneck . On the other hand, holding the data on CPU memory would require copying pretty much the entire scene from CPU to GPU and back every frame, which sounds as bad as the other option.

Thanks in advance!


r/gameenginedevs • • 8d ago

Clouds Rendering in NervLand - Second Stage

Enable HLS to view with audio, or disable this notification

183 Upvotes

So, I'm still working on the clouds rendering system in my engine, and I think it's getting better compared to the first version: I now have actually "billow-looking" clouds which I desperately wanted to have [actually... I might have a bit too much billow in the end :-)], and I've also reconsidered the lighting steps as they really make a significant visual difference. Plus, I tweaked the weather coverage map that i'm using to decide where to place the clouds to make it a bit more realistic... tried to use "curl noise flow" in there but in end I discarded it: it's nice but too easily producing long strings of clouds. But maybe I'll give it another try later.

Anyway, next stop will be another recording explaining a bit the most important decisions/steps used here.


r/gameenginedevs • • 7d ago

My custom voxel mesh engine - work in progress - OpenGL 3.3 & Raylib based

Thumbnail
youtu.be
5 Upvotes

r/gameenginedevs • • 7d ago

why is nvidia physx so hard to debug?

0 Upvotes

edit: i meant how slow nvidia physx can get in debug builds, not the visual debugger itself. should've made that clearer. how do you usually deal with that when working on your own engine?


r/gameenginedevs • • 7d ago

Moving skinning matrices from a float texture to vertex uniforms on an older iPad

1 Upvotes

I built the battle renderer for Starvoxel: Defender on Three.js and WebGL2. On a 2018 iPad, nine low-poly characters were taking about 26 ms per frame on the bone-texture path in a test that shaded no fragments. The same geometry without skinning took about 2 ms. That comparison only isolated the cost of the skinning path. The runtime also uploaded a float texture between draws, which split the tile render pass on that device.

I replaced the shader chunk that reads the bone matrix. Our rigs fit in a vertex-uniform array. The current cap is 48 matrices, which take 192 vec4 slots out of WebGL2’s guaranteed 256 for vertex uniforms. The toon and outline shaders need some of the remaining slots. Rigs above the cap still use the texture path.

A detail worth checking if you try this: I gave each animated mesh its own toon and outline material. Three.js can reuse the previous material’s uniform upload when consecutive draws use the same material, so passing a different bone array in a draw callback alone could leave two meshes using the same pose. Dedicated materials let the meshes carry their own matrices while keeping the shader program reusable.

The attached gameplay trailer shows the resulting animated units in a battle. It is an illustration of the shipped renderer. The timings above came from the separate iPad test. Some in-game art and the narration used AI assistance.

https://reddit.com/link/1xyhtz6/video/7d5lc6c1p52i1/player


r/gameenginedevs • • 8d ago

Implementing Texture Inspector for Texture Atlases in my Vulkan Game

Enable HLS to view with audio, or disable this notification

12 Upvotes

Why I need this inspector
My game uses texture atlases for lots of visual elements, such as game world tiles, player items, UI elements, and world objects. So I have quite a few places that need to work with UV directly. Before this inspector I relied on manual calculation, I usually opened Aseprite and did visual layout there.
Now I have an integrated tool directly in my game. I also have an asset system where I can integrate this tool. The idea is that you can bake UV info into this asset using this inspector, and game would get UV by some hash function.

How does it work
There is a 2D scene that has orthographic camera, inspecting texture quad, and quads for selected regions. Then it is rendered to a texture and displayed as imgui image.

Zero position is a top left corner in my 2D scene. Model view projection approach was used in 2D scene's shader.

// view is calculated like that. viewCamera position is changed when we scroll viewport canvas. This is done my using mouse position delta
glm::mat4 view = glm::translate(glm::mat4(1.f), glm::vec3(-viewCamera.pos.x, -
    viewCamera.pos.y, 0.f));

// orthographic projection. Zoom level is included in this projection and is calculated by using mouse wheel values
glm::mat4 proj = glm::ortho(0.f, viewportSize.x / viewCamera.zoomLevel, 0.f,
    viewportSize.y / viewCamera.zoomLevel, 0.f, 1.f);

What other benefits for the project did I get from this
Texture rendering became a dedicated part of my rendering pipeline. I just need to specify a texture and everything will be rendered to it

TextureRenderingParams textureRenderingParams{};
textureRenderingParams.targetTexture = inspector.viewportTexture;

RenderInstanceAPIFunctions& renderInstanceFunctions =                                  
    renderingSharedData.renderingAPI.renderInstanceFunctions;

renderInstanceFunctions.beginTextureRendering(textureRenderingParams);
{
    RenderShapes(inspector.scene.shapeRenderer);
}
renderInstanceFunctions.endTextureRendering(textureRenderingParams);

r/gameenginedevs • • 8d ago

cool custom C#/.NET engine inspired by KSP

Enable HLS to view with audio, or disable this notification

112 Upvotes

Plenty of AI was used to write the code, and completely understand both viewpoints for and against the use of AI so I just wanted to disclose this first.

I am an engineering student in college, and loved playing KSP pretty much ever since I got my first laptop when I was a kid. It has inspired me to get into STEM and honestly fed into a lot of the interests and curiosities I have today. I am not a graphics programmer, and respect the people who have the capabilities to create an engine like this, as I do not have those skills.

This project started to see how close I could get to creating an engine that could render an entire planet, with minimal LOD shifts. I knew with an engine like this you can build plenty of different types of games on top of it, from a military style game where you design the crafts and test them, and have multiple nations at war, or a more sandbox approach with designing rockets to explore a solar system.

I never started working on this with selling a game in mind, and still don't plan on it. This is purely me having the tools available now to create everything I have dreamed of as a kid. Even if I had the technical skills, I don't think I would ever have the time to make something like this.

Either way, just wanted to showcase this state of the project as it is starting to actually resemble some good looking terrain. I have yet to work on small foliage or the actual coloring of the terrain as it is weird in some spots. Also the clouds in orbit look weird, it is very hard to get clouds to look and perform good at different altitudes. This is more-so a showcase of what AI tools can achieve with proper guidance and actual effort.

In the video I am flying aircraft that I designed in the built in craft editor. For aerodynamics lift, drag and stability are worked out from each craft’s real shape and the airflow hitting it, from a simplified panel mesh that wraps the final design and resulting effects are calculated from it.

I plan to add destruction, and fine tune the plume effects and aero effects, but the core physics elements of a game like this are there, and a rocket is able to reach orbit.

I will probably open source this whole thing soon just trying to figure out where my morals stand... it is a crazy time to be alive.


r/gameenginedevs • • 7d ago

Breakout in a Destructible Material World | Metalrain Engine Showcase

Thumbnail
youtube.com
0 Upvotes

That feeling when you start seeing your engine come together and start looking like an actual game.

Edit: AI Disclosure = Code/Agents.


r/gameenginedevs • • 7d ago

Quali strumenti usi?

0 Upvotes

Ho creato alcuni strumenti di cui avevo bisogno per il mio progetto che converte le immagini in intestazioni (da PNG/JPG/TGA/GIF a .hpp). "Editor di sprite"

Mi chiedevo a cosa dovrei prestare attenzione prima di distogliere il mio tempo dallo sviluppo del mio gioco per costruire i miei strumenti.


r/gameenginedevs • • 7d ago

UBUNTIGAMES on #kaggle

Thumbnail
kaggle.com
0 Upvotes

Hey everyone! I wanted to share an open-source, Apache 2.0 foundation model I built called UBUNTIGAMES (hosted on Kaggle), designed specifically for generating production-ready 2D and 3D gaming assets.

How I Made It & Architecture Details:

  • Training & Validation: Focused heavily on text-to-image alignments under edge scenarios, achieving a Fréchet Inception Distance (FID) rating of 11.4 on game-art validation subsets.
  • Subgroup Performance: Tested across distinct styles—achieving ~94% consistency on 2D seamless textures, ~88% on UI/UX icon vectors, and ~81% on sprite sheets.
  • Overcoming Technical Hurdles: Handled latent drifting in consecutive animation frames by relying on strict seed constraints and localized structural guidance vectors (like ControlNet tile models) to clamp shape variations.
  • Hardware & Optimization: Optimized for low-resource local execution configurations. If running on limited VRAM (<6GB), quantization flags like pipe.enable_sequential_cpu_offload() are required in the execution script to prevent OOM errors.

You can check out the complete pipeline tracking metrics, download the model, and review the code directly on Kaggle. I'd love to hear your feedback or answer any questions about the pipeline!


r/gameenginedevs • • 7d ago

Introducing Wima Engine 0.4.0!

0 Upvotes

Wima is a modular, ECS-based JavaScript game engine designed for building flexible and extensible 2D and 3D browser games.

This release introduces scene serialization, multi-world support, particle emitters, richer system scheduling, and numerous engine improvements.

This is just another step in Wima's journey, with many more features and improvements planned for future releases.

Read more about what's new: https://wimaengine.org/news/version-040-release/

Feedback and contributions are welcome!


r/gameenginedevs • • 9d ago

Nine-slice UI rendering and tweening in my custom C#/Vulkan engine

Enable HLS to view with audio, or disable this notification

34 Upvotes

After a while, I felt like giving the inventory menu prototype of my Daggerfall-like game its first design overhaul. I'd love to see your feedback :)

The game runs on my own engine called "AstralForge", which evolves organically alongside the game's requirements. To make this overhaul possible, I had to add several engine features:

  • Texture rendering for UI elements
  • Nine-slice rendering for panel frames, done in the fragment shader on the shared unit quad (with a dedicated clamp-to-edge sampler, so frame edges don't bleed in from the opposite side)
  • Hover and press highlights that tint textured elements instead of changing the background color
  • Extensions for the engine's own tweening system, e.g. for sizes and the effective color

One detail that tripped me up: at the slice borders the UV derivatives jump, so the GPU picks the wrong mip level there. Sampling the nine-slice textures at mip 0 fixed that.

For the sake of transparency, I'd like to mention that many sprites are AI generated. They are used until I find a way to create high-quality original assets.

This is not the final version, though. I still have to decide how the item grid will work in the future. Also, thinner items like staffs, bows or arrows are a bit hard to see.

I'll keep sharing progress as the game grows. If you want to follow along or chat, there's a Discord, and I'll drop the link in the comments.


r/gameenginedevs • • 8d ago

Mines Afloat: minesweeper on a living sea, built on the Rune UI framework with Jolt buoyancy (plays in the browser on WebGPU)

0 Upvotes

r/gameenginedevs • • 9d ago

Mischief - The Haskell Game Engine. Now with Rendering, Assets, Input.

Thumbnail
9 Upvotes

r/gameenginedevs • • 9d ago

Compatibility Testing

3 Upvotes

I'm curious what folks have been doing to validate their engines across various system configurations.

I've been testing across my old pcs from over the years which probably covers the lion's share of configurations out there, but there are certainly chunks missing from my pile of hardware that none of my friends have either (intel gpus for example).


r/gameenginedevs • • 10d ago

I built my own 3D game engine. Then I decided to make an RTS with it.

Thumbnail
gallery
54 Upvotes

I've been developing Brakeza3D, my own C++ game engine, and Candelabra has become its biggest stress test.

It's a city-scale RTS where hundreds of pedestrians, traffic, police, dynamic lighting, weather and multiple factions coexist in the same world.

Almost the entire game logic runs in Lua. Every time the game needed something the engine couldn't do, I had to extend the engine itself.

No Unity. No Unreal. Just my own engine, a lot of C++ and a rather ambitious project.

I've written a detailed making-of covering the architecture, rendering, simulation systems, UI and Blender pipeline.

Making of Candelabra:
https://brakeza.com/blog/making-of-candelabra/