This quick tutorial shows how to create the God Rays effect in V-Ray using the Environment Fog feature.
Overview
God rays are a volumetric effect, often used by 3D artists to achieve a more dramatic effect on a 3D scene. This effect is caused when direct pointed light (such as a sun) passes through the dusty or foggy atmosphere.
Setup
To create God Rays effect in V-Ray for 3ds Max, follow the steps below:
- Create a camera, e.g., V-Ray Physical Camera.
- Create a light, e.g,. V-Ray Sun.
- Add VRayEnvironmentFog (Rendering > Environment > Atmosphere rollout > Add... > VrayEnvironmentFog).
-
At this point, the God Rays should be visible in the rendered image.
To achieve a more convincing effect, adjust Fog Color, Fog Distance, and Fog Height parameters accordingly. Note that the Fog Distance and Fog Height parameters operate in Scene Units.
-
The Fog Color parameter determines the color of the fog:
Preview of the Fog Color setting's location in 3ds Max Example results with red, white and blue colored fog -
The Fog distance parameter controls the fog's density
Larger values make the fog more transparent, smaller values make it denser
Preview of the Fog Distance setting's location in 3ds Max Example results of a fog with a density of 500/850/1150cm -
The Fog height parameter determines the height of the fog
For a more realistic effect, set the fog height to be higher than the position of the camera; optimally, to cover any visible part of the scene.
Preview of the Fog Height setting's location in 3ds Max Example results of a fog with a height of 150/200/330cm -
Excluding lights
When multiple lights are present in the scene but you want only some of them to affect
for the god rays effect, you can include or exclude light sources by disabling the "Use all
lights" option in the VrayEnvironmentFog nodes rollout and clicking on the Add button.
Preview of the VRayEnvironmentFog setting's location in 3ds Max -
Learn more about the V-Ray Environment Fog: