Hi Michel,
On 8/10/06, Elk, M.G. (Michel) van <[EMAIL PROTECTED]> wrote:
Hi Robert, thanks for the quick response. We (Raymond de Vries [see earlier mails about ImageStream] and I) are working on video-streaming textures where the size of the texture can change dynamically. From the image-stream class we only have access to the image, not to the texture. However you have created a nice mechanism that allows us to dirty the image (edit or resize) and that will trigger the texture to update automatically. Unfortunately for some (perhaps very well considered) reason, the texture will always keep its original size and will rescale the image to fit in it. This will use a lot of CPU-time if each video-frame is resized and has some other disadvantages I mentioned before. Do you know why the texture-size is left unchanged?
Inside osg::Texture* the Image::dirty mechanism is used to tell it to subload the data, and in this context subloading is to an existing OpenGL texture object of fixed size. Potentialy osg::Texture* could be tweaked to pick up on a change in size and allocate a new texture object. Robert. _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
