Chaos Corona Forum

Chaos Corona for 3ds Max => [Max] I need help! => Topic started by: build on 2019-07-18, 20:06:50

Title: Shadowcatcher artefacts
Post by: build on 2019-07-18, 20:06:50
Hi.

We are working on a set of furniture objects which need shadow and a transparent background. We now have the problem that the shadow is not very smooth. Instead of a flowing transition, the shadow stops rather pixelated. Has anybody an idea why it is like this? and how to solve this?



Thank you.
Title: Re: Shadowcatcher artefacts
Post by: romullus on 2019-07-18, 20:46:00
Try to render longer, or use denoiser to reduce noise in shadowed area.
Title: Re: Shadowcatcher artefacts
Post by: build on 2019-07-19, 08:26:37
Noise level is below 1 and full denoising enabled.
Title: Re: Shadowcatcher artefacts
Post by: burnin on 2019-07-19, 09:58:24
Do you mean the shadow on the backboard?
I believe that would depend on material & performance render settings, since that area is only lit by indirect lighting/GI.
Title: Re: Shadowcatcher artefacts
Post by: build on 2019-07-19, 10:06:26
We have a studio setup with 4 light sources. But only the one from the top is casting shadows. All others are shadowcatcher illuminator. We only have a shadowcatcher material for the surface the table stands on. The shadow around the table ends not smooth but rather pixelated. And this is the problem. It should fade.
Title: Re: Shadowcatcher artefacts
Post by: sprayer on 2019-07-19, 10:36:23
Doing product renders i was always struggle with Shadowcatcher noise, and denoiser only make it worse imho, you start to see patterns.
Rendering just stop clear the noise on some point in Shadowcatcher, maybe it because of fix of noise in shadows what was implemented.
Title: Re: Shadowcatcher artefacts
Post by: burnin on 2019-07-19, 11:44:20
We have a studio setup with 4 light sources. But only the one from the top is casting shadows. All others are shadowcatcher illuminator. We only have a shadowcatcher material for the surface the table stands on. The shadow around the table ends not smooth but rather pixelated. And this is the problem. It should fade.
Oh, it would really help, if you'd provide a simple mockup, a test scene to investigate the issue.
Title: Re: Shadowcatcher artefacts
Post by: build on 2019-07-19, 15:44:32
I reported this to the Corona support team now. Let's see what they can figure out.
Title: Re: Shadowcatcher artefacts
Post by: maru on 2019-07-19, 17:25:01
Suggested some tips, let's see if it helps. :)
Title: Re: Shadowcatcher artefacts
Post by: build on 2019-07-19, 20:34:16
I tested the settings. It looks much better now. Thank you!

Here are the recommendations we followed. Maybe somebody else will need them:
1) Go to your shadowcatcher material and make its backplate color darker - this will reduce global illumination in your scene and in turn will reduce overall noise.
2) Go to your shadowcatcher material and increase "shadow amount" value - I can see in your scene it is set to 0,1 and this additionally increases the brightness of GI. I suggest using value of 1 or more.
3) Do all lights in your scene need to have "shadowcatcher illuminator" option enabled? If this option is enabled in a light, not only shadows are included in the alpha channel generated by the shadowcatcher, but also the direct lighting coming from that light. This is useful, for example, if you are rendering a car in a garage, where the garage is a 2D backplate, and you want its headlights to cast light on the 2D backplate garage. But I am not 100% sure if this is needed in your case.
4) Go to Render Setup > Performance and increase GIvsAA balance value from the default 16 to 32 (but no any higher!) - this should make the noise resolve a bit faster at the cost of anti-aliasing quality.

We changed the background and added just a horizontal plane which covers the whole viewport as shadow catcher. This gives us now a new strange effect in the background which I don't understand...
Here a preview with the new introduces "black belt"
Title: Re: Shadowcatcher artefacts
Post by: burnin on 2019-07-20, 03:43:50
Either use a backdrop
or
apply same material in "Render Settings > Scene Environment > Direct Visibility Override (checkbox ON)" that is used with Shadowcatcher.

& Here's a mockup // which could have saved you lots of time, if you'd just share some love ;) study well
Title: Re: Shadowcatcher artefacts
Post by: build on 2019-07-20, 14:56:11
Here are the settings I used for the render. I already used a background override.

The background has a solid black color. In the scene layout, there is no background here. Just a large plane with a shadowcatcher material. It looks a bit like a horizon. But where is this coming from?

Regarding your example rendering, I want to give a little comment.
If you place your picture on a solid background that is slightly larger than the rendering, you can see that there is an edge around it. With the Shadowcatcher material there are a lot of scattered shadows that fill the whole image. This makes it quite difficult to create object visualizations with a transparent background where only the pure object-related shadows are visible.
The lights that cast shadows need to be calibrated exactly so that the shadow only appears up to a certain area. It would be helpful if you could specify something like a threshold value to hide these very weak (and perhaps not really existing) shadows.
It looks more like a problem with transparency in Shadowcatcher material to me.
Title: Re: Shadowcatcher artefacts
Post by: burnin on 2019-07-20, 20:21:17
Here are the settings I used for the render. I already used a background override.

The background has a solid black color. In the scene layout, there is no background here. Just a large plane with a shadowcatcher material. It looks a bit like a horizon. But where is this coming from?

Regarding your example rendering, I want to give a little comment.
If you place your picture on a solid background that is slightly larger than the rendering, you can see that there is an edge around it. With the Shadowcatcher material there are a lot of scattered shadows that fill the whole image. This makes it quite difficult to create object visualizations with a transparent background where only the pure object-related shadows are visible.
The lights that cast shadows need to be calibrated exactly so that the shadow only appears up to a certain area. It would be helpful if you could specify something like a threshold value to hide these very weak (and perhaps not really existing) shadows.
It looks more like a problem with transparency in Shadowcatcher material to me.
:D
Well, of course my dear!
When seeking problems, one will always find one!
It's universal Law. There's no doubt about it. PEBCAK being most common one. ;)

Anyways, check your Light Directionality - for therein lies thy shadow of doubt. ;)

Also, if you're seeking for a different or more complex solutions, to have full control in post, you can always use Compositing tag, Object Buffers, Multipass... to mask the stuff - separate image into main object, its shadows and the background - then do final compositing as you please.

e.g
(https://media.giphy.com/media/SWWMb7uFftswRn6TAY/giphy.gif)

PS
oh, totally missed it, you're on 3DS Max... my mistake & condolances ;)
Title: Re: Shadowcatcher artefacts
Post by: sprayer on 2019-07-20, 21:26:31
you forget to change backplate color in shadowcathcer, it's gray by default, it  should be the same as your background, and note what this color is effect to exposure value
Title: Re: Shadowcatcher artefacts
Post by: build on 2019-07-22, 08:49:15
This is how it looks from the distance.

We have the solid white object, the table, in the center, including the small shadows from the top light. And then we have another white solid ring around. But where is this coming from? There is no geometry here. And no light source which can cast such a shadow onto the shadowcatcher material!

Title: Re: Shadowcatcher artefacts
Post by: sprayer on 2019-07-22, 09:18:02
sharing the scene will be faster to solve this
Title: Re: Shadowcatcher artefacts
Post by: build on 2019-07-22, 10:04:54
Sure. Here you are.
http://ge.tt/1SaUNCx2
Title: Re: Shadowcatcher artefacts
Post by: Frood on 2019-07-22, 11:28:32
After opening the file, I noticed this scene has over 2000 animation layers. Merging anything of it into another scene will also merge those (global tracks) to the new scene.

You should generally use a cleaning script to avoid pollution of your scenes ("cleaner" script for example or - specifically for animation layers - this one: https://forum.corona-renderer.com/index.php?topic=17011.msg106638#msg106638 which does a check automatically when opening a scene.)


Good Luck



Title: Re: Shadowcatcher artefacts
Post by: build on 2019-07-22, 11:50:33
Found them. Thank you.
Title: Re: Shadowcatcher artefacts
Post by: sprayer on 2019-07-22, 12:02:46
Scene not good setup,but whose circles in alpha because you checked illuminator in light settings
(https://i.imgur.com/2tjOmaN.jpg)
Title: Re: Shadowcatcher artefacts
Post by: build on 2019-07-22, 12:33:23
You mean the lights on the right and on the left? Those are not supposed to cast any shadows. That's why they are just illuminators. When I disable the illuminator function the shadows they cast will extend the shadows to image borders which will give me a visible edge which I don't want. Also, they will create a "shadow noise" which I mentioned before.
Title: Re: Shadowcatcher artefacts
Post by: sprayer on 2019-07-22, 13:48:51
this check box not for casting shadows,it for casting light on shadowcatcher object, shadow catcher is catching the shadows but this checkbox gives you option to catch the light on shadowcatcher for  example you need to light photo background with pasted corona light in scene(not only shadows from it). Your scene not need this. To remove shadows you need other methods, for example standard light may not cast shadows, but i think it better to setup proper lights with studio hdri with soft light.

This is lights with only one studio hdri
(https://i.imgur.com/LYnCKdh.jpg)
and a bit adjust in output curves

by the way you have also exposure control enabled in environments
Title: Re: Shadowcatcher artefacts
Post by: build on 2019-07-23, 17:55:55
this check box not for casting shadows,it for casting light on shadowcatcher object, shadow catcher is catching the shadows but this checkbox gives you option to catch the light on shadowcatcher for  example you need to light photo background with pasted corona light in scene(not only shadows from it). Your scene not need this.

Thanks for this. It gives me indeed a better understanding. But still, I have the problem with the transparency of the shadowcatcher material. It would like to know how your image behaves if you would save it with a transparent background. I am sure you will still have a lot of noise from the shadow around the table. And this is what I am trying to avoid but it seems there is no way to do so in corona. For me, this is a bug in the software...