350
edits
Tobiaszimmer (talk | contribs) (→Code) |
Tobiaszimmer (talk | contribs) (→Code) |
||
Line 27: | Line 27: | ||
The video was rendered with [https://github.com/spite/ccapture.js/ CCapture.js], "a library to help capturing animations created with HTML5 canvas at a fixed framerate". | The video was rendered with [https://github.com/spite/ccapture.js/ CCapture.js], "a library to help capturing animations created with HTML5 canvas at a fixed framerate". | ||
Rendering was quite a challenge and took several hours, since the animation becomes slower with each dropped ball. Additionally, saving the output as batches of png files required some internal changes in the code of CCapture.js → https://github.com/spite/ccapture.js/issues/37 . The problem does not exist when exporting to webm format instead of png, and the quality is only slightly worse. | Rendering was quite a challenge and took several hours, since the animation becomes slower with each dropped ball. Additionally, saving the output as batches of png files required some internal changes in the code of CCapture.js → [https://github.com/spite/ccapture.js/issues/37 github issue]. The problem does not exist when exporting to webm format instead of png, and the quality is only slightly worse. | ||
You can download the code [http://www.tobiaszimmer.net/ball_simulations/10-300.zip here]. | You can download the code [http://www.tobiaszimmer.net/ball_simulations/10-300.zip here]. |
edits