[osg-users] Read frame buffer back into main memory
Antoine Rennuit
antoinerennuit at hotmail.com
Fri Mar 2 08:12:54 PST 2018
Hi all,
Hum, it seems my case is a bit more complex than expected. The camera I want to read the buffer from is a custom created camera:
Code:
// Curvatures camera.
m_curvaturesCamera = new osg::Camera();
m_curvaturesCamera->setClearMask(GL_DEPTH_BUFFER_BIT); // The camera only clears the depth buffer before rendering (not the color buffer).
m_curvaturesCamera->setRenderOrder(osg::Camera::PRE_RENDER);
m_curvaturesCamera->setReferenceFrame(osg::Camera::RELATIVE_RF);
I have had a look at osg::Image, but it does not seem very clear which function to use and above all, how I shall indicate to the osg::image which camera it needs to read from.
Any idea?
Thank you!
Cheers,
Antoine.[/code]
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=73002#73002
More information about the osg-users
mailing list