HI Brian, Create a subclass from osg::ImageStream as pre the video plugins (src/osgPlugins/xine and src/osgPlugins/quicktime), this will provide general controls as well as support for automatic use of PBO's for texture downloads. Alternatively you could do the PBO setting yourself.
Also use TextureRectangle to avoid any resizing to a power of two. Or use non power of two textures. Robert. On Jan 18, 2008 4:39 PM, Brian <[EMAIL PROTECTED]> wrote: > Hi, > > I've recently started looking into rendering a Macromedia Flash movie to an > OSG Texture2D object. I have code in place that gets the job done, but its > performance is slower than I'd like. I realize that part of the problem > stems from the fact that the Flash control renders to a Windows GDI bitmap. > I create the bitmap in such a way as to have immediate access to its data, > but I feel that the GDI rendering process plus the call to > osg::Image::setImage to refresh the texture's image is causing the bottleneck. > > Is there a faster alternative than using osg::Image::setImage? Or is there a > way that I can directly use HDC that the Flash control renders with OSG? > > Thanks, > Brian > > P.S. We are still using OSG 1.2 > > _______________________________________________ > 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

