r/gameenginedevs • • 5h ago

I want PS1 graphics in my game, but crisp transform arrows in my 3D editor

Thumbnail
gallery
15 Upvotes

While building a PSX horror game in Unafraid Engine, the 3D engine I’m developing, I noticed the move arrows were getting the same pixelated look as the house. I like that look on the wallpaper. On a narrow axis handle it just makes it harder to tell what I’m grabbing.

The first shot is the house in the editor. The second is the interior as the player sees it. I want to keep the game preview while moving a prop, with the handles and selection outline still readable. For those building editors, where do you draw the grid and outlines relative to the low-resolution pass?


r/gameenginedevs • • 21h ago

🍏 I ported my Vulkan game engine to macOS in one day

81 Upvotes

A friend lent me his MacBook for the month, and I took advantage of the opportunity to port the game engine I wrote for my roguelike deckbuilder Now You’re Cooking! to aarch64 and x86_64 macOS.

I wrote the game engine in Zig; the renderer is built on Vulkan using the strategies I described Fast, Flexible, and Simple Rendering in Vulkan. The engine libraries are open source although I don’t have a good public example project wiring them all together at the moment.

I was able to get the game running day one of having mac access, and then I spent two additional days cleaning up my build process so that I won't need regular access to a mac in the future.

The TLDR is that Zig makes cross compiling easy and MoltenVK/KosmicKrisp are really solid projects, you can read the full post here.


r/gameenginedevs • • 1h ago

Yotsuba Shader, C# Shader Language

Thumbnail
reddit.com
2 Upvotes

r/gameenginedevs • • 10m ago

New Dynamic Shadow Shader!

Post image
1 Upvotes

r/gameenginedevs • • 30m ago

ThreeNative (free, MIT): Vibe-code 3D games on "Three.js on steroids" - C++ WASM/Rust engine, native desktop & Android, built-in MCPs & playtests

0 Upvotes

r/gameenginedevs • • 54m ago

Testing 1,200 rigged NPCs with individual pathfinding and physics in my Three.js engine

1 Upvotes

I’m building Snack Engine for snackgamer.com using Three.js and WebGPU. This is the latest navigation test, with 1,200 rigged NPCs in the scene. Each has its own pathfinding and physics.

The goal is to make crowded spaces playable in browser games. In this test, you walk through the crowd looking for lantern bearers.


r/gameenginedevs • • 3h ago

I made an SDK to write Shaders in C# (Vertex, Fragment, Compute)

1 Upvotes

You can write shaders in C# and compile them to SPIR-V, or translate them to HLSL, GLSL, GLSL ES, WGSL, MSL, C++, etc.

Yotsuba Shader is an SDK for writing shaders in C#. It covers Vertex, Fragment and Compute declarations, and the connected compiler emits SPIR-V plus backend source for the supported shader subset. Geometry, Hull, Domain and Ray Tracing are planned.

With Yotsuba Shader, C# can be used as a shader language.

I'm already on stable version 1.0.0, so you game engine creators can use it.

Please mention and promote Yotsuba Shader so that in the future, shaders move away from being separate files for each game engine and can instead be published as libraries on NuGet Package and used easily."

What do you think?

Do you like it?

Web

GitHub

Donations or Support


r/gameenginedevs • • 3h ago

I made an SDK to write Shaders in C# (Vertex, Fragment, Compute)

1 Upvotes

You can write shaders in C# and compile them to SPIR-V, or translate them to HLSL, GLSL, GLSL ES, WGSL, MSL, C++, etc.

Yotsuba Shader is an SDK for writing shaders in C#. It covers Vertex, Fragment and Compute declarations, and the connected compiler emits SPIR-V plus backend source for the supported shader subset. Geometry, Hull, Domain and Ray Tracing are planned.

What do you think?

Do you like it?

Web

GitHub

Donations or Support


r/gameenginedevs • • 3h ago

Afina Engine

Thumbnail gallery
0 Upvotes

r/gameenginedevs • • 9h ago

D3D11 + C Game / Engine where you pilot mechas to kill demons

3 Upvotes

I made a youtube devlog too. It's not very technical and I mostly only showcase the game because it's meant to be an introductory video.

I don't use LLMs at all.


r/gameenginedevs • • 8h ago

Cryengine/Belamontes Interactive engine | Bela Fab Export

Thumbnail
youtube.com
2 Upvotes

I recently got completely fed up with other game engines, so I decided to create my own. I requested authorization from Crytek to download their engine's source code, which I’m now modifying to serve as my primary engine.

This is the first tool I’ve developed—currently in the beta phase—designed to resolve a major headache: exporting assets into CryEngine. I timed my own workflow and analyzed various videos to determine the average time required to export different types of assets.

These include standard materials, general assets, assets with alpha channels, vegetation (with LODs and billboards), and specialized assets (such as fabric with alpha and vertex paint). I found that the process takes anywhere from 5 to 120 minutes—and that’s assuming the assets, textures, and LODs are already prepared; this timeframe accounts solely for the setup process.

With this in mind, I decided to leverage the Quixel asset library. Each asset there comes with a JSON file containing valuable data—such as color, roughness values, and LOD information—which I’ve used to build this tool. It’s still quite slow; in four minutes, I only managed to export nine assets (eight plants, each with three LODs, and one rock).

The compilation time is currently too long; my goal is to reduce it to a maximum of 15 seconds, all without needing to manually navigate through folders.

Another issue, visible at the end of the video, concerns Quixel’s plant assets. They include billboards as LODs, which require a different material. Since these billboards use a different mesh and distinct UV mapping, it leads to the problem mentioned earlier: applying the same texture to an asset that has different UV coordinates.

Still, this is a significant achievement—especially the ability to simply select a folder rather than having to manually pick out individual assets.

There is still plenty of work to be done to refine everything. ...and to find more pleasant solutions—even just for faster compilation, or at least having a progress bar instead of that horrible spinning circle that prevents you from clicking on anything for fear of disrupting the program. It’s a major achievement for me, having spent years suffering through incompetent engines and lousy software.

I also ported CryEngine from VS19 to VS22 to take advantage of more modern solutions; that was the most labor-intensive part.


r/gameenginedevs • • 20h ago

anything you wish you knew before you started?

5 Upvotes

r/gameenginedevs • • 16h ago

Are-Engine SoftwareGPU - Multisystem

Thumbnail
github.com
0 Upvotes

https://github.com/OuroborosCollective/ARE-SOFTWAREGPU-ENGINE : Are-Engine SoftwareGPU : CPU-only software renderer and graphics-compute research engine with tiled rasterization, optional LLVM JIT and reproducible benchmarks and a weights self improving learning Engine [lokal] #gpu #softwaregpu #cpu


r/gameenginedevs • • 14h ago

Are-Engine SoftwareGPU - Multisystem

Thumbnail
github.com
0 Upvotes

Wie eine software gpu in Android umsetzen und das unix port Problem umgehen?


r/gameenginedevs • • 1d ago

Using my custom 2D engine to build surveillance app

2 Upvotes

r/gameenginedevs • • 14h ago

I built a small HTML/CSS/JS runtime that paints straight into a Unity D3D12 texture: zero-copy, damage rects, and the bugs a browser solved 20 years ago

Post image
0 Upvotes

Spent about nine months on this, so sharing some details. The goal was simple: I wanted HTML/CSS/JS for game UI, but I didn't want Chromium inside the game. A browser has to render any page on the internet. Game UI only renders my page, which ships with the game. So most of a browser isn't needed: network, origins, history, cookies, process isolation and so on.

What I took: lexbor for HTML parsing, V8 for JS, Yoga for flexbox, Skia with skparagraph (HarfBuzz, ICU) for text and raster. The DOM, the CSS cascade and paint order I wrote myself, around 20k lines of C++20. Own DOM because I need computed style, layout box, dirty bits, listeners and the JS wrapper right on the node, otherwise every frame is hash lookups. Own cascade because lexbor's css module knows about 45 properties, and border-radius, box-shadow, transform, gap etc come out as raw tokens. Funny thing, the cascade ended up the biggest module, 5,800 lines, more than layout and paint together.

There's no copy into Unity. Skia's GrDirectContext is created on Unity's own D3D12 device and command queue (IUnityGraphicsD3D12v8, plugin event with kUnityD3D12GraphicsQueueAccess_Allow). The texture is a committed resource with ALLOW_RENDER_TARGET | ALLOW_SIMULTANEOUS_ACCESS, wrapped in an SkSurface, and C# gets it through Texture2D.CreateExternalTexture. So Skia draws right into the texture the RawImage samples, and sync is just command order on one queue.

The annoying part was resource states. Unity doesn't say anywhere what state it expects an external texture in, and Skia's D3D backend ignores MutableTextureState, so after flush the resource sits in COMMON. With simultaneous access D3D12 promotes it implicitly when Unity samples it and decays it after ExecuteCommandLists. It works, but I only believed it after a run with the debug layer on. That run also found one real bug, a SampleDesc.Quality mismatch from the default fSampleQualityPattern in a Skia struct. One line fix. Zero D3D12 errors now.

Threads: Unity main thread only does the C# API, input and messages. A runtime thread does events, timers, V8, style, layout and records an SkPicture. Unity's submission thread replays the picture into the surface and submits. Between threads there's only the immutable SkPicture (last one wins) and bridge messages. The DOM has to be synchronous from JS (set textContent, read it on the next line), so the V8 isolate lives on the runtime thread only.

What I underestimated was damage tracking. A frame is published only if something changed, and only the changed rect is repainted. The painter remembers where each box was in device pixels and compares with the previous frame, old and new rect both go into the union. 800x600, software raster: an idle menu went from 22.7 ms per frame, with every frame published, to 0 ms and 24 frames out of 301. A HUD with one animated element went from 15.9 ms to 0.115 ms, because it repaints 22x22 instead of the whole view. In our co-op game we then cut the HUD into 11 small views instead of one full-screen view. At 1080p on CPU raster that's 282.6 ms -> 9.7 ms per frame, but texture memory went from 7.9 to 15 MB.

Bugs I still remember:

  • The PLAY text sat outside its button. Yoga measures with trial widths up to a million px, the paragraph stayed laid out at that width, and text-align: center centred it somewhere far to the right. You have to lay the paragraph out again at the final width.

  • A button 245 px wide instead of 149. The anonymous inline box inherited the parent's style and added padding and border a second time.

  • The damage rect was always full screen. kDirtyPaintSelf was never cleared, and under that the damage function returned early on full repaints and didn't save bounds, so on the next frame every box looked new again. That one took me a while.

Also, quite often the test was wrong and not the engine. Negative z-index really does paint above the parent's background (CSS 2.1 Appendix E). I check the spec first now.

Missing: grid, float, calc(), custom properties, @media, ::before/::after, :nth-child, plus table, select, canvas, video and iframe. The fast path is Windows x64 + D3D12 only, other APIs fall back to software raster. No input for world-space UI yet. Pages have no network at all. The repo lists 33 deviations from browsers, e.g. the caret doesn't blink (two repaints a second per field, no thanks) and setTimeout(fn, 0) means next frame, because timers run on the game clock.

310 native tests with pixel goldens, 46 PlayMode tests on a real D3D12 device. v0.9, Apache-2.0.

https://github.com/Rovniy/xploit_game_ui

If you did external D3D12 textures in Unity differently, I'd like to hear how you handled the resource states.


r/gameenginedevs • • 21h ago

I’ve been working on my own game engine and wanted to share it here

0 Upvotes

I’ve been building a custom engine called Canary over at https://github.com/HylightGames/canary and finally felt like it was in a good enough spot to share.
Still early days and plenty left to iron out, but it’s been a really fun project to put together. Would love to hear any thoughts, feedback, or suggestions if anyone wants to check out the repo!


r/gameenginedevs • • 3d ago

I built a geometry based sound propagation system in my custom engine

134 Upvotes

A precomputed spatial map simulates how sound propagates and reflects off location geometry, creating environment dependent echoes.


r/gameenginedevs • • 2d ago

Snack Engine, A WebGpu Powered Game Engine

11 Upvotes

This is Pillow Cat running inside Snack Engine, A WebGpu powered game engine I’m building with TypeScript & Three.js,. I wanted a small game that would tell me where the engine still needs work. A hand hovering a little too far above a cat’s back is the kind of bug you can spot in half a second.

The petting code lives in the game project and uses the engine’s public JavaScript API. As you move the mouse, the game samples the surface of the cat’s back to angle the palm. Inverse kinematics makes the arm follow, and five contact points under the palm and fingers press and brush the fur. After a few seconds, “Purr Loading” fades in. Keep going for a minute and the cat starts purring.


r/gameenginedevs • • 2d ago

My Game Engine `Zeyrixon` written in C++

Thumbnail
youtube.com
4 Upvotes

So, this is the current state of my game engine Zeyrixon and it's written in C++, can anyone give tips on what to do next? (Other than finishing the AI Controller/Behavior Tree functionality, that's already in the works). Thank you!

Also, it isn't allowing me to put a second link on there, so I'm just going to put the source code link here Zeyrixon Source code


r/gameenginedevs • • 3d ago

Are you making your engine public?

18 Upvotes

r/gameenginedevs • • 2d ago

The Beast 2.2.0 mobile first webgpu engine

Thumbnail maximumroulette.com
0 Upvotes

I posted demo 2 - to show proof of concepts

Used volumetric tex proj, bloom, physics.

https://youtu.be/dO4LYo-zQ-Y?si=3xTlz0bQhXj3vmtk

[2.2.x] New postproccessing


FXAA GRADE MotionBlurPass CloudsVolumetric CloudsVolumetric2 

Networking is now modular/driven: Kurento/Openvidu support Native nodejs singnaling server (npm run dedicated) NETWORK API Level same : NET DRIVE (kurento,node signaling) 

addHeightfield for AMMO ,cannonjs + example addVehicle for AMMO, cannonjs + example Test claude vs chatgpt race gaem with the beast NET:

 // Easy way 
freekyChat.net = activateNet2({ backend: 'webrtc', sessionName: 'beast-room-01', domain: "https://localhost", signalingUrl: 'ws://localhost:2020', media: {audio: true, video: true} }); // or core access: net = new NativeWebRTC({ domain: sessionOption.domain, port: sessionOption.port || 2020, signalingUrl: sessionOption.signalingUrl, sessionName: sessionOption.sessionName, customData: sessionOption.customData, media: sessionOption.media || false, rtcConfig: sessionOption.rtcConfig }); 

carDemo.addProceduralMeshObj({ name: 'car-terrain', position: {x: 0, y: 0, z: -10}, scale: [1, 1, 1], geometryA: { type: 'heightfield', size: 1, segments: terrainColumns - 1, options: { heightData: terrainHeights, columns: terrainColumns, rows: terrainRows, elementSize: terrainElementSize } }, texturesPaths: ['res/icons/editor/chatgpt-gen-bg-inv.webp'], material: {type: 'standard'}, physics: {enabled: false} }); 

await carDemo.matrixPhysics.addHeightfield({ heightData: terrainHeights, columns: terrainColumns, rows: terrainRows, elementSize: terrainElementSize, position: {x: 0, y: 0, z: -10}, friction: 1, name: 'car-terrain' }); 
 
FXAA

r/gameenginedevs • • 2d ago

How I start Making Game Engine

Post image
0 Upvotes

I am unsure how start making game engine, My Vison is HD game engine. I have knowledge of C++, But I am unsure how headers work is like C++. Also, How Can I make Rendering System.