Hi Jason, Changing the size of an image will require creation of a new texture object, something that is not ideal as it could cause a stall in rendering. Would it be possible to use a different texture for the first image? Would it be possible to resize the image to the size of the movie? Another thing you could try is to set the size of the texture to 640x480 prior to the first frame that it's rendered.
Robert. On Mon, Jun 8, 2009 at 6:39 PM, Jason Beverage<[email protected]> wrote: > Hi everyone, > > I'm thinking about how to implement an ImageStream that could display > different images based on the status of the image. For example, displaying > a "Buffering...." image when data is being downloaded from Internet. > > I'm using the setImage() function to alter the data of the underlying image, > and the issue I'm running into is that it resizes the image frames the size > of the first frame I send to the ImageStream. > > For example, if I set a 256x256 image that says "Loading..." while the movie > data is being download from the Internet, once the frames start coming in at > say 640x480, they are all resized to 256x256 b/c that was the initial size > of the image. > > I've looked at the osgimagesequence example and it does the same thing, all > the images are resized to size of the first image. > > Is there a way to avoid this resize or am I going about this in a crazy > way? :) > > Thanks, > > Jason > > _______________________________________________ > 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

