Unity-Runtime-Animation-Recorder icon indicating copy to clipboard operation
Unity-Runtime-Animation-Recorder copied to clipboard

file size and limiting bones.

Open spiraloid opened this issue 6 years ago • 2 comments

Hello, I'm looking at baking some simulated bones with this and am starting to update your scripts to allow for only recording bones specified by an avatarMask and to limit the recording framerate for 15fps. Basically I need to shrink the .anim file (don't need keys for position and scale on every frame).

Before I dive too far, I thought I'd check if you or anyone has already done this.

spiraloid avatar Jun 28 '18 05:06 spiraloid

Same problem. File is too big. 11 seconds -> 64 mb.

D3m0n92 avatar Jun 29 '18 18:06 D3m0n92

Well, this project still needs some work to be a "complete tool". For now, it still needs some customization to fit every case. For example, recording in Update, FixedUpdate or LateUpdate could matter when working with some other plugins. I didn't write options for every use case though.

In this case, you can simply add something like if( frameCount % 3 == 0 ) to limit the record rate. (I did this two days ago when I'm recording an AR effect for my project)

newyellow avatar Jul 01 '18 19:07 newyellow