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
I've come upon a reasonable solution based on some tests. Thanks again for the
help.
Brian
On Fri Jan 18 14:27 , Brian [EMAIL PROTECTED] sent:
Thanks for the suggestions, Stephan and Robert.
I've never used PBOs before, and judging from the header, that is the correct
way to set it up.
Thanks for the suggestions, Stephan and Robert.
I've never used PBOs before, and judging from the header, that is the correct
way to set it up. Once I have the object, is it a simple matter of calling
osg::Texture2D::setImage like:
texture = new osg::Texture2D;
image = new osg::Image;
Brian schrieb:
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?
try using PixelBufferObjects this will increase performance when
uploading the image to the gpu.
From my head:
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
5 matches
Mail list logo