- Timestamp:
- 10/06/08 19:03:32 (5 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/examples/osgimagesequence/osgimagesequence.cpp
r8918 r8992 94 94 else 95 95 { 96 imageSequence->setLength(float(imageSequence->getImages().size())*0.1f); 96 unsigned int maxNum = osg::maximum(imageSequence->getFileNames().size(), 97 imageSequence->getImages().size()); 98 99 imageSequence->setLength(float(maxNum)*0.1f); 97 100 } 98 101 } … … 126 129 texture->setImage(imageSequence.get()); 127 130 //texture->setTextureSize(512,512); 128 129 //texture->setUpdateCallback(new osg::ImageSequence::UpdateCallback);130 131 #else 131 132 osg::TextureRectangle* texture = new osg::TextureRectangle; … … 133 134 texture->setFilter(osg::Texture::MAG_FILTER,osg::Texture::LINEAR); 134 135 texture->setWrap(osg::Texture::WRAP_R,osg::Texture::REPEAT); 135 // texture->setResizeNonPowerOfTwoHint(false);136 136 texture->setImage(imageSequence.get()); 137 137 //texture->setTextureSize(512,512); 138 139 //texture->setUpdateCallback(new osg::ImageSequence::UpdateCallback);140 138 #endif 141 139
