Chaos Corona Forum

Chaos Corona for 3ds Max => [Max] Feature Requests => Topic started by: pokoy on 2015-05-21, 18:23:52

Title: Disable DOF calculations for objects backplates/geometry with ShadowCatcherMtl
Post by: pokoy on 2015-05-21, 18:23:52
I am rendering content over photographs screen mapped to geometry with the ShadowCatcherMtl and they all have DOF which I'm trying to match in the rendering. Unfortunately, Corona's DOF will add defocus blurring on the shadow catcher geometry and it's too extreme. I can composite the rendered content over the original backplate in post, but in places with more extreme DOF it will not blend correctly as I still have doubled DOF in places where the alpha is not completely black or white...
I am trying to get a solution for this but it seems the only working way would be to exclude that screen mapped geometry from DOF calculations. Would something like this be possible at all?

Title: Re: Disable DOF calculations for objects backplates/geometry with ShadowCatcherMtl
Post by: maru on 2015-05-22, 12:23:05
I think this may be impossible as DoF in Corona is "physical". It's hard to imagine for me to have some objects affected by DoF, and some not.
Title: Re: Disable DOF calculations for objects backplates/geometry with ShadowCatcherMtl
Post by: pokoy on 2015-05-22, 12:40:45
I think this may be impossible as DoF in Corona is "physical". It's hard to imagine for me to have some objects affected by DoF, and some not.

Yes, since it's even impossible in any of the ray tracers I already had my doubts.
Title: Re: Disable DOF calculations for objects backplates/geometry with ShadowCatcherMtl
Post by: Ludvik Koutny on 2015-05-22, 14:12:13
On the one side, not even Vray can do it, let alone mental ray. On the other side applying DoF to already blurred plate kinda breaks correct compositing, so option no to do that would be useful.
Title: Re: Disable DOF calculations for objects backplates/geometry with ShadowCatcherMtl
Post by: pokoy on 2015-05-22, 15:05:06
On the one side, not even Vray can do it, let alone mental ray. On the other side applying DoF to already blurred plate kinda breaks correct compositing, so option no to do that would be useful.

If possible, having that would be fantastic. What if ShadowCatcher would be 'transparent' and would multiply over the directly visible background override? I think that should be possible somehow.
Title: Re: Disable DOF calculations for objects backplates/geometry with ShadowCatcherMtl
Post by: Ludvik Koutny on 2015-05-22, 16:44:34
On the one side, not even Vray can do it, let alone mental ray. On the other side applying DoF to already blurred plate kinda breaks correct compositing, so option no to do that would be useful.

If possible, having that would be fantastic. What if ShadowCatcher would be 'transparent' and would multiply over the directly visible background override? I think that should be possible somehow.

I thought something similar. Will ask Ondra about that.
Title: Re: Disable DOF calculations for objects backplates/geometry with ShadowCatcherMtl
Post by: pokoy on 2015-05-22, 17:05:33
Great, thanks!
Title: Re: Disable DOF calculations for objects backplates/geometry with ShadowCatcherMtl
Post by: Ludvik Koutny on 2015-05-22, 20:33:31
Great, thanks!

Ondra told me it should be possible. Practical implementation would probably be a checkbox in ShadowCatcher material. So fingers are crossed.
Title: Re: Disable DOF calculations for objects backplates/geometry with ShadowCatcherMtl
Post by: Ondra on 2015-05-23, 12:58:39
long story short: probably possible for screen mapping
Title: Re: Disable DOF calculations for objects backplates/geometry with ShadowCatcherMtl
Post by: pokoy on 2015-05-23, 13:12:43
Great, glad to hear that!
Title: Re: Disable DOF calculations for objects backplates/geometry with ShadowCatcherMtl
Post by: Ondra on 2015-07-06, 20:40:07
note to self: will be probably best if added to CoronaBitmap instead of shadowcatcher
Title: Re: Disable DOF calculations for objects backplates/geometry with ShadowCatcherMtl
Post by: maru on 2015-09-25, 17:32:15
to self: btw ticket 477
Title: Re: Disable DOF calculations for objects backplates/geometry with ShadowCatcherMtl
Post by: pokoy on 2015-12-17, 11:11:34
Bumping the thread to ask if this is on the horizon. It would make working with photographed plates a lot easier.
Title: Re: Disable DOF calculations for objects backplates/geometry with ShadowCatcherMtl
Post by: pokoy on 2016-05-13, 18:27:38
And another bump to see if it's possible for 1.5 - I am fighting with this problem in every other project since we often work with backplates and many of them have strong DOF. It would make life really easier in those cases.
Title: Re: Disable DOF calculations for objects backplates/geometry with ShadowCatcherMtl
Post by: Ondra on 2016-05-13, 20:06:29
well... maybe ;) I would like to focus more on smaller requests such as these in 1.5
Title: Re: Disable DOF calculations for objects backplates/geometry with ShadowCatcherMtl
Post by: pokoy on 2016-05-13, 20:26:55
Thanks, looking forward to this!
Title: Re: Disable DOF calculations for objects backplates/geometry with ShadowCatcherMtl
Post by: Daskydesign on 2017-12-29, 02:25:43
Is possible today exclude backplate from DOF???
Title: Re: Disable DOF calculations for objects backplates/geometry with ShadowCatcherMtl
Post by: Ondra on 2017-12-29, 09:57:17
no, not currently possible. We have some internal prototype, but it was not working well, needs more work