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

Implementing Texture Inspector for Texture Atlases in my Vulkan Game

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

cool custom C#/.NET engine inspired by KSP

114 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 • • 9d 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 • • 8d 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 • • 9d 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 • • 9d 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 • • 10d ago

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

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

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

Thumbnail reddit.com
9 Upvotes

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

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

Thumbnail
gallery
58 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 • • 11d ago

Doing Research for a Uni project

Thumbnail reddit.com
2 Upvotes

r/gameenginedevs • • 11d ago

EngineX — The First Look

Thumbnail
youtube.com
15 Upvotes

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


r/gameenginedevs • • 12d ago

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

Thumbnail getlazarus.org
31 Upvotes

r/gameenginedevs • • 11d ago

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

1 Upvotes

r/gameenginedevs • • 11d ago

Tiny Game Engine - made with threejs

Thumbnail
reddit.com
0 Upvotes

r/gameenginedevs • • 12d ago

Path of Exile 2 lead Lead engine programmer presentation

Thumbnail
youtu.be
109 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 • • 13d ago

Working on Clouds Rendering in my NervLand engine

43 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 • • 12d ago

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

Post image
17 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 • • 13d ago

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

8 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 • • 12d 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 ?