Search Unity

Keyframe Reduction?

Discussion in 'Editor & General Support' started by Ramen Sama, Nov 30, 2009.

  1. Ramen Sama

    Ramen Sama

    Joined:
    Mar 28, 2009
    Posts:
    561
    What exactly happens to the animation when this option is enabled for importing animations?

    Obviously it reduces some key frames somewhere, somehow. But it's there a pattern or algorithm or something to it? There's not really any information on it in the documentation.
     
  2. jonas-echterhoff

    jonas-echterhoff

    Unity Technologies

    Joined:
    Aug 18, 2005
    Posts:
    1,666
    Basically key frame reduction will simply go through all key frames in your animation, and evaluate the animation curves with and without that key, and if the difference is smaller then some defined delta, the key is removed.
     
    Tdrdimov and DevDop like this.
  3. Ramen Sama

    Ramen Sama

    Joined:
    Mar 28, 2009
    Posts:
    561
    So by that logic, if an item is keyframed, but doesn't change it's values, it's deleted?

    When exporting from lightwave, i find it's best to simply keyframe everything every frame to ensure that the animation in unity is as accurate as possible. but i get worried about the overhead of all the keyframes.