Chaos Corona Forum

Chaos Corona for 3ds Max => [Max] I need help! => Topic started by: Deckard on 2019-06-11, 17:37:25

Title: Corona 4 and absorption color
Post by: Deckard on 2019-06-11, 17:37:25
Hi all,

I installed Corona 4 today and after opening a previous kitchen scene with two oil/vinegar bottles, the liquids inside them render as transparent. The liquids use an absorption color and a distance of about 5cm. Changing the distance value doesn't seem to fix it.

Any ideas? Something to do with the new caustics, I suppose?

Thank you.
Title: Re: Corona 4 and absorption color
Post by: TomG on 2019-06-11, 17:44:37
Probably not the new caustics, unless you enabled them they will have no effect.

More likely is the overlapping media change. You should have been prompted on open to use the new functionality or the old - I'd try opening the scene, and selecting to use the old functionality, and see if that makes it render as it did before.
Title: Re: Corona 4 and absorption color
Post by: Deckard on 2019-06-11, 19:35:49
Thanks for your reply. Yes, I could indeed try the old functionality and it could probably be fixed, but the question is: How does absorption in liquids work in corona 4? I tried creating a new material and applying absorption, but it still comes out transparent...
Title: Re: Corona 4 and absorption color
Post by: TomG on 2019-06-11, 20:25:23
Absorption shouldn't have changed at all. What has changed is what happens when materials with refraction overlap - do your liquids render with absorption as expected when they are the only object in the scene and are not overlapping/intersecting anything else?

PS - some renders would help, and even perhaps the scene, if this is happening in, say, a simple test scene with a sphere.
Title: Re: Corona 4 and absorption color
Post by: Deckard on 2019-06-12, 07:05:09
It was indeed an object overlapping issue. I scaled down the liquids slightly (so that they don't touch the clear glass bottles) and now they render fine.

Thanks for your help!
Title: Re: Corona 4 and absorption color
Post by: romullus on 2019-06-12, 09:33:04
I scaled down the liquids slightly (so that they don't touch the clear glass bottles) and now they render fine.

But that is a wrong setup. Now your liquid probably is rendering incorrect. Liquid should overlap with glass container to render correctly.
Title: Re: Corona 4 and absorption color
Post by: romullus on 2019-06-12, 09:41:55
I'm attaching quick renders to show what i mean. See how liquid in non overlapping renders look wrong.
Title: Re: Corona 4 and absorption color
Post by: maru on 2019-06-12, 14:44:29
The liquid object SHOULD overlap with the container geometry, BUT you have to remember about correct normals direction. Since Corona 4 volumetric effects (absorption, scattering, refraction,...) are now dependent on normal direction. So if the normals of your glass and/or liquid objects are flipped, they won't render correctly.
See this for info on correct setup in V4: https://coronarenderer.freshdesk.com/support/solutions/articles/5000515618
Title: Re: Corona 4 and absorption color
Post by: Deckard on 2019-06-13, 16:30:32
Thank you romullus and maru for your input, I appreciate it.
I wonder if there will ever come a day when CG software won't need these "cheats" anymore... (sigh)
Title: Re: Corona 4 and absorption color
Post by: maru on 2019-06-14, 15:41:21
I wonder if there will ever come a day when CG software won't need these "cheats" anymore... (sigh)
At least Corona took one step forward in this regard. :)