I am using Assimp.net to import animated .dae files into my OpenTK engine and struggling to establish a usable hierarchal bone structure.
In the tutorial I am following, the root bone, or "joint", contains a list of it's children joints, and those a list of their children and so on.
Assimp returns each imported Mesh
object with a list of Bone
objects, emcapsuling the bone's Name
, OffsetMatrix
and VertexWeights
, but nothing about it's children or parent bones.
The Scene
, which contains the Mesh
, does have a list of total nodes
(some of which are bones) and these do have a parentName
value but building the hierarchy through recursive comparison checks is getting messy quick and is far from functioning.
How can I the isolate the root bone, then it's children, then their children, etc?