Chaos Corona Forum

Chaos Corona for 3ds Max => [Max] I need help! => Topic started by: steveph23 on 2015-06-05, 23:31:56

Title: gradient fog
Post by: steveph23 on 2015-06-05, 23:31:56
Hi All

Is it possible to create a fog that uses a gradient from 100% fog to 0% within an object ? I am using a standard corona material with 0 opacity and procedural maps in vol absorption which is great but there is still a defined edge where it hits the faces of the object. Any way around this ? It needs to be contained but I would like to use multiple objects for varying degrees of fog.

Cheers.
Title: Re: gradient fog
Post by: steveph23 on 2015-06-11, 18:39:57
I found a work around using multi sub-object and translucncy map but if anyone has a better idea, or I am missing something then I would be happy to hear it.
Title: Re: gradient fog
Post by: Alex Abarca on 2015-06-12, 03:17:24
most people use the zdepth pass to make fog. you could brush it a bit in PS to make it look irregular.
Title: Re: gradient fog
Post by: maru on 2015-06-12, 11:42:23
I am not sure what you are trying to achieve. Here is my example. Am I close? It still looks pretty ugly in some places though (pic2).
Title: Re: gradient fog
Post by: maru on 2015-06-12, 11:47:10
And here is a version with falloff to make softer edges.
And another one with scattering enabled, which seems to fix the issue from pic2.
Title: Re: gradient fog
Post by: Alex Abarca on 2015-06-12, 22:12:43
That's fog Maru?
Title: Re: gradient fog
Post by: maru on 2015-06-13, 11:06:29
I'm not sure what exactly this thread is about but:

Quote
Is it possible to create a fog that uses a gradient from 100% fog to 0% within an object ?
Title: Re: gradient fog
Post by: steveph23 on 2015-06-14, 21:26:58
Hi Maru

thanks for the images and trying to help
., yes that is sort of what I am trying to achieve, I just found that when placing fog within the confines of a box it starts showing the faces, sort of like pic 2. What are your settings for the second set of images with a fall-off map?
Title: Re: gradient fog
Post by: PROH on 2015-06-14, 22:16:16
Hi. Just a little note that might be usefull.

AFAIK fog in Corona (at the moment) is not "within" the geometry, but is actually "on" the objects surface - like any other material. But when using absorption and scatter it can be made to look like it's inside. Therefor it's also depending on the shape of the used geometry. So if you want the fog to fade, it's better to use round/rounded geometry instead of boxes (just like Marus example).
Title: Re: gradient fog
Post by: steveph23 on 2015-06-14, 23:28:23
Thanks PROH

I think that is where It had me so confused and why I was trying all kinds of weird things to hide certain sides of the box i was using.
Title: Re: gradient fog
Post by: maru on 2015-06-15, 17:36:05
I should be able to send my scene today or tomorrow if it's helpful.
Title: Re: gradient fog
Post by: maru on 2015-06-15, 20:07:56
here is the scene in max14
Title: Re: gradient fog
Post by: steveph23 on 2015-06-16, 00:57:27
Thanks Maru

That certainly helps.