<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>
<div>Hello Carsten,</div>
<div> </div>
<div>this way it works much better. But there is one thing remaining. We have some shaders that a time dependent. So I have to update a uniform variable before each frame.</div>
<div>During video capture I have to update that var, render to FBO (for the video frame) and afterwards render to backbuffer (the usual frame). The variable update seems to affect only the FBO rendering.</div>
<div>In the usual scene rendering the timed shader behavior stops until the video capturing gets stopped. I checked with gDebugger and in case of capturing the video the GLContext receives a copy of the initial shading program and the variable update seems to affect only this.</div>
<div> </div>
<div>Thanks,</div>
<div>Michael</div>
<div>
<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="margin:0 0 10px 0;"><b>Gesendet:</b> Montag, 29. September 2014 um 14:45 Uhr<br/>
<b>Von:</b> "Carsten Neumann" <***@gmail.com><br/>
<b>An:</b> opensg-***@lists.sourceforge.net<br/>
<b>Cc:</b> ***@googlemail.com<br/>
<b>Betreff:</b> Re: [Opensg-users] FBO cleanup</div>
<div name="quoted-content">Hello Michael,<br/>
<br/>
On 2014-09-26 10:38, Michael Raab wrote:<br/>
> Hello Carsten,<br/>
> removal of FBO seems to work now. Thanks.<br/>
> While debugging I found out that the size of DisplayLists and VBO's<br/>
> increase also. Seems the initial set gets recreated with each<br/>
> Screenshot, and of course never destructed. I guess the PassiveWindow<br/>
> causes this as OpenSG links GLObjects to a specific window, correct?<br/>
<br/>
yes, for most (all?) purposes you can think of a Window == OpenGL context.<br/>
<br/>
> I think that's not the behavior I need as all the (gl)objects I need for<br/>
> the screenshot are already created. What I need to do is to redirect the<br/>
> rendering content from my main window to a specific FBO as the<br/>
> screenshot may have a different size as the main window. Is there a<br/>
> better/more efficient way to do this?<br/>
<br/>
Right, that is the purpose of Stage (and derived) NodeCores, they can<br/>
redirect the rendering of the tree below them into an FBO.<br/>
Examples/Simple/fbotexture.cpp shows how this can be done with the<br/>
SimpleStage.<br/>
For making screenshots you could keep the Stage above the 'normal' root<br/>
of your scene and normally start rendering at that root. If you want to<br/>
create a screenshot start rendering at the Stage above it, i.e.<br/>
temporarily change the root used by the viewport.<br/>
<br/>
Cheers,<br/>
Carsten<br/>
<br/>
------------------------------------------------------------------------------<br/>
Slashdot TV. Videos for Nerds. Stuff that Matters.<br/>
<a href="http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.clktrk" target="_blank">http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.clktrk</a><br/>
_______________________________________________<br/>
Opensg-users mailing list<br/>
Opensg-***@lists.sourceforge.net<br/>
<a href="https://lists.sourceforge.net/lists/listinfo/opensg-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/opensg-users</a></div>
</div>
</div>
</div></div></body></html>