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


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: