Hi,

On 17 Dec, 2012, at 16:14, Johannes <jbru...@datasolid.de> wrote:

> Hello Gerrit,
> 
> On 10.12.2012 07:04, Gerrit Voß wrote:
> 
>>>> The problem is the PassiveBackground, which acutally does not clear
>>>> anything, it relies on the application having cleared the (window)
>>>> buffers. As the shadow stage render everything in it's own FBO but
>>>> reuses the outside background is misses this clear. It is a general
>>>> problem for stages and passive backgrounds. I'll see if I can find a
>>>> solution where the stages blit the framebuffer contents into their
>>>> FBO's.
>>>> 
>> 
>> I extended the PassiveBackground so that it can do something if used
>> within an FBO. This has to be enabled setting
>> 
>> PassiveBackground clearFrameBufferObject
>> 
>> to true. Than there are two options, either the application sets a
>> callback which gets called if PassiveBackground::clear is called with
>> a FBO active. If the callback is not set the PassiveBackground will
>> blit the window contents (color + stencil + depth) to the active FBO.
>> Currently it assumes that the active FBO size does not exceed the
>> window size (right now it's the first version).
> 
> I have incorporated the code into my setup but it does not work quite
> correctly. I have setup the framework on two different computers one with an 
> ATI graphic adapter and the other uses one of Nvidia. Both do make problems 
> but slightly different. For my testing I also enabled the GLIntercep utiltiy. 
> Here are my results:

ok, I'll have a look, short question, what does the background the app
creates before the passive background is run looks like ? Is it empty
with just a color or is it more complex ?

thanks & kind regards
      gerrrit
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to