Can anyone explain what volume medium is ?

Forums: Can anyone explain what volume medium is ?
Generic forum to discuss Octane Render, post ideas and suggest improvements.
Forum rules
Please add your OS and Hardware Configuration in your signature, it makes it easier for us to help you analyze problems. Example: Win 7 64 | Geforce GTX680 | i7 3770 | 16GB

Can anyone explain what volume medium is ?

Postby coilbook » Mon Jun 04, 2018 2:43 am

coilbook Mon Jun 04, 2018 2:43 am
Hi
I've been using octane for a while but still cannot tell the difference between medium radius (the sun roll out) and density (volume medium texture). They both control thickness of the fog What is the difference? Thanks
coilbook
Licensed Customer
Licensed Customer
 
Posts: 2985
Joined: Mon Mar 24, 2014 2:27 pm

Re: Can anyone explain what volume medium is ?

Postby bepeg4d » Mon Jun 04, 2018 8:25 am

bepeg4d Mon Jun 04, 2018 8:25 am
Hi,
we have already told about Medium radius here, for example:
viewtopic.php?f=24&t=55567&p=284654&hilit=coilbook#p284654
Even if it seems to you to have the same impact of the Density value, they are different.
About Medium Radius, imagine that there is a virtual fog sphere around your camera, in this way the fog is limited to a specific dimension, in general greater than the scene dimensions, giving the illusion that the fog is covering the scene till the horizont.
If the fog sphere is smaller then the scene dimensions, the fog is less present, but can also gives unwanted results, with God Rays for example. The value is outside the Medium node, and independent from the values inside it.
On the other side, the Density is a multiplier of absorption and scattering values of the Medium node chosen, and it is relative to the kind of medium the light hhas to pas through. For air/fog, you should use a very low density value like 0.05, as a starting value. Since the Medium node can be used also with materials, the density needs to be adjjusted accordingly.
In short:
Medium Radius = scene/camera dependent
Density = material dependent

Happy GPU Rendering,
ciao Beppe
User avatar
bepeg4d
Octane Guru
Octane Guru
 
Posts: 9953
Joined: Wed Jun 02, 2010 6:02 am
Location: Italy

Re: Can anyone explain what volume medium is ?

Postby coilbook » Mon Jun 04, 2018 3:53 pm

coilbook Mon Jun 04, 2018 3:53 pm
bepeg4d wrote:Hi,
we have already told about Medium radius here, for example:
viewtopic.php?f=24&t=55567&p=284654&hilit=coilbook#p284654
Even if it seems to you to have the same impact of the Density value, they are different.
About Medium Radius, imagine that there is a virtual fog sphere around your camera, in this way the fog is limited to a specific dimension, in general greater than the scene dimensions, giving the illusion that the fog is covering the scene till the horizont.
If the fog sphere is smaller then the scene dimensions, the fog is less present, but can also gives unwanted results, with God Rays for example. The value is outside the Medium node, and independent from the values inside it.
On the other side, the Density is a multiplier of absorption and scattering values of the Medium node chosen, and it is relative to the kind of medium the light hhas to pas through. For air/fog, you should use a very low density value like 0.05, as a starting value. Since the Medium node can be used also with materials, the density needs to be adjjusted accordingly.
In short:
Medium Radius = scene/camera dependent
Density = material dependent

Happy GPU Rendering,
ciao Beppe


Thanks a lot for explaining!
By the way anyway to have this added in the future, From the camera to whatever distance you choose like a buffer zone where medium volume wont kick in so upclose objects look nice and rich without changing there color by the medium volume. I know you can add a sphere around the camera but then there is a sharp line where you can see the beginning of the fog. Like in fining nemo upfront objects were very nice and colorful and had no color change and about 20-30 feet after fog started
Attachments
med volume.jpg
coilbook
Licensed Customer
Licensed Customer
 
Posts: 2985
Joined: Mon Mar 24, 2014 2:27 pm

Re: Can anyone explain what volume medium is ?

Postby bepeg4d » Mon Jun 04, 2018 4:07 pm

bepeg4d Mon Jun 04, 2018 4:07 pm
Hi,
the Environment medium offers you ‘simple’ fog/god rays effect, for more detailed effects, better to use a Volume with ramp, to differently attenuate scatteting and absorption where you want.
ciao Beppe
User avatar
bepeg4d
Octane Guru
Octane Guru
 
Posts: 9953
Joined: Wed Jun 02, 2010 6:02 am
Location: Italy

Re: Can anyone explain what volume medium is ?

Postby coilbook » Mon Jun 04, 2018 4:22 pm

coilbook Mon Jun 04, 2018 4:22 pm
bepeg4d wrote:Hi,
the Environment medium offers you ‘simple’ fog/god rays effect, for more detailed effects, better to use a Volume with ramp, to differently attenuate scatteting and absorption where you want.
ciao Beppe

Thanks!
By the way do I need to add anything else I am trying to make foreground without scatter but the ramp does not do anything
Attachments
vol ramp.jpg
coilbook
Licensed Customer
Licensed Customer
 
Posts: 2985
Joined: Mon Mar 24, 2014 2:27 pm

Re: Can anyone explain what volume medium is ?

Postby coilbook » Mon Jun 04, 2018 7:29 pm

coilbook Mon Jun 04, 2018 7:29 pm
It seems that volume with ramp does nothing. is it not working?
coilbook
Licensed Customer
Licensed Customer
 
Posts: 2985
Joined: Mon Mar 24, 2014 2:27 pm

Re: Can anyone explain what volume medium is ?

Postby promity » Tue Jun 05, 2018 1:14 am

promity Tue Jun 05, 2018 1:14 am
For me this question is also an old headache.
AMD Threadripper 1950X/64gb ram/RTX 3080 Ti + RTX 2070/Samsung SSD 870 EVO 500 gb/
Lightwave 3d
User avatar
promity
Licensed Customer
Licensed Customer
 
Posts: 363
Joined: Sun Dec 19, 2010 7:59 am
Location: Russia

Re: Can anyone explain what volume medium is ?

Postby haze » Tue Jun 05, 2018 4:13 am

haze Tue Jun 05, 2018 4:13 am
coilbook wrote:It seems that volume with ramp does nothing. is it not working?


Make sure that the Max grid value is accurate. If it is too big, then the ramp will only affect a very small portion of the density spectrum.
User avatar
haze
OctaneRender Team
OctaneRender Team
 
Posts: 969
Joined: Sun Feb 08, 2015 8:57 pm

Re: Can anyone explain what volume medium is ?

Postby coilbook » Tue Jun 05, 2018 3:59 pm

coilbook Tue Jun 05, 2018 3:59 pm
haze wrote:
coilbook wrote:It seems that volume with ramp does nothing. is it not working?


Make sure that the Max grid value is accurate. If it is too big, then the ramp will only affect a very small portion of the density spectrum.



Hi I am not using any VDB. Just octane sun with volume medium added. Will scattering ramp even work with it, And how do I know what value I need? Thanks
coilbook
Licensed Customer
Licensed Customer
 
Posts: 2985
Joined: Mon Mar 24, 2014 2:27 pm

Re: Can anyone explain what volume medium is ?

Postby haze » Tue Jun 05, 2018 6:41 pm

haze Tue Jun 05, 2018 6:41 pm
coilbook wrote:
haze wrote:
coilbook wrote:It seems that volume with ramp does nothing. is it not working?


Make sure that the Max grid value is accurate. If it is too big, then the ramp will only affect a very small portion of the density spectrum.



Hi I am not using any VDB. Just octane sun with volume medium added. Will scattering ramp even work with it, And how do I know what value I need? Thanks



OK I understand. Volume medium has some extra settings which are actually only used with Volumes, so if you attach a volume medium to your environment, then the step length and ramps are not used. Same for the step length in the scattering medium and absorption medium.

To come back to the original question, I think there are 3 options for achieving the effect you are looking for:
1. Increase the scale of the scene in the direction away from the camera, so that the absorption effect seems to start beyond the point you want, or
2. Create a custom sphere around the area with a medium that you want to have attenuated light
3. Create a VDB with the shape you want, with densities lower at the edges, then use the ramps to change how it behaves near the edges where densities are lower

I would try option 1 and experiment with the Medium radius in the environment, before trying the other options.

If you can send us a scene, we can look into it too.
User avatar
haze
OctaneRender Team
OctaneRender Team
 
Posts: 969
Joined: Sun Feb 08, 2015 8:57 pm
Next

Return to General Discussion


Who is online

Users browsing this forum: No registered users and 23 guests

Fri Apr 19, 2024 3:05 am [ UTC ]