Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Unity doesn't play all frames of animation

Discussion in 'Editor & General Support' started by Melo, Sep 7, 2011.

  1. Melo

    Melo

    Joined:
    Jul 26, 2011
    Posts:
    4
    Heyho :)

    I created a charakter in Maya, when I imported it into Unity. The Charakter was too big, so I had to resize it and used the options of the importer.

    My Charakter has a Walk and Idle animation. The first has 24 Frames the other 72. In the Game the animation starts fine but it plays not all frames.

    E.g. of the 72 frames Unity plays only 52 frames. There is also a Problem with the 24 frames.

    I disabled the "Cut Frame Option"

    Additional Information: I baked the Animation on the bones. Exported the Mesh and the bones in fbx.

    So why doesn't it play all Frames?

    Greetings Melo

    (sorry this is a repost from unity answer. It's urgent because I have to hand in my animations on friday but also have finals on that day. this week)
     
  2. zine92

    zine92

    Joined:
    Nov 13, 2010
    Posts:
    1,347
    Look at Animations I am thinking have you added the required animations to the animations component on your object and have you define the frames for idle/walk?
     
  3. Melo

    Melo

    Joined:
    Jul 26, 2011
    Posts:
    4
    Today we messed around with the script...so the script stopped some parts of the walk-animation. The problem with the idle is solved as well.

    But thanks to your answer, I found out how to loop the animation
     
  4. GED

    GED

    Joined:
    Jan 23, 2008
    Posts:
    28
    I keep getting this problem with only half the animation frames playing back, what is the solution to this problem? I cant seem to figure it out? Is it that FBX is just not a great file format and unity is importing fbx's wrong? How can I set my software up to export fbx's that unity understands properly? Im using cinema 4d, a friend at work tried 3d studio max and got the same results! surely unity isnt this broken?
     
    araz01 likes this.
  5. GED

    GED

    Joined:
    Jan 23, 2008
    Posts:
    28
    Please help, I cant believe it is just us that are struggling with this.
     
  6. Sycle

    Sycle

    Joined:
    Nov 24, 2009
    Posts:
    446
    If you think your FBX files are exporting incorrectly, check that you have the most up to date FBX exporter, sometimes this is the issue.

    That said, can you open the Animation window within Unity and manually play the animation? How many frames does Unity say it has and can you scrub all the way to the end of it? This will let you figure out if it's a script issue or if the asset isn't being processed correctly.
     
  7. Bongo

    Bongo

    Joined:
    Jul 24, 2009
    Posts:
    75
    I may be making this up, but I think I once tried exporting an fbx from maya to Unity, and only got part of the animation to actually play. Turns out I wasn't using the split animation option (was just using the animation as is) but my time slider in maya wasn't showing the entire animation when exporting, so the fbx was only choosing to play part of the animation.

    I don't know if thats your issue, but it was quite a surprise when I found it out.
     
  8. GED

    GED

    Joined:
    Jan 23, 2008
    Posts:
    28
    I will have a look at the animation window and see what its doing but I tried using split animations before and setting it to different numbers but always got the same result.
     
  9. GED

    GED

    Joined:
    Jan 23, 2008
    Posts:
    28
    I checked the animation in animation view and it says it has 20 frames but it only has half the animation(10 frames of a 20 frame anim in cinema4d), do I need to set cinema4d to export at 60fps or something crazy?
     
  10. GED

    GED

    Joined:
    Jan 23, 2008
    Posts:
    28
    Well cinema4d Version 12 and above seem to export fbx animations fine previous versions of cinema and maya and max may suffer from this loss of frames when importing, this is a big problem.
     
  11. araz01

    araz01

    Joined:
    Aug 2, 2016
    Posts:
    53
    i am struggling too, cant seem to play what i have made, causing GREAT time loss and effort and goddam head ache, before i used humanoid but now, I CANT USE THAT ON A SPIDER! COME ON UNITY! GOD DAMMI
     
  12. araz01

    araz01

    Joined:
    Aug 2, 2016
    Posts:
    53
    for humanoid you can use humanoid and check certain checks in the animations tab for each animation to place at root and etc etc fixes it for some odd reason!