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: image->setPixelBufferObject(new 
osg::PixelBufferObject(image));

Is your image power-or-two? You mentioned Texture2D, perhaps 
TextureRectangleRect is better suited.

Perhaps you can render directly into the image's data. When rendering 
quicktime-movies I set up the movie's context to the image's data, no 
need to copy the current frame from one buffer to another. and then 
upload it to the GPU:


Hope that helps,

Stephan
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to