Hi, you could have a look at the osgstereomatch example, see also the readme. I'm not sure what you mean by the "dynamic", but the example uses ping-pong using a shader parameter.
jp Roman Grigoriev wrote: > Hi guys! > > Could you please advise me how to make dynamic ping pong rendering using > osg2.4 > > I tried but it doesn’t work. > > tex1 and tex2 – textures for rendering. > > So I need in even frames: > > Camera->setRenderTargetImplementation(osg::Camera::FrameBufferObject); > > Camera->attach(osg::Camera::COLOR_BUFFER,tex1) > > Camerastateset->setTextureAttributeAndModes(0,tex2,osg::StateAttribute::ON); > > In odd frames: > > Camera->setRenderTargetImplementation(osg::Camera::FrameBufferObject); > > Camera->attach(osg::Camera::COLOR_BUFFER,tex2) > > Camerastateset->setTextureAttributeAndModes(0,tex1,osg::StateAttribute::ON); > > Thanx in advance > > > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org