The osgscreencapture sample does the following:

Code:
                    if (gc->getTraits()->alpha)
                    {
                        osg::notify(osg::NOTICE)<<"Select GL_BGRA read back 
format"<<std::endl;
                        _pixelFormat = GL_BGRA;
                    }
                    else
                    {
                        osg::notify(osg::NOTICE)<<"Select GL_BGR read back 
format"<<std::endl;
                        _pixelFormat = GL_BGR;
                    }




to determine the pixelFormat.

When I look at the traits, I see what is attached.  It has a format of "0" 
which of course doesn't match up with any of the  openGL formats that I see 
that are all in the 0x8xxx range

Is there some other way to get the pixelFormat?  Why/how could the memcpy be 
1/2 speed when using multiple PBOs?

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=22474#22474




Attachments: 
http://forum.openscenegraph.org//files/capture_900.png


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

Reply via email to