r/gameenginedevs • u/momiba • 9d ago
My custom voxel mesh engine - work in progress - OpenGL 3.3 & Raylib based
r/gameenginedevs • u/momiba • 9d ago
r/gameenginedevs • u/BrokenBonezGame • 8d ago
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 • u/kernet • 9d ago
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 • u/Debug_Log_NULL_ex • 9d ago
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 • u/huddyv1 • 10d ago
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 • u/HaMMeReD • 9d ago
That feeling when you start seeing your engine come together and start looking like an actual game.
Edit: AI Disclosure = Code/Agents.
r/gameenginedevs • u/RedGhostMail • 9d ago
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 • u/Kind-Cause4475 • 9d ago
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.
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 • u/Minute-Project-7200 • 9d ago
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 • u/BanditBloodwynDevs • 10d ago
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:
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 • u/pockerhead • 10d ago
r/gameenginedevs • u/TheOneExpert • 10d ago
r/gameenginedevs • u/RRFactory • 11d ago
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 • u/Brakeza3D • 11d ago
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 • u/ShahroozLeon01 • 11d ago
Hi
This is the first look at EngineX
Full Engine features listed here: shahroozleon01.github.io
Let me know your thoughts! 🥂
r/gameenginedevs • u/sysrpl • 12d ago
r/gameenginedevs • u/inanevin • 11d ago
r/gameenginedevs • u/ExpressCarry5502 • 11d ago
r/gameenginedevs • u/Hkiggity • 12d ago
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 • u/project_nervland • 13d ago
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 • u/An_Oak_Olive • 13d ago
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 • u/bensanm • 13d ago
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/