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:

  1. Install XAMPP Lite
  2. Download madtealab_save_anim.zip
  3. Extract zip to C:\XAMPPlite\htdocs
  4. You might want to update index.html to the latest version
  5. Start XAMPP Lite
  6. Check this example (note that this url is local!)
  7. Click on the “PNG” icon while holding down shift
  8. 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:

Comments are closed.