05.01.2013, 03:20
Hello everyone!
I have a problem with animation from .ifp.
Parser is done. It parse .ifp file and grab from there animation data.
After it, I try to construct first frame.
Each frame consists of quaternion and time. Root frames also store translation.
Ok. I have a some skeleton of my character (just points to show joints).
I builded hierarchy of bones, and pass it from the root to the children with queue.
Each bone store itself matrix of transformation(it must be transformation from world to object space and backward).
Ok, in each bone of traversal, I construct matrix from quaternion, get matrix from parent and multiply them.
That is all.
Now, the problem: my skeleton in first frame after transformation of points become to crap.
Anyone know how to solve this problem? (problem in math, I suppose).
I have a problem with animation from .ifp.
Parser is done. It parse .ifp file and grab from there animation data.
After it, I try to construct first frame.
Each frame consists of quaternion and time. Root frames also store translation.
Ok. I have a some skeleton of my character (just points to show joints).
I builded hierarchy of bones, and pass it from the root to the children with queue.
Each bone store itself matrix of transformation(it must be transformation from world to object space and backward).
Ok, in each bone of traversal, I construct matrix from quaternion, get matrix from parent and multiply them.
That is all.
Now, the problem: my skeleton in first frame after transformation of points become to crap.
Anyone know how to solve this problem? (problem in math, I suppose).