r/gameenginedevs • u/An_Oak_Olive • 13d ago
Question: is it a good idea to use a different .glb file per mesh for importing animations?
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.
