Hi Edwin, renderbuffer's are strictly a FBO feature that you can't attach to general graphics context so won't work if you just attach buffers to a viewer's main Camera that is attached to a GraphicsWindow. To use the feature you'll need to create a rendering to texture Camera which has render buffer attachments and separate Camera attached to the GraphicsWindow that does the final renderer. Have a look at a examples like osgdistortion or osgmultirendertargets.
Robert. On 31 October 2012 09:53, Edwin Rijpkema <[email protected]> wrote: > Hi, > > In our project we are building and interface between OSG and OpenCL. To > remove all the overhead in this interface I want OSG to render to two > renderbuffers that are attached to an FBO of the main camera. One > renderbuffer is for GL_RGBA data, the other for GL_DEPTH_COMPONENT24 data. > > Until now, I have not been successful to get any useful data in the > renderbuffer attachments of the FBO. What I am looking for is a working and > building example that renders to one ore more renderbuffer attachments to > the FBO of the (preferably main) camera. > > Best regards, > > Edwin > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=50906#50906 > > > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

