A tool to convert blockbench animation file to expression that can be add use in 1.12 model
this respitory have two files:
-a PDF to better explane how to use the tool
-CPM_interpolation.html : upload your animation file from blockbench on this page and put the output lines in the model.json. more info in the PDF
This tool use a fourier aproximation that only work on periodic function .
This output is a 1-periodic function that will complete a loop when the timer variable goes from 0 to 1 (or any interger n to n+1) [in the pdf, the cos and sin value have strange periode, don't worry about it, the screen shot are from an older version :). ]
This tool was made by me, for any question, you can contact me on discord (▄█▀zerustu▀█▄#0075) or post an issue on this github.
thanks to dearFox for his interpolation tool, this project start from his tool and thanks to gamepiaynmo for creating CPM.
you can find dearfox's interpolation tool (1.16) here and my 1.16 tool here