Saving Animation
Ok, this is not really recommended, this was way too long ago, you probably don’t want to mess around with this stuff…
With some effort, you can render your Mad Tea Lab animations in high quality as a png sequence. Since javascript on the web is designed to be safe, it cannot really access the harddrive. So what you have to do is to set up a local webserver, send the data using http, and save it from php. If you want to try this out, follow these steps:
- Install XAMPP Lite
- Download madtealab_save_anim.zip
- Extract zip to C:\XAMPPlite\htdocs
- You might want to update index.html to the latest version
- Start XAMPP Lite
- Check this example (note that this url is local!)
- Click on the “PNG” icon while holding down shift
- Done! Now you should have your png-sequence in the dir C:\XAMPPlite\htdocs\madtealab\out
To convert png sequences to movies, you can use FFmpeg.
Below is a movie created from the example: