Re: [osg-users] Resizing FBO camera while rendering

2018-10-03 Thread Robert Osfield
Hi Rômulo, On Tue, 2 Oct 2018 at 22:10, Rômulo Cerqueira wrote: > Do you have any tip how can I solve this issue? I haven't personally implemented what you are after so I provided tips as to what direction to go in. Robert. ___ osg-users mailing list

Re: [osg-users] Resizing FBO camera while rendering

2018-10-02 Thread Rômulo Cerqueira
> Is it only the FBO that is forcing you to do this? Yes. Do you have any tip how can I solve this issue? I found similar problems into links below, but I could not have the same success. https://groups.google.com/forum/#!topic/osg-users/Oxb9QF8Myyo

Re: [osg-users] Resizing FBO camera while rendering

2018-10-02 Thread Robert Osfield
Hi Rômulo, On Tue, 2 Oct 2018 at 18:45, Rômulo Cerqueira wrote: > I use the method setupViewer() "to resize" the FBO as well (by instantiating > the viewer, camera, texture and callback again). This approach was the best > way so far to minimize this problem. What I was trying to work out is

Re: [osg-users] Resizing FBO camera while rendering

2018-10-02 Thread Robert Osfield
On Tue, 2 Oct 2018 at 16:20, Rômulo Cerqueira wrote: > > So you are setting a whole new graphics context and associated data on > > each resize? Is it only the FBO that is forcing you to do this? Robert. ___ osg-users mailing list

Re: [osg-users] Resizing FBO camera while rendering

2018-10-02 Thread Rômulo Cerqueira
Hi, > So you are setting a whole new graphics context and associated data on > each resize? Yes, Robert. ... Thank you! Cheers, Rômulo -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=75019#75019

Re: [osg-users] Resizing FBO camera while rendering

2018-10-02 Thread Robert Osfield
Hi Rômulo, On Tue, 2 Oct 2018 at 12:40, Rômulo Cerqueira wrote: > I use the method setupViewer() "to resize" the FBO as well (by instantiating > the viewer, camera, texture and callback again). This approach was the best > way so far to minimize this problem. So you are setting a whole new

Re: [osg-users] Resizing FBO camera while rendering

2018-10-02 Thread Rômulo Cerqueira
Hi Robert, I use the method setupViewer() "to resize" the FBO as well (by instantiating the viewer, camera, texture and callback again). This approach was the best way so far to minimize this problem. ... Thank you! Cheers, Rômulo -- Read this topic online here:

Re: [osg-users] Resizing FBO camera while rendering

2018-10-02 Thread Rômulo Cerqueira
Hi Robert, I use the method setupViewer() "to resize" the FBO as well (by instantiating the viewer, camera, texture and callback again). This approach was the best way so far to minimize this problem. ... Thank you! Cheers, Rômulo -- Read this topic online here:

Re: [osg-users] Resizing FBO camera while rendering

2018-10-02 Thread Robert Osfield
Hi Rômulo, I didn't spot any code you posted that handles resizing, did I miss it? Robert. On Tue, 2 Oct 2018 at 08:10, Rômulo Cerqueira wrote: > > Hi, > > I have rendered a FBO camera to image by using a callback (as seen in the > code below), however some OpenGL warnings/erros are raised

[osg-users] Resizing FBO camera while rendering

2018-10-01 Thread Rômulo Cerqueira
Hi, I have rendered a FBO camera to image by using a callback (as seen in the code below), however some OpenGL warnings/erros are raised when I resize at runtime by setupViewer() method. I debugged the code by using Code: export OSG_GL_ERROR_CHECKING=ON and got the following error: