This example demonstrates the effect of the fog color. Note how color only changes the way the volume reacts to light, and not the volume transparency. In this example, the fog density is mapped with a checker texture. A Box gizmo is used to confine the fog volume.
Section
border
true
Column
width
300px
Image RemovedImage Added
Column
width
300px
Image RemovedImage Added
Column
width
300px
Image RemovedImage Added
Section
border
true
In the following examples, the fog color has been mapped with a texture. World XYZ mapping type was used for the textures.
Section
border
true
Column
width
500px
Image AddedImage Removed
A Gradient Ramp texture with Solid interpolation.
Column
width
500px
Image AddedImage Removed
A Noise texture with Turbulence type.
Section
border
true
Column
width
100%
Emission - controls the fog emission (self-illumination). You can use this parameter to substitute the ambient illumination inside the fog, instead of using GI.
Info
Example: Fog emission
Section
border
true
This example demonstrates the effect of the Fog emission parameter. The Fog color is gray so as to better show the effect of the emission. Note that since we also have GI enabled, the fog emission causes the volume to illuminate both itself and other objects around it. The fog density is mapped with a Checker texture. A Box gizmo is used to confine the fog volume.
Section
border
true
Column
width
330px
Image AddedImage Removed
Fog emission is black (no emission),
Fog color is gray
Column
width
330px
Image AddedImage Removed
Fog emission is dark blue,
Fog color is gray
Column
width
330px
Image AddedImage Removed
Fog emission is dark blue, Fog color is black
(only the fog emission affects the image)
Section
border
true
In the following examples, the Fog emission has been mapped with a texture. The Fog color is gray to better show the light scattering inside the volume, produced by the global illumination. The scene for the last image is available here.
Section
border
true
Column
width
500px
Image AddedImage Removed
Fog emission is mapped with a
Gradient Ramp texture.
Column
width
500px
Image AddedImage Removed
Fog emission is mapped with a red Noise
texture with Turbulence type.
Section
border
true
Column
width
100%
Emission Multiplier - a multiplier for the Emissionparameter
Fog distance - controls the fog density. Larger values make the fog more transparent, while smaller values make it more dense.
Info
Example: Fog distance
Section
border
true
This example demonstrates the effect of the Fog distance parameter. Note how larger values make the fog more transparent. A Box gizmo is used to confine the fog volume.
Section
border
true
Column
width
300px
Image RemovedImage Added
Fog distance is 4.0
Column
width
300px
Image RemovedImage Added
Fog distance is 16.0
Column
width
300px
Image RemovedImage Added
Fog distance is 64.0
Section
border
true
In the following examples, the fog density has been mapped with a texture. World XYZ mapping type was used for the textures.
Section
border
true
Column
width
250px
Image RemovedImage Added
No texture
Column
width
250px
Image RemovedImage Added
Checker texture
Column
width
250px
Image RemovedImage Added
Regular Noise texture
Column
width
250px
Image RemovedImage Added
Inverted turbulence Noise texture
Section
border
true
Column
width
100%
Fog density- a multiplier for the Fog distance parameter that allows a texture to be used for the density of the fog
Fog height - if the fog is not contained within a volume, it is assumed to start from a certain Z-level height and continue downward indefinitely. This parameter determines the starting point along the Z-axis.
Info
Example: Fog height
Section
border
true
When there are no gizmo nodes connected to VRayEnvironmentFog, the volume occupies space downward from a certain height along the scene Z-axis, determined by the Fog height parameter. The following examples demonstrate this. Note that as the Fog height is increased, the scene becomes darker - this is because the sun is blocked by a larger amount of fog. This can be corrected by increasing the Fog distance parameter, and thus making the fog more transparent. Note also the sudden decrease of brightness when the camera is included inside the fog volume. For more info on gizmo nodes, see the Example below.
Section
border
true
Column
Image RemovedImage Added
Fog distance = 40 Fog height = 20
Column
Image RemovedImage Added
Fog distance = 40 Fog height = 40
Column
Image RemovedImage Added
Fog distance = 40 Fog height = 100
Column
Image RemovedImage Added
Fog distance = 40 Fog height = 200
Section
border
true
Column
Image RemovedImage Added
Fog distance = 200 Fog height = 20
Column
Image RemovedImage Added
Fog distance = 200 Fog height = 40
Column
Image RemovedImage Added
Fog distance = 200 Fog height = 100
Column
Image RemovedImage Added
Fog distance = 200 Fog height = 200
...
Section
border
true
Column
width
100%
Info
Example: Scatter GI and Scatter bounces
Section
border
true
This example demonstrates the effect of the Scatter GI and Scatter bounces parameters. Note how multiple scattering of light inside the volume greatly increases the realism of the image. The scene for the last image (for 3ds Max 2008) is availablehere.
Section
border
true
Column
width
330px
Image AddedImage Removed
GI is off in the V-Ray settings - the fog volume only shows direct lighting.
Column
width
330px
Image AddedImage Removed
GI is on, Scatter GI is off - the fog does not scatter GI and so looks identical to the left image (it is lit with direct light only).
Column
width
330px
Image AddedImage Removed
GI is on, Scatter GI is on,Scatter bounces is 1. Notice how the fog volume is affected by the skylight. The irradiance map was used for a primary GI engine.
Section
border
true
Column
width
250px
Image AddedImage Removed
GI is on, Scatter GI is on, Scatter bounces is 2. Irradiance map + brute force GI for secondary bounces.
Column
width
250px
Image AddedImage Removed
GI is on, Scatter GI is on, Scatter bounces is 4. Irradiance map + brute force GI.
Column
width
250px
Image RemovedImage Added
GI is on, Scatter GI is on, Scatter bounces is 8. Irradiance map + brute force GI.
Column
width
250px
Image AddedImage Removed
GI is on, Scatter GI is on, Scatter bounces is 100. Irradiance map + Light cache for secondary bounces.
...
Section
border
true
Column
width
100%
Info
Example: Sampling parameters (raymarcher with textures)
Section
border
true
When any of the parameters (density, color or emission) is mapped with a texture, VRayEnvironmentFog uses a raymarching algorithm to compute the intersection of a ray with the volume.
The following examples demonstrate the effect of the Step size parameter. A Box gizmo is used to confine the volume, and the density is mapped with a Checker texture. Note how smaller values cause less noise and smoother shading of the volume. Note also that more dense volumes require smaller values of the Step sizeparameter in order to produce a smooth result, compared to more transparent volumes. In general, values for the Step size that are 2 to 3 times smaller than the Fog distance parameter work okay in most cases.
In the examples below, the Fog distance parameter is 5.0.
Section
border
true
Column
width
250px
Image RemovedImage Added
Step sizeis 1.0
Column
width
250px
Image RemovedImage Added
Step size is 2.5
Column
width
250px
Image RemovedImage Added
Step size is 5.0
Column
width
250px
Image RemovedImage Added
Step size is 10.0
Section
border
true
In the examples below, the Fog distance is 20.0.
Section
border
true
Column
width
250px
Image RemovedImage Added
Step size is 4.0
Column
width
250px
Image RemovedImage Added
Step size is 10.0
Column
width
250px
Image RemovedImage Added
Step size is 20.0
Column
width
250px
Image RemovedImage Added
Step size is 40.0
...
Section
border
true
Column
width
100%
Info
Example: Gizmo nodes
Section
border
true
When there are gizmos connected to VRayEnvironmentFog, then the volume is confined only inside the specified atmospheric gizmos and the Fog height parameter is ignored.
Section
border
true
Column
width
250px
Image RemovedImage Added
BoxGizmo
Column
width
250px
Image RemovedImage Added
SphereGizmo
Column
width
250px
Image RemovedImage Added
CylGizmo
Column
width
250px
Image RemovedImage Added
Several gizmos
Anchor
Gizmo falloff mode example
Gizmo falloff mode example
Section
border
true
Column
width
250px
Image AddedImage Removed
Several gizmos; theFog color is mapped with a Gradient texture with ObjectXYZ mapping type.