Thanks Farshid. Camera::setRenderingCache() is the secret sauce. It
works perfectly now. I hadn't come across that function yet, so I
don't know if I ever would have found it.
--
Terry Welsh
www.reallyslick.com


>
> Hi Terry,
>
> I use osg::Camera objects to render FBOs that are the same size as the
> window. When the window is resized, I clear the rendering cache of the
> camera and reset the texture size:
>
> texture->setTextureSize(w,h);
> texture->dirtyTextureObject();
> camera->setRenderingCache(0);
>
> This has worked fine for me for a while now. What version of OSG are you
> using?
>
> Cheers,
> Farshid
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to