Hi Brian, The animated gif plugin also derives a class from ImageStream, which is internally used and can be found in the ReaderWriterGIF.cpp source code. It also overrides necessary methods to implement movie controlling functionalities, but has no inheritance relation with ImageSeqence. Cheers,
Wang Rui 2010/10/13 Brian Tomko <[email protected]> > When I load an animated gif file into osgmovie demo, the movie plays fine. > However, the '+' key slows the movie down, and the '-' key speeds the movie > up. Why are the keys backwards? I am using osg 2.8.3 on windows. > > Also, in the demo, why is the pointer returned by the osgDB::readImageFile > casted to an ImageStream as opposed to an ImageSequence (it failes to cast > to an ImageSequence)? I guess I'm not sure what the difference between the > two are. The implementation for the speed up and down are missing in the > ImageStream class: > > Code: > virtual void setTimeMultiplier(double) {} > virtual double getTimeMultiplier() const { return 0.0; } > > > but the implementation is present in the ImageSequence class: > > Code: > virtual void setTimeMultiplier(double tm) { _timeMultiplier = tm; } > virtual double getTimeMultiplier() const { return _timeMultiplier; } > > > ImageSequence is the only class I see that inherits from ImageStream. > > Thanks, > Brian > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=32668#32668 > > > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

