[osg-users] Animating images
Stephan Huber
ratzfatz at digitalmind.de
Fri Jan 18 09:37:07 PST 2008
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
More information about the osg-users
mailing list