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

James Turner zakalawe at mac.com
Wed Jan 3 07:21:26 PST 2018

> On 23 Dec 2017, at 10:45, Wojciech Lewandowski <w.p.lewandowski at gmail.com> 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 texture sizes but in general its same approach. I have cleaned it a bit from proprietary stuff. So rather treat it as an example code blurb. I did not try to compile it. But in generally this approach worked for me. I think that cull callback attached to PreRenderGroup can be replaced by some callback in main camera. But for some reason we could not do it (I do not recall why, maybe main cam had some other callbacks attached) and  instead just added it in dummy group.
> Cheers,
> Wojtek Lewandowsk

(just catching up on email after the holidays)

Thanks, that’s a big help indeed.

Kind regards,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20180103/7b6e6e84/attachment.html>

More information about the osg-users mailing list