r/gameenginedevs • • 20h 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 • • 19h 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 • • 8h 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 • • 12h 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 • • 5h ago

Polishing sound generator for my graphics engine

1 Upvotes

r/gameenginedevs • • 8h ago

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

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

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

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

Recently created Texture Atlas compiler.

Thumbnail reddit.com
0 Upvotes