Re: [osg-users] Slave camera rendering

2011-04-29 Thread Sergey Polischuk
Hi, Zuzana I'm not quite familiar with slave cameras setup, but i did lens-like effect recently with rtt cameras. I had two rtt prerender cameras (not slaves of main cameras, just regular ones added to graph) rendering scene, one - for normal scene, one for zoomed view(it had different projecti

Re: [osg-users] Slave camera rendering

2011-04-23 Thread Zuzana Číková
Hi, I used the masks as you suggested, and it works as I want, now I am trying to somehow make the viewport moveable, so it would look like magic lens. I was suggested to render the second, lens camera to texture so it could be made moveable in simplier way. This is my code for adding textur

Re: [osg-users] Slave camera rendering

2011-04-06 Thread Robert Osfield
Hi Zuzana, One way to have different rendering in different cameras is use a seperate osg::Camera::setCullMask(uint) on each of the Cameras and then a matching NodeMask above different subgraphs that you want rendered for each of the cameras. The osgstereimage provides an example of this in actio