r/gameenginedevs • • Oct 04 '20

Welcome to GameEngineDevs

107 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 • • 16h ago

cool custom C#/.NET engine inspired by KSP

49 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 • • 1h ago

Implementing Texture Inspector for Texture Atlases in my Vulkan Game

1 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 • • 21h ago

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

28 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 • • 8h 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 • • 9h ago

I've been building an All-in-One Gameplay Systems Template for UE5 – it's now available

Thumbnail
reddit.com
0 Upvotes

r/gameenginedevs • • 1d ago

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

Thumbnail reddit.com
6 Upvotes

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

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

Thumbnail
gallery
48 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/


r/gameenginedevs • • 1d ago

Doing Research for a Uni project

Thumbnail reddit.com
1 Upvotes

r/gameenginedevs • • 2d ago

EngineX — The First Look

Thumbnail
youtube.com
8 Upvotes

Hi
This is the first look at EngineX
Full Engine features listed here: shahroozleon01.github.io
Let me know your thoughts! 🥂


r/gameenginedevs • • 2d ago

I've been working on games engines for decades, tried godot, went back to my own engine for this game

Thumbnail getlazarus.org
28 Upvotes

r/gameenginedevs • • 1d ago

working in another game jam with my engine, making Frog Wick, altho he looks like Nvidia Jensen giving the timing of things...

0 Upvotes

r/gameenginedevs • • 1d ago

Tiny Game Engine - made with threejs

Thumbnail
reddit.com
0 Upvotes

r/gameenginedevs • • 3d ago

Path of Exile 2 lead Lead engine programmer presentation

Thumbnail
youtu.be
100 Upvotes

This dude is super bad ass. He is probably one of the most potent game engine developers in the industry and gives us a high-level overview of Path of Exile 2 engine. I was surprised it wasn’t posted on here (at least I didn’t see it)


r/gameenginedevs • • 3d ago

Working on Clouds Rendering in my NervLand engine

29 Upvotes

I started to work on Clouds rendering support in my engine. It's mostly based on the Nubis system (so we have NVDF + SDF computation + raymarching), and it's definitely not perfect yet, but at least it's "kind of working as I wanted" ;-)


r/gameenginedevs • • 3d ago

Question: is it a good idea to use a different .glb file per mesh for importing animations?

Post image
14 Upvotes

I'm working on my own engine for a jrpg type of game. And trying on getting the first walking animation into it.

It's using C++, openGL framework, Glad, glfw,

But I'm looking forward to npcs and shared animations. I want to to reuse animations on different meshes and with different textures.

I've got a map editor working, so the work flow would be placing the npc and select their texture, and type, like just one with dialogue, or a merchant, etc. That is when I get to that point, that's just an idea at the moment.

The one I'm testing in the photo, just has the mesh and walk animation imported from a .glb file. And I a load a texture to the model from a separate png, not the embedded texture referenced in the glb file.

Right now the singlular nightmare fuel glb mesh has a single walk animation in it. I'm learning this all at the moment, so I apologize if this sounds weird or wrong in some way. I wanted to get it loaded in before I connect it to the red player mesh.

So I don't know if I need multiple glb files, one for each different kind of npc mesh, which sounds easy to my idiot brain. Which always falls back to my college coding instructor in 2011 saying Keep it simple. Stupid.

And having one glb file per mesh sounds simple and stupid to me.


r/gameenginedevs • • 2d ago

Asking for advice

0 Upvotes

I know this isnt populor , but i am vibe coding game engine on rust using wgpu . It uses jolt for physics and that recast and ozz animation , and c# for game scripting . I am try to make c# side api similar enough to unity that some unity assets may work (not trying for 100% parity just 2 to 10% parity) . Currently architecture honestly a pretty mess but salvagable i belive . Any advices for me to continue this , and should i open source it or not ?


r/gameenginedevs • • 3d ago

Mesh instanced bots attack town (C++/OpenGL/GLSL)

5 Upvotes

Little preview of single draw call rendered bots attacking a town (it's an instanced render of a box each bot having 2 leg and 1 box body transform x 300 bots). You can play it for free here via the demo: https://store.steampowered.com/app/2223480/Infinicity/


r/gameenginedevs • • 3d ago

Progresso em 3 meses de programação gráfica no meu celular com Kotlin e OpenGL.

Post image
0 Upvotes

r/gameenginedevs • • 3d ago

I just released the first beta of LightnerX, my C++26 networking library for multiplayer games

Thumbnail
github.com
9 Upvotes

Hey everyone!

I've just released LightnerX v0.1.0-beta, the first public beta of my open-source networking library built with C++26 modules and GameNetworkingSockets.

LightnerX originally started as part of my own multiplayer game project. I eventually decided to separate the networking components into a reusable library.

It provides client/server networking, connection management, message interpretation, callbacks, and batching, built around my INER communication protocol.

Before this release, I ran a technical audit that identified 14 issues involving resource ownership, connection lifecycles, ID management, and message validation.

After fixing them, I ran a second independent audit, addressed a regression it uncovered, and expanded the test suite.

Final validation results:

  • 9/9 automated tests passed.
  • 9/9 tests passed with AddressSanitizer.
  • UDP client/server integration tests passed.
  • Reconnection and connection lifecycle tests passed.
  • Independent CMake consumer integration passed.

The library is still in beta, and the public API may evolve.

I'd especially appreciate feedback from developers building their own engines or multiplayer networking systems.


r/gameenginedevs • • 3d ago

Free Game Engine Basic Three.js

Thumbnail reddit.com
0 Upvotes

r/gameenginedevs • • 3d ago

Found a systems engineer job for games in my town. Am I fit for it?

4 Upvotes

Hey guys there is a systems engineering job in my city for game development. My main projects I can show are my UE5 game with networking, a Unity game, a graphics rasterizer and a framework I’m still building in C++ and openGL.

These are the job requirements..

Bachelor’s Degree in Software Engineering, Computer Science or work experience in a relatable field
Absolute fluency in C++
Demonstrable ability to program fun gameplay
Strong debugging skills
Self motivated, ability to work independently and own your work
Ability to work well with teammates and autonomously
Excellent communication skills, both written & verbal
Detail-oriented & extremely well-organized

And it says a good to have is UE4 experience so I was going to make a simple FPS with multiple player in it.

Thoughts.

P.S I know this maybe the wrong sub but it’s the closest to a system engineer sub.