Hi Vincent, ah ok, you are not using RTT features. I would suggest to do so, because otherwise pixel which are outside of your viewport are undefined (in most case you will get the window boundaries too ;). With glReadPixels it can happen htat you even capture the mouse pointer, which is sometime not the thing you want, I suppose.
Ok, I suppose you then have a proper parameters set to image->readPixels(..., GL_RGBA, ...); ? If you capture your pixel information directly from the framebuffer then you have to setup the framebuffer in the proper way. It should support alpha values too. Check if you setup the display settings properly, here osgViewer::View::getDisplaySettings(), you have to setup proper amount of alpha bits (i.e. 8). In general, I really propose to use FBO with RTT, otherwise you could even capture other windows which overlap with yours if you capture pixels directly from the framebuffer. cheers, art ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=7232#7232 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

