Skeletal Animation in LWJGL

Started by Guy1524, June 17, 2015, 19:22:20

Previous topic - Next topic

Guy1524

Hey guys so I know this probably is way too specialized but I really need help and would greatly apprieciate it.  Anyway, so I have loaded a skinned mesh into my game engine and I am trying to test it.  When I try to modify the rotation of the left arm, it does this: https://www.youtube.com/watch?v=3layd7y_S54  Here is my code: http://pastebin.com/RfxZvgMj

Kai

What people usually do is to disassemble the whole thing into its parts and test each part separately and thoroughly.
For example:
- Do your math classes work the way they are supposed to, i.e. creating rotation, translation and scaling matrices and multiplying them correctly?
- Do you concatenate the bone transformation matrices in the right way, i.e. pre- vs. post-multiplication, row-major vs. column-major layout / transposed?
- Does your skinning apply the right vertices to the right bones?
- ...
So build small unit tests that test each of these "units" separately.