What is this?
Threecap is a library which allows you to capture the output of a Three.js app or a 2d canvas. Threecap runs entirely in the browser, and is capable of outputing full-motion h264 MP4, GIF, Ogg Theora, VP7, VP8, VP9, WebM, and even FLV files.
How does this work?
var composer = ;// set up effects passes for your app herevar threecap = ;threecap;
Here's a fancy diagram showing how it works:
Why would you do this?
Some people might argue that you could do the same as this tool using a desktop app like Fraps to capture videos like this. That's true of course, but by using Threecap you can offer this functionality to all users of your project, allowing them to record gifs and videos of their gameplay to share with friends. Using a system like Elation Share you can upload these videos and images directly to cloud services like Dropbox, Google Drive, Youtube, Imgur, etc.
Who is responsible for this?
Threecap was created and is maintained by James Baicoianu