> to be quite honest with you I'm not certain if I've been able to follow

> which scene is the first and which is the second throughout your
> description, sorry ;(
> Things that may be relevant are: order of the viewports in the window
> and the order in which the viewports are rendered (normally the two are
> the same, but it sounded a bit as if it was different in your case?).
> Which shadow mode are you using on the ShadowStage? Are the viewports
> overlapping or is it something like left half/right half of one window?
> Thanks!
>         Cheers,
>                 Carsten


Sorry Carsten, I'll try to be more understandable :D

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)


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.

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).


Hope that now it sounds more comprehensible :)


Christian Bar









On Wed, Mar 13, 2013 at 4:41 PM, Christian Bar <ch....@tiscali.it> wrote:

> Hello everyone!
> I have a problem with ShadowStage and DepthClearBackground.
> I have two viewports connected to a scene each, one with shadows (using a
> ShadowStage) and with a DepthClearBackground, and a second one without
> shadows and with a gradient background.
> I render on a window the second one, then the first.
>
> Everything works with shadows disabled, but when I activate them, the
> second scene (the one without shadows) is not rendered and the background
> is not cleared.
>
> Can anyone explain this and tell me how to solve it?
>
> Thank you :)
>
> Christian Bar
>
------------------------------------------------------------------------------
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
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to