Hello,

 Try to allocate a new image with the new size, attach it to the camera,
and set the camera cache to NULL so on the next draw the RenderStage
will connect to the new image.

 

Good luck,

 Guy.

________________________________

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jason
Baurick
Sent: Thursday, May 01, 2008 6:46 PM
To: [email protected]
Subject: [osg-users] Attaching a RenderBuffer to a camera

 

Hi,

I am having an issue with FrameBufferObjects and I was hoping someone
could help.  I want the master camera of my view to render to an FBO.
This works fine by just calling
view->getCamera()->setRenderTargetImplementation(Camera::FRAME_BUFFER_OB
JECT).  However, I cannot figure out how to get the RenderBuffers the
FBO has attached to resize.  One thought I had was to instanciate my own
RenderBuffers and attach them to the camera, hower the attach method
only takes formats, textures or images.  

Any ideas on how I could go about solving this problem?

-- 
--Jason Baurick

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to