Ok I need a little trouble shooting with animations with dbpro.
I'm making a really complex character animation for my game. Basically, in the region of 50 different animations, from combat moves, to death moves, injury moves, getting up from the ground, jumping climbing etc. The basic pattern of my system is:
oLoop Current Animation over and over
oWhen a new animation is required
-Stop current animation
-Set keyframe to first frame of new animation
-Interpolate there over the next 4 cycles
-When done, start new animation looping/playing
It all works fine. I can seemlessly move from running, to jumping, to falling, landing etc. All the animations play fine, and animate as expected. However, certain combinations of animations act strangely.
For example, I use a generic jump animation for jumping from stand still, or from walking forwards. From stand still, when I hit jump, it interpolates to the first keyframe of the jump animation fine, then runs the animation fine, and my character jumps. However, from walking, it all works in exactly the same way and works fine until half way through the jump animation, where the lower right leg goes insane for a few frames, then continues as normal.
This is weird.
-It's nothing to do with frame interpolation, because its all fine at that stage.
-It's nothing to do witht the code, cos at the stage of the glitch, there isnt any being run - just the animation itself.
-It nothing to do with a glitch inside the animation, as the animation looks fine in milkshape, as well as runs fine in db on its own, and fine when run after all other animations.
-The error only occurs when this animation is run after the walk animation.
I can only summize it's something to do with specific joint rotations, but I use the same local rotation for all animations. I could understand if it was during the interpolation stage, and db was converting a very twisted limb from another animation to the rotation of another limb, and it had to go around the houses, but that's not the case, because its mid animation. I have gone back into the animation and forced keyframes everywhere to not give any freedom of interpretation to db - it just has to obey the keyframes, but still I get the twitching rotating mad leg for a few frames.
Anyone have any clue? I am using Milkshape and the JT Exporter, and it's all been fine, except for these rare combinational glitches.