Chaos Corona Forum

Chaos Corona for Cinema 4D => [C4D] I need help! => Topic started by: caspian on 2020-01-17, 05:55:29

Title: Volumetric Fog in C4D (not mist)
Post by: caspian on 2020-01-17, 05:55:29
https://www.stateofartacademy.com/en/corona-renderer-tutorial-volumetric-fog/

I thought I understood the basics of volumetric fog, but I can't seems to achieve this effect (link above) that has different densities, rather than a more general mist in C4D. With my limited knowledge I thought putting a noise shader in the volume would be good place to start, but it just makes things blotchy and just looks rubbish. Any ideas greatly appreciated!
Title: Re: Volumetric Fog in C4D (not mist)
Post by: TomG on 2020-01-17, 14:20:06
You need to use the Volume material, and you need to swap it to Inside Volume mode (rather than the default On Surface mode). A screen grab of your material set up would help, to see just how you have things set up just now :)
Title: Re: Volumetric Fog in C4D (not mist)
Post by: caspian on 2020-01-17, 20:10:33
My material here (includes what I am trying to achieve:https://imgur.com/a/KvAVHlX

thanks!
Title: Re: Volumetric Fog in C4D (not mist)
Post by: TomG on 2020-01-17, 20:14:20
With the right noise map that should work just fine :) The noise will have to be in 3D and not in 2D (e.g. UV space). The noise would go into the absorption and/or scattering.
Title: Re: Volumetric Fog in C4D (not mist)
Post by: Beanzvision on 2020-01-20, 13:58:12
Hi Caspian, here's a quick setup that might get you in the right direction. You should be able to control the falloff by tweaking the gradient sliders. With turbulence added to the gradient it will make the falloff not so uniform. I hope that helps.

(https://forum.corona-renderer.com/index.php?action=dlattach;topic=27586.0;attach=118239;image)
Title: Re: Volumetric Fog in C4D (not mist)
Post by: TomG on 2020-01-20, 14:30:34
As a note, there's a report of a possible bug, see https://forum.corona-renderer.com/index.php?topic=27614

caspian, if you can confirm which version of Corona you are using, and maybe upload a scene with the material (can be just a cube and the problem material) as that would let us look into your scene while checking the other one. Thanks!
Title: Re: Volumetric Fog in C4D (not mist)
Post by: TomG on 2020-01-20, 18:19:09
Ok, that bug report has been checked, and it wasn't using a 3D space for the Noise shaders (World, or Object), but was using Texture. This incorrectly worked in earlier versions of Corona.

So, if you have the Noise set to some 3D mapping and are still having problems, it would help if you could send us the scene :) Thanks!
Title: Re: Volumetric Fog in C4D (not mist)
Post by: caspian on 2020-01-22, 01:35:51
Thank you all for you help. I'm testing it with the 3D noise material beanzvision posted. (it certainly slows render time!)
I am trying to summarise what each of Absorption, Scattering Emission do in my notes so I don't forget and just end up pushing sliders:
I'm a little confused between the distance setting in Absorption and Emission, and what the Step size (Volume mapping) does.

Is there a help/index I can search for?
Title: Re: Volumetric Fog in C4D (not mist)
Post by: TomG on 2020-01-22, 07:52:40
Since the parameters work the same way whether inside mode is enabled or on surface mode is used, check https://help.c4d.corona-renderer.com/support/solutions/articles/12000035577-how-to-use-volumetrics-

Also the 3ds Max volume tutorials will cover the same topics in video form -
,
etc.
Title: Re: Volumetric Fog in C4D (not mist)
Post by: TomG on 2020-01-22, 07:53:43
The one thing specific to inside mode is step size - the smaller the step size, the more accurate the result but the longer the render time. Best to find the highest step size where you don't see "boxy" artifacts in the result, as that will give the best render time possible without losing quality.