Re: [osg-users] Resizing an FBO camera with OSG 3.2.0

2018-01-03 Thread James Turner
> On 23 Dec 2017, at 10:45, Wojciech Lewandowski > wrote: > > Luckily I was able to quickly locate some code. Its a little different to > what I described earlier because its using 2 cull callbacks (no render > callback) and dummy group to update PreRenderCamera

Re: [osg-users] Resizing an FBO camera with OSG 3.2.0

2017-12-23 Thread Wojciech Lewandowski
Luckily I was able to quickly locate some code. Its a little different to what I described earlier because its using 2 cull callbacks (no render callback) and dummy group to update PreRenderCamera texture sizes but in general its same approach. I have cleaned it a bit from proprietary stuff. So

Re: [osg-users] Resizing an FBO camera with OSG 3.2.0

2017-12-23 Thread James Turner
> On 23 Dec 2017, at 09:28, Wojciech Lewandowski > wrote: > > Unfortunately I could not dig out the code I had to solve this problem. But I > did fight with it on couple occasions. I do remember that often the solution > I adopted had to use 2 callbacks

Re: [osg-users] Resizing an FBO camera with OSG 3.2.0

2017-12-23 Thread Wojciech Lewandowski
Hi, James, Unfortunately I could not dig out the code I had to solve this problem. But I did fight with it on couple occasions. I do remember that often the solution I adopted had to use 2 callbacks (cull/update callback + prerender/render/or postrender callbace). One update/cull callback was

Re: [osg-users] Resizing an FBO camera with OSG 3.2.0

2017-12-23 Thread James Turner
> On 18 Dec 2017, at 11:51, Robert Osfield wrote: > >if (modified) >{ >dirtyAttachmentMap(); >} Thanks Robert, Unfortunately this line is the part that I can’t figure out how to replicate in OSG-3.2 - resizing the textures is easy enough and

Re: [osg-users] Resizing an FBO camera with OSG 3.2.0

2017-12-18 Thread Robert Osfield
HI James, > Any hints on what else to try, to work-around this behaviour, or other > examples of keeping a full-screen FBO camera in sync with 3.2.x, would be > most appreciated. > > > I guess no one here is using 3.2.x any more? Or people are busy, of course. I've been away for the last 8 days,

Re: [osg-users] Resizing an FBO camera with OSG 3.2.0

2017-12-18 Thread James Turner
> On 8 Dec 2017, at 21:04, James Turner wrote: > > Any hints on what else to try, to work-around this behaviour, or other > examples of keeping a full-screen FBO camera in sync with 3.2.x, would be > most appreciated. I guess no one here is using 3.2.x any more? Or people

[osg-users] Resizing an FBO camera with OSG 3.2.0

2017-12-08 Thread James Turner
Hi, I’m trying to correctly support both OSG 3.2.x and 3.4.x in a codebase (since we need to support older versions of Debian / Ubuntu which still ship OSG 3.2.x as the supported version) I have some FBO camera which I’m resizing: in 3.4.x I use osg::Camera::resizeAttachments. In 3.2.x