Re: [osg-users] RTT issue when switching from fullscreen to windowed mode

2011-07-09 Thread Alessandro Terenzi
I kept playing with RTT and I noticed an issue: If you do not set a single threading model then if you go from fullscreen to windowed mode and back to fullscreen, the system hangs (I get a black screen and I can only reboot) - you may have to press 'f' several times before the hang occurs...

Re: [osg-users] RTT issue when switching from fullscreen to windowed mode

2011-07-07 Thread Alessandro Terenzi
Hi, I just tried the prerender example by issuing the --fb parameter and I get the same problem as described above...so I guess that this is the expected behaviour even though it is not the effect one could expect. So, is there something that must be done in order to use RTT when a window

Re: [osg-users] RTT issue when switching from fullscreen to windowed mode

2011-07-07 Thread J.P. Delport
Hi, this is known behaviour. Currently OSG caters for the common case where the size and attachments of the RTT camera does not change frequently. There are workarounds. I suggest you search the list archives for runCameraSetup. You can also check how osgPPU handles resizes. rgds jp On

Re: [osg-users] RTT issue when switching from fullscreen to windowed mode

2011-07-07 Thread Alessandro Terenzi
Thanks JP, after having searched the archives, I tried to create a cull callback and in its operator() method I tried different things among adding these lines: Code: cv-getCurrentRenderBin()-getStage()-setCameraRequiresSetUp(true);

Re: [osg-users] RTT issue when switching from fullscreen to windowed mode

2011-07-07 Thread J.P. Delport
Hi, Are you recreating the texture so that it fits the new view size? Are you modifying the RTT camera viewport? Above is however not needed when using FBO RTT, the texture size can stay the same no matter what the final view window size is, unless you want to match it pixel for pixel. I

Re: [osg-users] RTT issue when switching from fullscreen to windowed mode

2011-07-07 Thread Alessandro Terenzi
Well, no, I was not re-creating the texture, so if I understood it correctly: if I want to use the FRAME_BUFFER target I also need to re-create the texture every time a resize occurs and also call runCameraSetup as well, right? Actually the decision not to use FBOs is not final, I'm just trying

Re: [osg-users] RTT issue when switching from fullscreen to windowed mode

2011-07-07 Thread J.P. Delport
Hi Alessandro, On 07/07/11 15:46, Alessandro Terenzi wrote: Well, no, I was not re-creating the texture, so if I understood it correctly: if I want to use the FRAME_BUFFER target I also need to re-create the texture every time a resize occurs and also call runCameraSetup as well, right? If you

[osg-users] RTT issue when switching from fullscreen to windowed mode

2011-07-06 Thread Alessandro Terenzi
I started playing with RTT cameras and, having looked at some OSG examples, I tried my own code but when I switch from fullscreen to windowed mode the rendered texture doesn't appear as expected: it seems not to cover the whole quad as it does while in fullscreen, only a part of it is updated