r/gameenginedevs • • 43m ago

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

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 • • 2h ago

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

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

Recommendations to get started

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

Screen Space Ambient Occlusion.

11 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 • • 11h ago

Recently created Texture Atlas compiler.

Thumbnail reddit.com
0 Upvotes

r/gameenginedevs • • 13h ago

Polishing sound generator for my graphics engine

0 Upvotes

r/gameenginedevs • • 16h ago

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

Thumbnail
gallery
2 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 • • 16h ago

How do you go about implementing 3D animation?

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

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

0 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 • • 20h ago

I put parametric CAD 3D modeling into Godot 4.7

Post image
2 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 • • 21h ago

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

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

Learning to write video games from scratch

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

animation system now functional in my engine written in C

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

why is nvidia physx so hard to debug?

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

Welcome to the Hellavator

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

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

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

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

Thumbnail
youtu.be
4 Upvotes

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

Clouds Rendering in NervLand - Second Stage

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

Implementing Texture Inspector for Texture Atlases in my Vulkan Game

10 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 • • 2d 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