17
$\begingroup$

I have to have a spot lamp strength VERY VERY high to have these light rays come through 300000.0 and look good. Sounds crazy doesn't it. Maybe it doesn't matter but it doesn't feel right. Will I start to have problems if add other elements?

  • Lamp Size: .2
  • Lamp Strength: 300000.0
  • World Volume: Volume Scatter World Volume Density: .05
  • World Volume: Homogeneous: True
  • Render Sampling Settings Clamp Indirect: 3.0
  • Rendering No Caustics: True

enter image description here

$\endgroup$
  • 1
    $\begingroup$ Volume scatter and Volume Absorption will always make your lights seem darker. When using volumetrics I wouldn't worry about the numbers if the results are what you are looking for. Nice image by the way. $\endgroup$ – cegaton Jul 6 '14 at 17:19
15
$\begingroup$

There are several considerations here:

  • Spot lamps and sun lamps are quite different (I suspect you are using a spot lamp to simulate a sun lamp, as sun lamps are not yet supported with world volumetrics).

    Spot lamps must be placed far away in order to simulate a sun lamp, as spot lamps diverge, while sun lamps do not. Sun lamps do not have a fallof, while spot lamps do.

    This means that using a spot lamp like a sun lamp will either require big strength values, or constant falloff (which you can do with the Light Falloff node):

    enter image description here

  • The World shader fills the entire scene. The wiki explains why this problem nicely:

    . . . the world surface shader or sun lamps will have no effect if a volume shader is used. This is because the world background is assumed to be infinitely far away, which is accurate enough for the sun for example. However for modelling effects such as fog or atmospheric scattering, it is not a good assumption that the volume fills the entire space, as most of the distance between the sun and the earth is empty space. For such effects it is be better to create a volume object surrounding the scene. The size of this object will determine how much light is scattered or absorbed.

    This means that the light from the spot lamp is being absorbed before it even gets to the scene, and since the spot lamp is probably rather far away from the scene if it is being used to simulate a sun lamp, this will have a very significant impact on the amount of light reaching the model.

  • No ambient illumination with world volumes, for the same reasons as with sun lamps. This means your lamp is having to provide all the illumination for your scene.

The solution

A solution to these issues is to use a object surrounding the part of your scene which you want to be dusty/foggy/whatever instead of the world volumetrics. In this case, you probably only want the inside of your hallway to be dusty, so create an object surrounding that portion:

enter image description here

And disable world volumetrics (by editing the world material node setup).

This means that we can use sun lamps (of course, you can still use spot lamps too), and the surface output of the world shader will contribute to the scene again.

There is one problem, putting the camera inside a volume object is not currently supported. Update: camera in volume is now supported as of this commit. This will be in 2.73 or any recent build.

Until then, this can be worked around by placing the camera inside a cube or sphere and using a difference boolean modifier on the volume object to subtract the cube from it (you can also parent the "camera case" to the camera, so that it goes where the camera goes). Also be sure to hide the the "camera case", so that it does not show up in the render:

enter image description here

Result

For comparison, here is the scene rendered with a spot lamp (with constant falloff):

enter image description here

And a normal sun lamp:

enter image description here

Also see:


All that said, in the end it comes down to what looks good ;) If world volumes + a very powerful spot lamp is working for you, than there is no reason not to do that.

$\endgroup$
  • 2
    $\begingroup$ great trick with the Boolean to get the camera in the volume. smart $\endgroup$ – David Jul 7 '14 at 17:43
  • $\begingroup$ Not my original idea, but I thought it was pretty clever too ;) $\endgroup$ – gandalf3 Jul 7 '14 at 20:07

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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