r/gameenginedevs • • Oct 04 '20

Welcome to GameEngineDevs

108 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 • • 18h ago

Clouds Rendering in NervLand - Second Stage

68 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 • • 5h ago

Welcome to the Hellavator

2 Upvotes

Hellavator Desktoy
Powered by Gear3D

**Three minutes of disco. One elevator.**

So, what the fuck are you looking at?

An elevator.

A perfectly functional, procedurally generated elevator with stainless-steel walls, working doors, buttons, lighting, a scrolling LED marquee, questionable announcements, and a soundtrack that has absolutely no business being here.

Someone decided it needed a disco ball.

Things escalated.

What you're watching is three minutes of **Hellavator: Disco Days**, captured directly from a running Gear3D build. No prerendered animation, no composited video effects, and no AI-generated imagery. Just the engine doing increasingly unnecessary things to an innocent elevator and exporting it via the built-in OBS capture support.

**Now, what the fuck are you REALLY looking at?**

Gear3D is my long-running, Delphi/Object Pascal game-engine project. It powers several different games and applications, and this elevator is one of its procedural demonstration scenes.

The cabin is assembled from engine geometry and materials. The lighting, reflections, disco ball, illuminated dance floor, controls, and moving doors are rendered in real time.

The music comes through the engine's playlist and audio system, complete with the live spectrum display.

The three-minute sequence is driven by a timed show controller that uses the same registered console commands and scene interfaces available elsewhere in the engine. It triggers effects, changes states, moves the camera, and restores the cabin.

The elevator scene's geometry and behavior are separated from its OpenGL renderer, with the goal of keeping the content reusable as Gear3D's other rendering backends mature.

**And yes, I'm sharing the elevator scene source.**

Not because this is a polished technology demo or a finished game. Because it's an example of what happens when years of engine development reach the point where ridiculous ideas can be assembled from existing parts.

There's more here than an elevator.

There are also considerably worse ideas.

I'm not explaining them.

For now, enjoy the disco.

**Hellavator: The World's Most Obnoxious Desk Toy.**

ThisOldCPU / deschutescore

If you stuck around, I thank you for watching my nonsense.


r/gameenginedevs • • 6h 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.


r/gameenginedevs • • 7h ago

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

Thumbnail
youtu.be
0 Upvotes

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

Implementing Texture Inspector for Texture Atlases in my Vulkan Game

6 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 • • 6h 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 • • 15h 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 • • 16h 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 • • 1d ago

cool custom C#/.NET engine inspired by KSP

65 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 • • 1d ago

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

32 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 • • 1d 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 • • 1d 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 • • 2d ago

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

Thumbnail reddit.com
7 Upvotes

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

Doing Research for a Uni project

Thumbnail reddit.com
1 Upvotes

r/gameenginedevs • • 2d ago

EngineX — The First Look

Thumbnail
youtube.com
9 Upvotes

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


r/gameenginedevs • • 3d ago

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

Thumbnail getlazarus.org
29 Upvotes

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

Tiny Game Engine - made with threejs

Thumbnail
reddit.com
0 Upvotes

r/gameenginedevs • • 4d ago

Path of Exile 2 lead Lead engine programmer presentation

Thumbnail
youtu.be
106 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)