Chaos Corona Forum

Chaos Corona for 3ds Max => [Max] I need help! => Topic started by: Alex Abarca on 2019-12-06, 05:22:14

Title: DOF and Chromatic Abberation on backplate
Post by: Alex Abarca on 2019-12-06, 05:22:14
Hi Corona Team,

I would like to add depth of field and chromatic aberration to the camera to match more or less the photographic effect of the backplate. Currently, If I were to add these effects on the camera it gets pre-multiplied on the backplate. I know I can solve this in post, but my question is directed in achieving this in the VFB.

Can we have an option to ignore DOF and Bokeh on the backplate. Or is it possible to do this now?
Title: Re: DOF and Chromatic Abberation on backplate
Post by: pokoy on 2019-12-06, 08:19:52
I've requested this a loooong time ago. Given that this is a rare request it hasn't made it yet into Corona. It would definitely be useful to have. 
Title: Re: DOF and Chromatic Abberation on backplate
Post by: GeorgeK on 2019-12-06, 10:44:24
You both raised an interesting issue, looking into it.
Title: Re: DOF and Chromatic Abberation on backplate
Post by: pokoy on 2019-12-06, 11:03:07
Sounds great.

You'll probably want to hear of use cases to justify the dev time... For me, it was something I'd loved to have on every job when rendering against a real world photo plate. Especially in product renders, or mockups where you get a background with visible DOF. Using postproduction to compose the render over the original backplate is viable only if the rendered content is sharp everywhere. As soon as it gets blurred from DOF you'll have the problem that your rendered image will still have some info of the double-DOF in non-black alpha areas which can be problematic in post, up to the point where you can't get a good result depending on how extreme the Bokeh is.

If this is feasible code-wise I'd definitely use it on every render against a photo backplate.
Title: Re: DOF and Chromatic Abberation on backplate
Post by: Alex Abarca on 2019-12-06, 19:13:21
Rare to ask, yes it is. But the problem is quite common in corona rendering if you examine the images. I come across several images that are taken from the VFB where the model is shaper than background and this produces an uncanny valley effect.

Thank you Pokoy for adding your experience and your problem is parallel to what I've posted as an example.
Title: Re: DOF and Chromatic Abberation on backplate
Post by: shoebu23 on 2019-12-06, 19:18:57
+ 1 to this request!

I get requests frequently to place consumer products into all sorts of photographs and I constantly run into this issue-- always handled in post.  If there was a way for the shadow-catcher material / backplate to be excluded from camera effects (DOF)- that would be amazing!
Title: Re: DOF and Chromatic Abberation on backplate
Post by: Alex Abarca on 2019-12-06, 19:23:03
It's probable that this image may present the same problem upon close observation. 
Title: Re: DOF and Chromatic Abberation on backplate
Post by: sprayer on 2019-12-06, 19:26:42
It is funny what if i am not mistaken v2 have bug to not blur background with DOF using standard bitmap loader ))
Title: Re: DOF and Chromatic Abberation on backplate
Post by: Njen on 2019-12-06, 20:02:03
Sounds great.

You'll probably want to hear of use cases to justify the dev time... For me, it was something I'd loved to have on every job when rendering against a real world photo plate. Especially in product renders, or mockups where you get a background with visible DOF. Using postproduction to compose the render over the original backplate is viable only if the rendered content is sharp everywhere. As soon as it gets blurred from DOF you'll have the problem that your rendered image will still have some info of the double-DOF in non-black alpha areas which can be problematic in post, up to the point where you can't get a good result depending on how extreme the Bokeh is.

If you know in advance that you will comp the image, then the image should always be rendered over black (environment primary rays not visible to camera). Then there is always no problems with anti-aliased pixels, no matter how much DoF or motion blur there is.

Personally I never understand why anyone renders over anything else but black, as the minutes it takes to put image A over image B in comp far outweighs the hours of re-rendering because you forgot something, or you needed to colour correct something a little.

I'd rather see that dev time go to towards actual limiting bugs in Corona.
Title: Re: DOF and Chromatic Abberation on backplate
Post by: Alex Abarca on 2019-12-06, 20:14:19
Sounds great.

You'll probably want to hear of use cases to justify the dev time... For me, it was something I'd loved to have on every job when rendering against a real world photo plate. Especially in product renders, or mockups where you get a background with visible DOF. Using postproduction to compose the render over the original backplate is viable only if the rendered content is sharp everywhere. As soon as it gets blurred from DOF you'll have the problem that your rendered image will still have some info of the double-DOF in non-black alpha areas which can be problematic in post, up to the point where you can't get a good result depending on how extreme the Bokeh is.

If you know in advance that you will comp the image, then the image should always be rendered over black (environment primary rays not visible to camera). Then there is always no problems with anti-aliased pixels, no matter how much DoF or motion blur there is.

Personally I never understand why anyone renders over anything else but black, as the minutes it takes to put image A over image B in comp far outweighs the hours of re-rendering because you forgot something, or you needed to colour correct something a little.

I'd rather see that dev time go to towards actual limiting bugs in Corona.


Please don't derail the subject at hand. This conversation is not about post, its strictly VFB.
Title: Re: DOF and Chromatic Abberation on backplate
Post by: GeorgeK on 2019-12-09, 09:17:42
It's probable that this image may present the same problem upon close observation.

Ah no, for this I simply blurred the HDRI from texture map ^^ no DOF present.

Reported for consideration.

(internal id=432276796)
Title: Re: DOF and Chromatic Abberation on backplate
Post by: tennet on 2020-09-15, 20:13:25
Hi,

I was having the same question and maybe this has already been solved by the Corona Team.. Anyways, it seem to work if you add your backplate using the Corona 'Shadow Catcher' material. The 'Shadow Catcher' material is not affected by camera DOF. This way I can add DOF to my camera and use very low F-stops (=short focal depth) without getting a blurry backplate.

Hope this helps!