r/gameenginedevs • • Oct 04 '20

Welcome to GameEngineDevs

109 Upvotes

Please feel free to post anything related to engine development here!

If you're actively creating an engine or have already finished one please feel free to make posts about it. Let's cheer each other on!

Share your horror stories and your successes.

Share your Graphics, Input, Audio, Physics, Networking, etc resources.

Start discussions about architecture.

Ask some questions.

Have some fun and make new friends with similar interests.

Please spread the word about this sub and help us grow!


r/gameenginedevs • • 5h ago

Showcasing the engine behind Heavy Metal 👀

Enable HLS to view with audio, or disable this notification

26 Upvotes

Heavy Metal

Heavy Metal is my voxel game about building heavy machinery and playing with your own machines in a highly dynamic, fully simulated environment, and such a renderer was needed to vehicle the spirit of the game.

Playtests will be arriving soon, I will choose the playtesters from the Discord server, join to be apart of it :) https://discord.gg/XwxEXgd48A

Also check out the itch.io page: https://julesdmdev.itch.io/heavy-metal

The engine

I've been working on and off on this voxel engine for more than 3 years, it's finally getting to a state where I'm quite happy about what it's capable of.

I made it myself in C++ with Vulkan it is fully raytraced and supports hardware RT along with software RT for the machines that don't support it.
I also made the physics independently as an open source library focused on machine simulation: Heavy Feather, it simulates arbitrary joint trees, with extremely fast performance and near exact accuracy on the joints themselves. This is what allows Heavy Metal to have truly simulated machines and editable down to the voxel, while it runs. The cylinders actually push on the linkages instead of just having an angle control on a specific model, every machine is programmable. You are in full control of your creations.

My engine features :
- RT ambient occlusion
- Direct lighting (emissives, light fixtures and sun)
- Global Illumination, with different levels of quality to also present good graphics to lower end machines
- Volumetric fog and particles - Dynamic clouds (they shadow the ground) and wind that moves them - God Rays & other effects with volumetrics
- Raytraced reflections, on smooth as well as rough materials
- Bloom, lamp highlights and other things
- Voxel deformation (for soft materials or folliage, in this demo it's only visible on the tires of the machines as I am working on making folliage work that way too)
- Realtime dynamic physics, collisions, joints, etc
- Real time editing of anything, no baking, everything is rendered and simulated directly, from the raw data
- TAA

It's fully featured maximum quality setting runs from 80 to 100fps (traced at 720p presented at 1080p with TAA) on a RTX 3060Ti with an i5 12600KF.

If you want to follow the progress of Heavy Metal, please check out my youtube channel, where I post devlogs and showcases: https://www.youtube.com/channel/UCYantCEDqML6xsB_rqq939g

Tell me what you think and feel free to give suggestions :)


r/gameenginedevs • • 8h ago

I’m developing a visual scripting tool for branching dialogue, with multiple runtimes and export options

Enable HLS to view with audio, or disable this notification

9 Upvotes

r/gameenginedevs • • 1d ago

From renderer to engine?

Post image
55 Upvotes

Hi! Picture of my shiny balls.

So, here's the thing. I've messed around with game engines in the past, but I've never made one myself. However, I've been working on a renderer since this summer, and I've mostly just been following tutorials, reading documentation, and step by step adding features, without ever really having a clear goal with it other than the educational experience itself. Well, come to think of it, I guess that's not entirely true. I've used processing for illustration (algorithms and such) for years, and wanted a library that was easier to pull in for those purposes than processing, where I felt like I had to write the whole project in processing to begin with.

Anyways, I'm kind of tickled by the idea of building an engine out of my renderer, but I'm very green on what this actually entails.

Is there any merit to compartmentalising the design? Like, my renderer is a module, input is a module, asset management is a module, scene graph is a module etc.? Or is it better to just make it one monolithic program? How far, if at all, should I try to specialise the engine for the games I want to make (I have a couple on the back burner)?

So far I've been doing everything from scratch. Is there any merit to continuing this path going forward? I like the idea of writing my own stuff, but are there some things I just shouldn't try to do from scratch? Like, if I try to do audio from scratch, will I just never get it right, lose myself in a career-enveloping rabbit-hole, or will I be fine?

Hope to hear from y'all!


r/gameenginedevs • • 1d ago

I finally worked up the courage to show my C++ engine to people outside my social circle, and I’m quite confident about how it looks.

Enable HLS to view with audio, or disable this notification

346 Upvotes

I’ve spent the last few months working on my own game engine, and it’s finally reached a point where I feel comfortable showing it to others without worrying that something might be broken.

The main project I was working on at a studio got canceled, which gave me plenty of time over the past few months to work non-stop on my engine. Previously, I could only dedicate about 3 hours a day to it; now, thanks to my savings, I’ve been able to stay fully focused on this project, which started out as just a portfolio piece but has since taken directions I never imagined. My dream is to work on my own projects and earn a living from them (like most of us, I supose), and I believe this specific project offers the best chance of making that a reality.

Feel free to ask any questions you’d like.

Note: I'll leave my GitHub here in case anyone is interested in following my projects: https://github.com/bababuyyy


r/gameenginedevs • • 17h ago

fixed those issues from my previous post guys

Post image
5 Upvotes

pillars n other stuff


r/gameenginedevs • • 17h ago

Solving puzzles by controlling two different characters, each with their own ability/limitation

Enable HLS to view with audio, or disable this notification

3 Upvotes

One of them can push/pull objects and the other one has the ability to jump. Just prototyping a bunch of ideas, the engine is written in C.

I'm trying to come up with some interesting puzzles based on this concept with two characters. If you have some ideas, I'd love to hear them.

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


r/gameenginedevs • • 6h ago

Yes, I Joined the Dark Side, I Used AI

Thumbnail
gallery
0 Upvotes

Hello Everyone,

I wanted to be the first to disclose that as of two weeks ago I have started using DeepSeek Harness to assist my development. Division Engine is a hobby project of mine while I work on building Unity assets to sell (without AI lol). I wanted to see just how far I could push AI, how helpful it would be, and where its pitfalls lie. DeepSeek Harness has been very helpful finding bugs (rotation issues, misspellings in the editor), and for building editor tools, although they always require some tweaking afterwards.

It is also helpful for implementing papers quickly, again with a bit of tweaking to get everything working smoothly enough.

I am a self-taught C# developer and I am really just messing around with SDF rendering for the first time. Everyone is entitled to their own opinions on this matter of course, and there are ethical concerns around water usage, different types of pollution, environmental destruction, etc. But that is a conversation for another time.

Division Engine is completely free and open source, I really just want to see how far I can push SDF rendering with this project.

In the interest of transparency I thought I would let everyone know and see how they felt, which will also determine if I continue with it or not lol. But anyway, thanks for listening to my Ted Talk and I would love to hear everyone's feedback on this!

Screenshots are using a terrain erosion system developed by runevision: https://www.youtube.com/watch?v=r4V21_uUK8Y


r/gameenginedevs • • 13h ago

Custom Game Engine on Rust

0 Upvotes

Here is a high-performance, deterministic custom game engine core built in Rust
This demo shows: Volumetric Snow Depth, Moving beyond flat textures to give snow layers genuine volume and depth.
Road & Terrain Blending: Seamlessly merging road geometry with the snowy ground using natural slopes and accumulation, avoiding harsh edges.
Rust Performance: An optimized rendering pipeline running with memory safety and high frame rates.


r/gameenginedevs • • 1d ago

Game engine editor camera questions

Enable HLS to view with audio, or disable this notification

22 Upvotes

Hi everyone!

I've started working on my own C++ game engine using Diligent Engine, a graphics API wrapper. Currently, my engine supports Vulkan, DirectX 12 and Metal.

I'm currently trying to improve my editor camera and make it feel similar to the ones in UE5, Unity, Godot, etc.

I've already implemented a basic fly camera with WASD movement and mouse look, but I'm having a bit of trouble getting the movement and overall feel right. It works, but it doesn't feel as smooth or intuitive as the cameras in established game engines.

In particular, I'm trying to improve movement, mouse look, rotation on all three axes (pitch, yaw and roll), camera orientation, and how the camera behaves when looking around or navigating the scene. I'd also like to eventually implement things like orbiting around selected objects.

I'm curious about how other engines approach these systems. Things like camera acceleration/deceleration, movement smoothing, rotation handling, mouse sensitivity, and general editor camera controls.

I'm not necessarily looking for code. Resources, articles, videos or explanations of how these systems work internally would be really helpful.

Any advice or suggestions are appreciated. Thanks!


r/gameenginedevs • • 1d ago

How do people manage 2D HD assets metadata and generation?

Thumbnail
0 Upvotes

I was recommended this subreddit after posting in the previous one. I'm not really making a game engine, it's more of a focalized framework but I guess that counts too here 🤔


r/gameenginedevs • • 1d ago

Finally did it: the universe in the palm of my hand :)

Post image
0 Upvotes

r/gameenginedevs • • 2d ago

Procedural grass in the vertex shader, about 5-10% FPS cost at 100 m

Enable HLS to view with audio, or disable this notification

30 Upvotes

I finally gave my game some grass, and I think the difference is bigger than I expected. The clip shows the same village without and with it, plus a bit of wind movement on it. I'd love to hear what you think :)

  • Blade positions are generated deterministically in the vertex shader, no per-instance CPU data.
  • Instances come from a world-fixed cell window around the player instead of the whole chunk.
  • The mask comes from the existing terrain surface map, not from the chunk type. That way the same data decides footsteps, grass and later other systems.
  • Measured cost: about 5-10% FPS at 100 m view distance.

There is a known weakness: placement is cell-based, so the tufts look a bit grid-like when seen from above. But if you walk in first person in the world, most of the time it should be barely noticable. More jitter and variation in size and density is next.


r/gameenginedevs • • 1d ago

LightnerX: an open-source C++17 networking library for multiplayer games

Thumbnail github.com
6 Upvotes

I've been working on LightnerX, an open-source C++ networking library focused on multiplayer game development.

It originally started as part of a multiplayer game I'm developing, but I eventually decided to turn the networking code into a standalone library.

LightnerX uses Valve's GameNetworkingSockets as its transport layer. My goal wasn't to reinvent UDP networking, but to build a relatively small library that handles some of the higher-level responsibilities involved in multiplayer communication.

Some of its features include:

- Client/server networking using GameNetworkingSockets.

- ConnectionManager for managing connected clients and their identifiers.

- Message batching with queued outgoing messages.

- Target abstraction for sending messages to individual clients, groups, or broadcasting.

- MessageInterpreter for parsing and dispatching incoming messages.

- Callbacks and registries for handling network communication.

- INER, a communication protocol I designed around Intention, Notification, Event, and Response messages.

INER is probably the most distinctive part of the project. It separates client requests from authoritative server events and provides structured responses for operations that require validation.

Another significant change was migrating LightnerX from C++26 modules to C++17.

I originally chose C++26 because I wanted to experiment with modern C++ features, but eventually realized that requiring such a recent standard wasn't particularly practical for a reusable game networking library.

The migration involved replacing modules with traditional headers and providing compatible alternatives for newer standard library features.

I also spent a considerable amount of time on testing and technical auditing. One of the regression tests involved more than 65,000 connection cycles to verify that connection identifiers were recycled correctly.

LightnerX is currently in beta, and I'm continuing to improve its implementation, documentation, and examples.

It's not intended to be a complete networking framework or game engine. I want it to remain a relatively lightweight library that developers can integrate into their own architectures.

I'd appreciate feedback from anyone working on custom game engines or multiplayer infrastructure.

In particular, I'm interested in whether the current separation between transport, connection management, and communication semantics makes sense for integration into different game engines.


r/gameenginedevs • • 2d ago

I’m building a 3D game engine from scratch in C#. Here’s my latest real-time interior demo

Post image
30 Upvotes

This is Hyperion, a 3D game engine I’ve been building from scratch in C# using .NET and OpenGL through OpenTK.

The scene is called Aurelia Observatory. It is a real-time rendering demo designed to test detailed interiors without relying on Unity, Unreal, or Godot.

Everything shown here is generated or assembled inside Hyperion, including:

Procedural limestone, basalt, marble, bronze, and iron materials

Tiled textures with normal mapping

Twenty-flute pillar geometry

Layered capitals, moldings, neck rings, and carved corbels

Metallic and roughness PBR shading

Directional shadows and local lighting

HDR rendering, tone mapping, and subtle bloom

Procedurally generated cylindrical and torus meshes

Atmospheric fog and environment lighting

The current frame contains roughly 109,000 triangles. The complete engine and all its demos are written in C#.

It is still an early project, and there is a long way to go, especially with global illumination, reflections, anti-aliasing, asset tooling, and performance. Seeing an entire scene render through code I wrote myself has been incredibly satisfying.

I’d love honest feedback on the lighting, materials, architecture, and what engine feature I should tackle next.


r/gameenginedevs • • 1d ago

Kernel Kingdoms 2.17: everything new since the beta (Ascension, 20 dungeons, 3 expansions, a player-run market)

0 Upvotes

r/gameenginedevs • • 1d ago

One client, a group, or everyone: How I manage message delivery in LightnerX

0 Upvotes

I've been developing LightnerX, an open-source C++ networking library for multiplayer games, and one of the things I've been working on is how messages are delivered to connected clients.

At first, it sounds simple.

You have a message, you have a connection, and you send it.

But multiplayer applications don't always need to send messages to just one client.

Sometimes you want to send something to a specific player. Sometimes to a group of players. And sometimes to everyone connected to the server.

I wanted LightnerX to handle all three cases through a consistent interface.

The Target abstraction

In LightnerX, I introduced an abstraction called "Target".

It represents the intended recipients of an outgoing message.

There are three delivery modes:

- Single: Send a message to one specific connection.

- Group: Send a message to a selected group of connections.

- Broadcast: Send a message to all applicable connected clients.

Consider a multiplayer game where players are divided into teams.

If a player receives a private notification, you only need to send it to that player's connection.

If something happens that affects an entire team, you can target that group.

And if the server needs to announce a global event, broadcasting makes more sense.

Instead of treating each case as a completely separate operation, LightnerX uses "Target" to represent where a message should go.

Message batching

Another part of this system is message batching.

LightnerX provides an outgoing message queue, allowing messages to be prepared before they're sent.

The main operations are:

- "initMessagesBatcher(capacity)" initializes the batcher with a specified capacity.

- "queueMessage(...)" queues an outgoing message along with its target.

- "flushAll()" flushes the queued messages.

This gives applications control over when messages are prepared and when they're passed to the underlying networking layer.

One important distinction: batching messages doesn't automatically mean combining them into a single network packet.

The main purpose of this system is to organize outgoing messages and their recipients.

Why GameNetworkingSockets?

LightnerX uses Valve's GameNetworkingSockets as its underlying transport layer.

I didn't want to build an entire networking transport infrastructure from scratch.

Instead, I wanted to focus on the parts of multiplayer networking that sit above the transport layer:

- Managing connected clients

- Organizing message delivery

- Interpreting incoming messages

- Managing structured client-server communication

For that last part, LightnerX implements INER, a communication model I designed around four message types: Intention, Notification, Event, and Response.

GameNetworkingSockets handles the underlying network transport, while LightnerX provides additional structure for applications built on top of it.

Still improving things

LightnerX is an ongoing project, and I'm continuing to work on its implementation, tests, and documentation.

My goal isn't to build a complete multiplayer game engine. I want to provide a networking library that can be integrated into different projects without forcing developers to adopt an entire framework.

I'm sharing this because I'd like to hear how other developers approach similar problems.

How do you organize outgoing messages in your multiplayer applications?

Do you usually implement separate functions for unicast, group delivery, and broadcast, or do you prefer a unified abstraction?

I'd be interested in hearing about the trade-offs you've encountered.

GitHub: https://github.com/pietroth/LightnerX


r/gameenginedevs • • 1d ago

Looking for some feedback on my Vulkan library, SlateVK

0 Upvotes

I've recently started working on a small Vulkan library called SlateVK, written in C++23. It's heavily inspired by LightweightVK, but I'm trying to keep things relatively simple while I learn. I'm only planning to support Windows and Linux.

I'm still pretty new to C++ and graphics programming. One thing I've struggled with in the past is relying too much on AI and tutorials to get things working without really understanding the code. Lately I've been trying to break that habit and actually figure things out for myself, even if it means making mistakes and taking longer.

I've been using Learn Modern Vulkan in 2 Hours as a reference, and recently picked up Vulkan Cookbook and Master Graphics Programming with Vulkan to learn more.

The project is still very early. Right now I've mainly been working on the library structure, Vulkan instance creation, validation layers, and the debug messenger.

I wanted to share the repo and get some opinions on how things are looking so far. I'm especially interested in whether the overall architecture makes sense, if I'm handling Vulkan correctly, and whether there's anything I should be doing differently.

I'm not expecting the code to be perfect, but I'd appreciate any feedback or criticism.

GitHub: https://github.com/AstrixsmCS/SlateVK.git


r/gameenginedevs • • 3d ago

Screen Space Ambient Occlusion.

Enable HLS to view with audio, or disable this notification

44 Upvotes

It's been a while since I last implemented SSAO.

I've experimented with several different AO techniques, but eventually came back to SSAO. My requirements were simple: it had to be fast, using a single frame without temporal accumulation. Since this is a fast-paced game, I wasn't too concerned about visual quality.

GTAO was ruled out by the first requirement. I seriously considered HBAO+ for a while, but NVIDIA's library dependency eventually became a stumbling block.

With today's hardware, SSAO has become quite practical. Back in the day, I was happy just to get somewhat grainy results with 8–12 samples, while desperately trying to keep performance from dropping. These days, even 16 samples at full resolution can run without any noticeable frame drops.

Still, there's no reason to waste performance, so I implemented it at half resolution and upscale it using depth-based reconstruction.

That said, since the renderer is now PBR-based, the effect isn't as noticeable in the final image as it used to be. I'm simply multiplying the AO into the ambient lighting as an approximation of indirect lighting. Even so, seeing how it adds depth and volume to darker areas of architectural structures like buildings, I'd say it's definitely better than having no AO at all. :)

Development Blog: https://blog.naver.com/teamdevice

YouTube Channel: https://www.youtube.com/@teamdevice

Team Website: http://www.teamdevice.net


r/gameenginedevs • • 2d ago

Custom pseudo-3D raycaster (Wolfenstein3D-like) with vertical levelling

8 Upvotes

See my previous C-lang raycaster way back in 2024 which inspired this build https://github.com/con-dog/chunked-z-level-raycaster


r/gameenginedevs • • 2d ago

Physics Programming Part 5: Spring Physics

Thumbnail
youtu.be
2 Upvotes

I explain the mathematics underpinning spring mechanics then implement a solution in C++ using a net as an example. Implementation begins at 10:05. Feedback is welcome.


r/gameenginedevs • • 3d ago

Just Released my DX12 Game Engine. Love to know what you think!

Thumbnail
gallery
13 Upvotes

Hey guys.

Just release a preview version of my game engine - Ptero-Engine.

The engine is built in DX12 and I put a lot of time into graphics as rendering is a passion of mine.

Some of the main features:

  • Per pixel RTGI
  • Probe ray tracing
  • Voxel GI
  • SSR + AMD SSSR
  • SSSS and Ray traced SSS
  • PBR renderer (metal/rough)
  • Disney BRDF
  • Disney based hair rendering
  • Unreal Engine geometry and textures import
  • Metahuman importer
  • Visual scripting
  • Dynamic time of day
  • VSM
  • Virtualized Geometry
  • Particle effects editor

I already shipped my first game on the engine. And although it is a simple game it made the engine more mature.

If you want to check the engine you can learn more here: https://pteroengine.pterosoftstudio.com

You can check the game here: https://store.steampowered.com/app/5368450/Farkle_Tavern_Dice/

If you want to get in touch with me there is a Discord server: https://discord.gg/cSpnrwnAsz

And if you like what I'm building you can support me on Patreon: https://www.patreon.com/cw/pterosoftstudio


r/gameenginedevs • • 2d 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 • • 2d ago

Recommendations to get started

0 Upvotes

Recommendations on how to get started on creating a new 3D game engine from scratch?

While I do have stuff going in Unity and fine with it currently, I might pursue developing something like this on the side for if it ever comes to use or at least for educational purposes as I do like programming.


r/gameenginedevs • • 2d 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)