Skip to content
ofxMovieClip & ofxImageSequenceLoader are a set of helper classes for loading and controlling image sequences. These were created to add simple timeline control ( play(), stop(), gotoAndPlay(), etc ).
C++ Makefile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
ofxMovieClip
.gitignore
README.md

README.md

ofxMovieClip & ofxImageSequenceLoader are a set of helper classes for loading and controlling image sequences. These were created to add simple timeline control ( play(), stop(), gotoAndPlay(), etc ).

Now templated with ofxTextureMovieClip/ofxTextureImageSequence for ofTexture's, and ofxPixelsMovieClip/ofxPixelsImageSequence for ofPixels. ofPixels are good for large image sequences, stored on disk instead of graphics card.

Also added ofxSpriteSheelLoader & ofxSpriteSheetMovieClip for single image sprite sheets.

Credit

ofxImageSequenceLoader is just a modified version of FlightPhase's http://www.flightphase.com ofxImageSequence.

Sample usage

// setup image sequencer
ofxTextureImageSequenceLoader imageSequence;

// load a folder of images as image sequence -optional 2nd paramter is frame label, if empty it defaults to folder name. eg "frogs"
imageSequence.loadAndCreateSequence("frogs");
imageSequence.loadAndCreateSequence("horses");

// create a movieclip and pass in a reference to the ofxImageSequenceLoader & desired frame delay in seconds
ofxTextureMovieClip mc;
mc.init(&imageSequence, 1.0/30.0f); 

// control the movie clip timeline from keyboard events/mouse events etc.
mc.gotoAndPlay("horses");

// in your main draw loop
mc.draw();

Trent

You can’t perform that action at this time.