In Producer under the Test/PBuffer directory, you'll find a snapshot.cpp file.  This does what you want, albeit for a single frame.

-don

On 5/9/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
I have build a small application modeled after the one in Producer/Test/PBuffer.  The major difference here is that where that example assigns the PBuffer's texure to another camera as in:

camera->getRenderSurface()->setReadDrawable(pBufferCamera->getRenderSurface());

I want direct access to the texture in pBufferCamera's render surface.  Ideally, I would want a pointer to some standard GL_RGB formatted OpenGL image.  I have tried a couple things but I haven't found exactly how to get the texture data from the pBufferCamera.  Any Ideas?



Get amazing travel prices for air and hotel in one click on Yahoo! FareChase


_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/


_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to