Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This quick tutorial shows how to create God Rays effect in V-Ray using Ray using the Environment Fog Environment Fog feature. 


Overview

...

Overview

 
Section
Column
width40%50%

God rays is a volumetric effect, often used by 3D artists to achieve a more dramatic effect to a 3D scene. This effect is caused when direct pointed light (such as a sun) passes through dusty or foggy atmosphere.

To download the simplified example scene, used in this tutorial, click the button below:

UI Button
colorblue
titleDownload Scene Files
urlhttps://drive.google.com/uc?export=download&id=1V3hXMLqGV_EqBnH5nJoP8JujDKHnMv_t

 

UI Text Box
typetip

A video tutorial is also available here.  

Column
width5%

 

Column
width60%45%

 

Creating God Rays in 3ds Max

...

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

...

...

Example scene can be downloaded from here.

 

  1. Create a camera, e.g. V-Ray Physical Cam.

  2. Create a light, e.g. V-Ray Sun.

  3. Add VRayEnvironmentFog effect from: Rendering menu > Environment Atmosphere rollout > Add button > Rendering menu > Environment > Atmosphere rollout > Add button > VrayEnvironmentFog

 

Image RemovedImage Added


At this point point the Environment Fog should Fog should be visible in the rendered image. To achieve a more convincing effect, adjust adjust the Fog ColorcolorFog Distancedistance, and Fog Heightheight parameters accordingly. 

UI Text Box
typetip

Fog Distancedistance and Fog Heightheight parameters operate in Scene Units. For an easier setup it is recommended to know the size/scale of the scene.

 

4. The fog Fog color parameter determines the color of the fog.
Image Removed

 

Align
aligncenter
HTML
<iframe width="560" height="315" src="https://www.youtube.com/embed/V4_R2D6lRto" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>


5. The fog Fog distance parameter controls the fog density. Larger values make it more transparent, whereas smaller values make it more densedenser.

 
Image Removed

Align
aligncenter
HTML
<iframe width="560" height="315" src="https://www.youtube.com/embed/Bhs6JBkF13A" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>


6. The fog Fog height parameter determines the height of the fog.
Image Removed

...



Align
aligncenter
HTML
<iframe width="560" height="315" src="https://www.youtube.com/embed/jZURjJoPOsg" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
UI Text Box
typetip

When multiple lights are present in the scene but you want only some of them to be responsible for the god rays effect, you can include or exclude light sources by disabling the Use all lights option in the VrayEnvironmentFog nodes the VRayEnvironmentFog nodes rollout and then clicking on the Add buttonAdd button.

 

Image Removed

Align
aligncenter
HTML
<iframe width="560" height="315" src="https://www.youtube.com/embed/ye7OzdT6zmU" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

...

UI Text Box
typetip

For a more realistic effect, set the fog Fog height to be higher than the position of the camera, and if the scene allows it, to cover any visible part of the scene.