Hi!
I'm doing the porting of my 3d-application from OSG+wxWidgets to OSG+Qt.
My application uses heavily PixelBufferObject (multi pbo) to do the
readback from GPU to CPU and it works fine.
But during the porting I discovered that the PixelBufferObject doesn't
work.
As a further test I put the osgscreencapture sample in a
osgQt::GraphicsWindowQt and I found the same problem. My new sample
works with --no-pbo (that is with a simple READ_PIXELS) but it doesn't
work if I use --single-pbo or --double-pbo.
What I have observed is that the buffer returned by glMapBuffer isn't
NULL but is all black :
.......
GLubyte* src = (GLubyte*)ext->glMapBuffer(GL_PIXEL_PACK_BUFFER_ARB,
GL_READ_ONLY_ARB);
if(src)
{
memcpy(image->data(), src, image->getTotalSizeInBytes());
ext->glUnmapBuffer(GL_PIXEL_PACK_BUFFER_ARB);
}
.......
After that the image is all black.
Note: My OS is Windows-7 (32 and 64 bit) and I use an NVidia Quadro 3700
or 4000.
Anyone has a clue?
Cheers,
Sergio
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org