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

James Turner zakalawe at mac.com
Sat Dec 23 00:09:26 PST 2017



> On 18 Dec 2017, at 11:51, Robert Osfield <robert.osfield at gmail.com> 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 I’ve already been doing that, but the attachment-map-dirty mechanism seems to go deeper into the render pass system.

I did try actually removing and re-adding the attachments to the Camera, to trigger the same work as when the attachments are initially made. That compiles but doesn’t make any difference alas.

(Something like….)

	camera->detach(osg::Camera::COLOR_BUFFER);
	camera ->attach(osg::Camera::COLOR_BUFFER, _fboTexture);

Oh well, thanks for the suggestion anyway.

James



More information about the osg-users mailing list