[osg-users] Serialization with virtual base classes

2017-12-23 Thread Hartwig Wiesmann
Hi, I already asked a similar question a few days ago but did not get an answer. I try to be a bit more specific. Assume I have the following definitions: Code: class VirtualBaseClass : public osg::Object { }; class A : virtual public VirtualBaseClass { }; class B : virtual public

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