Adverti horiz upsell
Spotlight Fog
Spotlight Fog
admin, added 2006-09-05 14:10:19 UTC 87,923 views  Rating:
(2 ratings)
Page 1 of 1

Here's a common problem... you add fog to a spotlight, render an image and... no fog. The problem is simple and is inherit to how Maya calculates lightfog.

Above we see a simple scene with a single spotlight. No fog added yet.

The thing to notice is how once fog has been added to the light, a new conical object appears in the scene (the blue cone above). This is a new shape node which is a child of the spotlight's transform node. Also, if you look in the Multilister, a new shading group has appeared, called 'LightFogSE' which has a volume material associated with it. This Shading Group is assigned to the above blue conical shape.

When rendered, we can see that we do have fog... but the fog only appears in the region of the blue cone; with soft edges (based on the Fog Spread attribute of the spotlight), and a hard edged cap. The spotlight in the above render has its Decay set to '0' which explains the hard edge at the end of the cone. The only was to soften the end is to modify the decay of the spotlight, which may not suit your scene. But what we want to do here is to have the fog extend further into the scene.

What I have now done to fix the placement of the fog is modify the spotlight's scale... By increasing the scale of the spotlight, I am also scaling the blue conical shape thus increasing the area encompased by the fog. Also, I scaled it specifically so that the end of the cone in completely below the groundplane... so that the hard edge is no longer visible.

Also notice that since I have Shadows 'on' for the spotlight, volumetric shadowing is appearing within the fog cone.

Finally, I've mapped the above image of water to the spotlight's color, which will color both the emitted light and the volumetric fog. By using an image sequence of moving water, some nice effects become possible.


  • Laura Jolly

    Laura Jolly said about 8 years ago:

    Hello! Great tutorial! I was wondering if I could ask a question though, I had a question about the shadows for lightfog. I'm currently trying light a scene from above, and in between the scene and the light there is a fan. I want that fan to cast shadows onto the scene with the lightfog but whenever I turn on the shadows for the spotlight that I'm using, all traces of the lightfog disappear. What types of shadows should I turn on for the spotlight? Are there any precise settings I should know?
  • Doug Gandy

    Doug Gandy said almost 8 years ago:

    The problem I am having is that I am not even getting the blue cone. Not sure if there is a setting somewhere that it may be turned off by default. When I click the 'checkered box' to the right of Light Fog attribute, the spotlight just turns reddish in color, rather than presenting the blue cone. Any suggestions.
  • yjnh2005

    yjnh2005 said about 7 years ago:

    Hi, can you give more details about using the image of water for emitting dynamic light beams which is shown in your video?

Please sign up or sign in to post a comment.