Search Unity

Question huge .anim file size

Discussion in 'Animation' started by Schagg, Oct 18, 2020.

  1. Schagg

    Schagg

    Joined:
    Dec 15, 2018
    Posts:
    6
    Hi,
    I am in the process of recording dialogue via FaceCapX and a Unity Animation recorder script that checks for changes between frames and if there is one it saves the value of 52 blend shapes, as well as head transform rotation and position.

    To my limited understanding, the file should be containing something like (int) frame + (double) blend shape value per frame.? Which would lead to something like:

    in byte:
    4 + (8 * 52 blend shapes) * 60 frames per second * 60 seconds = 1,497 MB per minute.

    Anyway, I end up with 18 MB for roughly 15 seconds of recording.

    What is missing in my calculation?
    Is there a bug in unity .anims?