2
$\begingroup$

I'm creating a scene for a project and I wanted to go for the god ray effect achieved by the lights passing through the window. I added a mesh onto which volume scatter node was added, but still, even after fiddling with the volume scatter density, the desired effect couldn't be achieved. Also, the outline of the mesh on which the volume scatter node was applied is visible. For the environment, I used sky texture, and even after using a sun lamp, the results remain the same. I use blender 2.90 and use the sun disk feature to light the environment. when setting the sun elevation to a specific degree, while rendering it automatically changes.

Heres a picture of the look that I'm going for (got it from blender guru tutorial)

enter image description here

and here's the render result of my project (ignore the noise)

enter image description here

$\endgroup$
11
$\begingroup$

Use a cuboid to surround the scene, and use a volume scatter node as volume. Nothing shoud be connected to the surface socket.

The default value of 1 for volume scatter is way too dense for practical use, so use a much smaller value.

enter image description here

Add a point light and make it very small (in this example is 0m) and very, very, very bright. The smaller the light, the more defined the shadows will be.

enter image description here

If you are using a glass material for the windows, you have to modify it so that it let's direct light go through it.

enter image description here

For more info on the glass shader read:

How to illuminate the dark areas behind glass in cycles

As for the noise... use a lot of samples.

enter image description here

| improve this answer | |
$\endgroup$
  • $\begingroup$ Thank You So Much!!!!!!!! The node setup for the glass shader helped execute the trick. I didn't add the light path node before, now the scene looks perfect. Thank You so Much. Is there any way to gradually decrease the god ray fall off? is it using the Anisotropy value of the volume scatter applied onto the cube? $\endgroup$ – Jassim Jul 2 at 2:50
  • 1
    $\begingroup$ You might be interested in this: blenderdiplom.com/en/tutorials/all-tutorials/…. For a falloff you might want to try adding texures to control the color and or density of the volume scatter. further info: creativeshrimp.com/volumetric-lighting-blender-tutorial.html $\endgroup$ – susu Jul 2 at 4:03
  • $\begingroup$ Anisotropy might not be the way to control fall off, but should be done on the light, or via a volume absorption node. $\endgroup$ – no-can-do Jul 2 at 10:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.