Hi, I am trying to implement a monochrome camera in my application, which is using osg::Ocean. However I've encountered a problem related to osg::Ocean.
What I am trying to do: take the main camera and set it to use Frame Buffer Object and render into texture. Then I am adding a slave camera which will render a screen quad with the texture coming from the main camera and use my shader to create monochrome effect. Everything works except setting main camera to use FBO and render into texture does nothing at all. If i remove osg:Ocean from the scene everything works. I've tried this in osg::Ocean example too. Code: viewer.setSceneData( root ); osgViewer::ViewerBase::Views views; viewer.getViews(views); osgViewer::View* view = views[0]; osg::Camera* mainCamera = view->getCamera(); mainCamera>setRenderTargetImplementation(osg::Camera::FRAME_BUFFER_OBJECT); viewer.realize(); Again if I have osg::Ocean inside of the scene setting FBO for main camera does not seems to do anything and everything works fine without osg::Ocean. I assume it has to do something with the way osg::Ocean does it's passes. However I wonder if there is some way I can achieve my goal? Thank you! Cheers, Janna ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=50178#50178 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

