This question will be composed of 3 somewhat separate questions regarding the creation of animated assets in Source. The documentation is quite poor and I am having a hard time understanding the errors that the model compiler throws.
1. Parent bones
I was trying to modify the collision mesh of an existing animated asset. I was able to make it work OK when animated in Blender but when compiled it throws something along the lines of "joint1 and joint2 have no parents, there can't be two root bones".
In the model viewer I can see two collision boxes, one static and another that is animated but which doesn't behave as I expected (it moves like the original collision mesh of the asset).
The problem disappears when I make all the vertices of the collision mesh have the same parent bone. See https://developer.valvesoftware.com/wiki/Studiomdl_Data#Triangles , it would be the field (first column).
So the question is: does source allow you to have a collision mesh where all vertices don't share the same parent bone ? if not, how could I go around making a collision box that could be deformed (not only translated with the common parent bone) ?
2. Conflicting bone names?
Sometimes, when creating certain skeletons the compiler throws the following error:
<Sergiy> Conflicting bone names: root vs root vs aaaa, try deleting one of the bones.
This is an old bug in studiomdl code that is about to be deprecated, so it may not be worthwhile fixing it
and the compilation is totally stopped. I tried renaming the bones, and changing the bones hierarchy to no avail. It should be noted that there are no two "root" named bones as the error might suggest. Even more, sometimes it shows three different named bones.
I don't understand what could be the cause of the error.
3. bone_followers
Finally, I noticed that the .qc of the decompiled model of some asset has a part like this:
$KeyValues
{
bone_followers
{
"bone" "joint15"
}
}
what does this (bone_followers) do?