Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Combining animations, workaround needed....[solved]

Discussion in 'Scripting' started by monark, Jul 15, 2009.

  1. monark

    monark

    Joined:
    May 2, 2008
    Posts:
    1,598
    Ok so I have a lot of animations all exported into one fbx file and when I split them up in Unity I hit a problem, the further through the sequence I go the more I hit accuracy errors.
    So for example I have a clip that starts on frame 929 and ends on 978 but when I play this clip and loop it the first frame "pops" some of the objects are basically moved to the wrong place.
    If however I write out an fbx which is only 50 frames long with the same animation in it and then play that in unity the "pop" is gone. So it doesn't seem like a problem inherent in the fbx file but in either the way it is split or the way a long animation file is played back.
    I have sent this off as a bug but in the meantime I need a way to remove the popping.

    Is there a way to combine animation clips from fbx or another format that doesn't require duplicating all the geometry for every clip?
    Or has anyone hit the same problem and found any ways around it?
     
  2. monark

    monark

    Joined:
    May 2, 2008
    Posts:
    1,598
    ok to answer my own question, add some padding. A frame or 2 either side of each clip sorts it out.