Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


ymiaw

Member Since 23 Mar 2013
Offline Last Active Private

Topics I've Started

Animations snapping/cutting off before they're done

23 March 2013 - 10:59 PM

I'm using SkinnedModel and attempting to play animations for my models. I have all animations in one fbx file, as that's apparently supported by XNA 4.0 Refresh, but now I'm not too sure about it; all my animation clips show up as having the same duration and number of keyframes.

 

What I'm doing is same as in the skinned model sample:

 

 

// In LoadContent()
SkinningData skinningData = currentModel.Tag as SkinningData;
animationPlayer = new AnimationPlayer(skinningData);
AnimationClip clip = skinningData.AnimationClips["Walk"];
animationPlayer.StartClip(clip);

// In Update()
animationPlayer.Update(gameTime.ElapsedGameTime, true, Matrix.Identity);
 

 

 

Am I missing something? Is having all animations in one file the reason for my clips all having the same duration/number of keyframes?


PARTNERS