I’ve been brainstorming a while here, but I keep going in circles and could use some outside input.
I am making a custom engine for my game and I want to do my own code for animation skinning and maybe also some animation editing.
Typically it looks like file formats have just the mesh and the animation stored in separate files, or sometimes they are all together in just one file.
But I was thinking maybe it makes sense to store the skeleton separately from all of this. That way I can attach the animations to the skeleton and edit them at will, without worrying about the mesh details at all. And most importantly share them between multiple meshes. Especially in the sense of clothing to mount onto a character. So in code I want to be able to simply have some function like skeleton::mountMesh() and then whatever animations I play for the skeleton and any blending, will also be applied to everything mounted to it.
I guess it’s an organizational problem more than anything. It seems like this will make it harder to keep track of everything. I guess if I retain a joint name in all three files then that should be enough to sort everything out, but maybe I am barking up the wrong tree.