AdditionalSceneWindow Shadows

hi,

i’m trying to setup multiple scenewindows that just look at the same scene through different cameras.
and i don’t get why the shadow isn’t rendering properly in either the second or the additional window.

in the helppatch of LookAtRectCamera it works with a similar setup, tough.

any ideas or tips?
HowTo Render a Scene multiple times.vl (57.2 KB)

bonus quest:
is it possible to use a RenderGroupSelector with the AdditionalSceneWindow?
(i mean if it is generally possible by modifying it.)

I can confirm as I’ve seen this phenomenon before:

My guess would be that it has something to do with the way that shadowmaps are calculated (as a depth image from the light’s position which is used in the shadow-test from the camera’s view) and this does not work well with off-center projections (and is not necessarily a problem with the AdditionalSceneWindow).

Regarding RenderGroupSelector - I’m curious about this too

i made another testpatch and found out, that only the directional light had this issue.

then i found out, one can fix it by changing the cameras near and far plane.
0.01 to 50 is a good default.
Explanation Overview Lights.vl (123.1 KB)

and the other patch “fixed”
HowTo Render a Scene multiple times.vl (57.1 KB)

2 Likes