XNA Skinned Model - Keyframe.Bone out of range exception

Posted by idlackage on Game Development See other posts from Game Development or by idlackage
Published on 2013-02-27T05:26:49Z Indexed on 2013/06/30 10:29 UTC
Read the original article Hit count: 289

Filed under:
|

I'm getting an IndexOutOfRangeException on this line of AnimationPlayer.cs: boneTransforms[keyframe.Bone] = keyframe.Transform;

I don't get what it's really referring to. The error happens when keyframe.Bone is 14, but I have no idea what that's supposed to mean. The 14th bone of my model? What would that even be? I read this thread, but nothing there seemed to work. I don't have many bones, stray edges/verts, unassigned verts, unparented/non-root bones, or bones with dots in the name. What else can I be missing?

Thank you for any help!

© Game Development or respective owner

Related posts about xna-4.0

Related posts about skeleton-animation