The round ball is a point ligtI'm trying to add a fog to a sea scene that wouldn't cover the sky and get denser further down, so I could not see the horizon.

The World node


This is a cheat as well as faster render. Place a textured plane in front of the horizon with transparent at the top and sky horizon color at the bottom. Use a linear gradient to alter the Fac value of the Mix Shader.

fake aerial perspective plane material for the plane


The simple solution here is to use a volumetric shader of your choice in a smoke generator with dissolve on and slow, then use multiply on the density input into that shader to change how much fog you will get. I quick whipped together an example which isn't of very good quality (using CPU compute on an old CPU to render volumetric effects is super slow) but should get the point across. You can totally change the final look and feel as well by altering the volumetric shader and using something more complex that what I used.

Poor example of fog

Settings for the fog

Change exactly how long the "Time" setting is depending on where exactly you put the flow of the fog. In my case I put it below the ocean model, so I set it to 2. Keep in mind though that the shorter the number you put in the time, the smaller the gradation will be between the lowest and highest parts of the fog.

And finally if you've never done much for the smoke simulator before, just remember to use Alt+A to simulate so that your smoke will actually start to rise, and make sure your timeline has an end time around 50 frames out at least to ensure there is enough time for the smoke to react properly.

  • $\begingroup$ It is a grate work arund and will probebly worke fine for moste of the time but it will depend on the smoke simulator. $\endgroup$ – Alfons Marklén Aug 8 '16 at 15:14

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.