Hi,

I'm trying to disable a render-to-texture by removing the slave cameras, used 
for the RTT, and by restoring the main camera. But it seems I'm not able to 
restore my main camera to render into the frame buffer again.

I set the main camera to render to texture by following:

Code:
mOrginalRenderTargetImpl = mInputCamera->getRenderTargetImplementation();
mInputCamera->setRenderTargetImplementation(osg::Camera::FRAME_BUFFER_OBJECT, 
osg::Camera::PIXEL_BUFFER_RTT);
mInputCamera->attach(mAttachedBufferComponent, mSceneTexture.get(), 0, 0, 
false, antialiasing, antialiasing);



And I'm restoring by this:

Code:
mInputCamera->setRenderTargetImplementation(mOrginalRenderTargetImpl);
mInputCamera->detach(mAttachedBufferComponent);



Is something I missed?

Thanks.
Kenzo

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





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

Reply via email to