Hello Christian,
thanks for the updated problem description!
On 03/14/2013 09:45 AM, Christian Bar wrote:
> I have one window. In this window I render two viewports, fully overlapping
> inside the window.
> Each viewport renders a different scenegraph. Let's call 'viewport_1' and
> 'viewport_2' the two viewports.
>
> - viewport_1 begins with a Node containing a ShadowStage and has a
> DepthClearBackground
> - viewport_2 has no shadows and a GradientBackground
>
> When I call window->render(), I expect that:
> - GradientBackground is rendered,
> - viewport_2 scenegraph content is rendered,
> - DepthClearBackground clears the depth buffer (not the frame buffer)
> - viewport_1 is rendered (also with shadows)
hmm, viewports are rendered in the order they are stored in the window,
so viewport_1 should be first, then viewport_2.
> What I see inside the window is only viewport_1 content, without a background
> (as if there were none, the framebuffer is not cleared).
> This behaviour happens with every shadow mode.
Given the render order above, my expectation would be that you only see
the content of viewport_2 - something seems to go wrong though.
> When I disable shadows, I see that everything works as expected.
> Maybe it's useful for you to know that if I change the window size, the
> framebuffer is cleared (with a black color).
I think you'll have to put the GradientBackground on viewport_1 and the
DepthClearBackground on viewport_2.
Under normal circumstances (i.e. I suspect a bug is preventing this from
working right now) this should give you the desired result. I'm looking
into it.
Cheers,
Carsten
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users