Re: [osg-users] Cannot resize when rendering to FBO

2013-08-03 Thread Terry Welsh
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

[osg-users] Cannot resize when rendering to FBO

2013-08-02 Thread Terry Welsh
I render to an FBO texture attachment the same size as my window. But when I expand the window and try to resize the texture to match it, I end up rendering to a rectangle the size of my original window in the lower left corner of the now-larger texture. It seems like a lot of people would have

Re: [osg-users] Cannot resize when rendering to FBO

2013-08-02 Thread Farshid Lashkari
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