Page 1 of 2

OLD LUXCORE - Shadowcatcher not fully transparent

Posted: Thu Jan 11, 2018 10:24 am
by Asticles
Hi all,

This maybe is not a bug, but since the begining, shadowcatcher material is not transparent as it should.
Look at the images, on the left: Lightwave's shadow catcher on a plane with a gradient background.
On the right, luxcore one.
Screenshot.jpg
Best regards.

Re: Shadowcatcher not fully transparent

Posted: Thu Jan 11, 2018 11:18 am
by B.Y.O.B.
The lower half of the environment light has to be black.
Also, you should use a sun light only (no sky) if you want a pitch black unrealistic shadow like on the left.

Re: Shadowcatcher not fully transparent

Posted: Thu Jan 11, 2018 12:18 pm
by Asticles
Thanks for the response,
On the left there is no gi, this is why the shadow is pitch black.
So, it only works with Hemi with upper hemisphere?

Re: Shadowcatcher not fully transparent

Posted: Thu Jan 11, 2018 1:35 pm
by Dade
BTW, there is a dedicated flag in LuxCore for rendering the lower half hemisphere in black :idea:

Re: Shadowcatcher not fully transparent

Posted: Thu Jan 11, 2018 2:44 pm
by B.Y.O.B.
In theory you have two options:
  • use sky light and set ground color and ground albedo to black
  • use HDRI and enable "sampleupperhemisphereonly"
However, the second option does not seem to work when I test it here (the plane is still lit from below).

Re: Shadowcatcher not fully transparent

Posted: Thu Jan 11, 2018 3:58 pm
by Dade
B.Y.O.B. wrote: Thu Jan 11, 2018 2:44 pm However, the second option does not seem to work when I test it here (the plane is still lit from below).
It is lit by indirect light, "sampleupperhemisphereonly" disable direct light sampling of lower hemisphere but doesn't change the correctness of the rendering. It was introduced for LDR images: http://www.luxrender.net/forum/viewtopi ... 10#p120871

But back in topic, I have lost a bit the track of the problem, what is exactly the problem ?

@Asticles, is the shadow too "bright" ? Have you tried to set the material of plane to something nearly black ? Or have you tried to limit the max. path depth to render only direct light in order to compare "orange" to "orange" with Lightwave ?

The plane should no be visible at all outside of the shadow, can you post a test scene ?

Re: Shadowcatcher not fully transparent

Posted: Thu Jan 11, 2018 6:03 pm
by Asticles
Sorry Dade,

To me the topic is to have a feature without workarounds and conditionals. I think shadowcatcher should be bulletproof and work always.
I've post the Lightwave example, but it also works with Gi enabled.

I've seen that setting the shadow material to diffuse you can control the color, but if you set the color to pure black, the shadow catcher fails.

The test scene was only a plane with the man and the hemi lamp.

Re: Shadowcatcher not fully transparent

Posted: Thu Jan 11, 2018 6:12 pm
by Asticles
Maybe I'm wrong, but I prefer less features but rock solid than more features but working only on specific conditions.
IMHO.

Re: Shadowcatcher not fully transparent

Posted: Thu Jan 11, 2018 7:09 pm
by Sharlybg
Maybe I'm wrong, but I prefer less features but rock solid than more features but working only on specific conditions.
IMHO.
This is why we are doing testing. Trying to improve everything but step by step.this is why it is called an alpha stage.

Re: Shadowcatcher not fully transparent

Posted: Thu Jan 11, 2018 7:53 pm
by Dade
Asticles wrote: Thu Jan 11, 2018 6:03 pm To me the topic is to have a feature without workarounds and conditionals. I think shadowcatcher should be bulletproof and work always.
I've post the Lightwave example, but it also works with Gi enabled.

I've seen that setting the shadow material to diffuse you can control the color, but if you set the color to pure black, the shadow catcher fails.

The test scene was only a plane with the man and the hemi lamp.
In my tests with a plane and an hemi lamp is working fine. I guess you have some setting different from mine. I can try to figure out what is going wrong alone but having an example of the problem could probably save me a lot of time.