Chaos Corona Forum

Chaos Corona for 3ds Max => [Max] I need help! => Topic started by: dfcorona on 2020-11-13, 21:32:06

Title: Glass with Liquid
Post by: dfcorona on 2020-11-13, 21:32:06
I can't believe I'm having problems with this, I think I've done it a million times. But I have a glass with liquid and it looks good for it's purpose, but when I attach the liquid to the glass ( poly > Attach) the liquid disappears.  I can't believe I'm having issues with something so simple.  Liquid in Glass is slightly larger to move into the glass itself.
Title: Re: Glass with Liquid
Post by: mferster on 2020-11-13, 21:53:23
Have you tried reapplying your beer material after you've attached it?

I suspect the material Id is being changed to be the same as the glass and in turn is using the glass material
Title: Re: Glass with Liquid
Post by: romullus on 2020-11-13, 22:31:48
Do you really need glass and liquid to be single mesh? I think refractive materials still doesn't work correctly in Corona.
Title: Re: Glass with Liquid
Post by: dfcorona on 2020-11-13, 22:39:00
Hi guys, thanks for the help!, I got to check why I'm not getting notified of my forum replies. Not in my spam either

Anyway, I tried everything, works great as two separate object, once joined it disappears, I can select the sub-object liquid and move it out of the glass and looks fine. So materials seem to be right.  Also I can adjust the absorption to get a liquid that shows up finally but then the models looks non smooth, polygonal edges if that makes sense.  The reason I wanted to keep it one object is cause I'm using Forest Pro to scatter drinks.  Unfortunately Forest Pro Is a bit of a pain for Grouped objects.
Title: Re: Glass with Liquid
Post by: romullus on 2020-11-13, 22:46:29
You need to resort to single material then. Use multi-maps instead of multi-materials.
Title: Re: Glass with Liquid
Post by: dfcorona on 2020-11-13, 22:58:24
You need to resort to single material then. Use multi-maps instead of multi-materials.
That's getting really confusing, especially with One material that needs to be Foam.
Title: Re: Glass with Liquid
Post by: arqrenderz on 2020-11-13, 23:13:31
I got the solution for that :) Just put the liquid material slightly smaller than its container.
Liquid cant be bigger than container, that way of doing things don't work with corona since corona 5 i think. 
Title: Re: Glass with Liquid
Post by: romullus on 2020-11-13, 23:43:31
That's getting really confusing, especially with One material that needs to be Foam.

Yes indeed, but that's about the only way to get correct result with single mesh.

I got the solution for that :) Just put the liquid material slightly smaller than its container.
Liquid cant be bigger than container, that way of doing things don't work with corona since corona 5 i think. 

But it wouldn't look physically correct. It might be ok for background objects though.


edit: fixed some wording.
Title: Re: Glass with Liquid
Post by: dfcorona on 2020-11-14, 00:19:05
I got the solution for that :) Just put the liquid material slightly smaller than its container.
Liquid cant be bigger than container, that way of doing things don't work with corona since corona 5 i think.
Yes that does not result in correct render.
Title: Re: Glass with Liquid
Post by: dfcorona on 2020-11-14, 00:19:52
This is weird, does Corona not handle this correctly? is this a Corona issue or a me issue?
Title: Re: Glass with Liquid
Post by: romullus on 2020-11-14, 10:29:17
Sadly, this is Corona's issue.
Title: Re: Glass with Liquid
Post by: sprayer on 2020-11-14, 22:52:07
Looks like this issue appears only with Volumetric scattering. You can add color in refraction but SSS will work not the same as separate objects
on the right separate object, on the left attached
https://i.imgur.com/LD9DluH.jpg

would be interested to see how you will make foam material for close up rendering.
Title: Re: Glass with Liquid
Post by: dfcorona on 2020-11-15, 19:53:12
Hi Sprayer, Thank you for the help. Sorry it takes me a while to get back cause I don't receive email notifications from forum threads I'm subscribed too even though I optioned for it. I guess I need to talk to support to fix this issue. I tried the color refraction but it didn't look as correct.  As far as foam, I'm not doing close ups of the beer so foam looks just fine from the distance.