Three.js Gif material loader
JavaScript
Switch branches/tags
Nothing to show
Latest commit 5b0368f Nov 16, 2012 @JordiRos Update README.md
Permalink
Failed to load latest commit information.
GLGif.js SetSpeed / SetLength fix Nov 15, 2012
LICENSE.md First version Nov 15, 2012
README.md Update README.md Nov 16, 2012

README.md

GLGif

Simple Three.js Gif loader, based on @thespite code and using shachaf's JSGif.

Using this snippet you can load all Gif frames in a THREE.Texture array, so you can draw any frame at any time, draw whole or part of a sequence with any speed, or reversed, whatever you think of, or access its pixels directly.

Loader has some issues and can't handle some of the Gif optimizations, it works better when Gif is not optimized and all frames are fully encoded.

Watch it live for a usage example, here Gif sequences are timed with BPM:

http://www.jordiros.me/glgifomatic/gangnam.html

http://www.jordiros.me/glgifomatic/napoleon.html