I'm trying to make an animation from a Collada file, but I'm not having any success in animating it correctly. I assume it's an error in the Quartenions class, either during creation from matrices or when converting to rotation matrices.
I've tried two methods, but neither worked. I'm following the tutorial on the ThinMatrix YouTube channel. I took care to transpose all the matrices coming from the Collada file. I've already checked the indices of the animation transformation matrices that are passed to the Shader. I've already tried using different Inverse Bind Matrices. I've already changed the multiplication order of all the animation matrices: vertex * bindShapeMatrix * TransformMatrix * InvBindMatrix, but without success. All I get is a shapeless goo from the movie "The Thing".
The vertices are saved in a file named "body.txt", and the project is stored at in this GitHub repository. The model is in the Assets/human/human.dae".
I've already tried using the INV_BIND_MATRIX provided by the controller skin, as well as creating my own inverse. I've already tried multiplying the animation matrices with just the parent matrices, as well as multiplying with the parents until reaching the root joint. I have already tried multiplying the bindShapeMatrix with the vertices in the Shader, with the invBindMatrix, with the Transform matrix, from left to right. Nothing works.
