Hello Guest

Skeletal Animation in LWJGL

  • 1 Replies
  • 3938 Views
Skeletal Animation in LWJGL
« on: June 17, 2015, 19:22:20 »
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

Re: Skeletal Animation in LWJGL
« Reply #1 on: June 18, 2015, 07:38:16 »
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.