Creating God Rays in V-Ray

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.

god_rays_3dsmax.jpg
Preview of a dramatic rendering using the God Rays effect

 

Setup

Watch the video tutorial.

Download the example scene.


To create God Rays effect in V-Ray for 3ds Max, follow the steps below:

  1. Create a camera, e.g., V-Ray Physical Camera.
  2. Create a light, e.g,. V-Ray Sun.
  3. Add VRayEnvironmentFog (Rendering > Environment > Atmosphere rollout > Add... > VrayEnvironmentFog).
  4. At this point, the God Rays should be visible in the rendered image. 

    To achieve a more convincing effect, adjust Fog ColorFog Distance, and Fog Height parameters accordingly. Note that the Fog Distance and Fog Height parameters operate in Scene Units.

  5. The Fog Color parameter determines the color of the fog:

    fog_color_settings.png
    Preview of the Fog Color setting's location in 3ds Max
    foc_color_blue_white_red.gif
    Example results with red, white and blue colored fog

     

    1. The Fog distance parameter controls the fog's density

      Larger values make the fog more transparent, smaller values make it denser

    fog_distance_settings.png
    Preview of the Fog Distance setting's location in 3ds Max
    fog_density_500-850-1150.gif
    Example results of a fog with a density of 500/850/1150cm

     

    1. 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.

    fog_height_settings.png
    Preview of the Fog Height setting's location in 3ds Max
    fog_height.gif
    Example results of a fog with a height of 150/200/330cm

     

    1. 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.

    exclude.png
    Preview of the VRayEnvironmentFog setting's location in 3ds Max

     

Learn more about the V-Ray Environment Fog: 

Was this article helpful?
0 out of 0 found this helpful