I'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.
-
$\begingroup$ related: blender.stackexchange.com/questions/28648/… and blender.stackexchange.com/questions/43600/… $\endgroup$– user1853Jul 14, 2016 at 14:02
-
$\begingroup$ Also you can't use volume and surface at the same time in the world settings. See this answers: blender.stackexchange.com/questions/49893/… blender.stackexchange.com/a/19227/1853 related: blender.org/manual/render/cycles/materials/… $\endgroup$– user1853Jul 14, 2016 at 14:05
-
1$\begingroup$ Also related: blender.stackexchange.com/questions/33340/… and blender.stackexchange.com/questions/53589/… $\endgroup$– user1853Jul 14, 2016 at 14:20
-
$\begingroup$ To hide the horizon you need aerial respective, which is fog that gets thicker as it recedes into distance. You could also add a plane with ramp texture that gets thicker at the bottom. Then place plane infront of horizon. $\endgroup$– 3pointeditFeb 18, 2017 at 14:01
2 Answers
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.
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.
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$ Aug 8, 2016 at 15:14