On Thu, Jun 26, 2008 at 5:52 PM, Carlos Sanches <[EMAIL PROTECTED]> wrote:
> I m doing this :
>
>   Ximage->readPixels(100,100,640,480, GL_RGBA,  GL_UNSIGNED_BYTE);
>   osgDB::writeImageFile(*Ximage,"teste.bmp");
>
>  but this is creating a black image :(

You are likely just reading pixels from the wrong thread.   Where
abouts to you call the readPixles?

Have you look at the osgscreencapture example in the SVN version of
the OSG for inspiration.

Robert.
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to