Since a few weeks now i’m trying to read all their is about unity, and i love itI and the community rocks… tnx everybody for letting me learn so much… For an artporject of mine i need a horizon fog:
(a link from the terrain tutorial)
I am creating a dutch field a “polder” and the horizon is verry ugly. This is the work from wich it originated.
I rememberd the days when I tweaked with bryce. It had a nice band on the horizon, that whould work i guess…
I read about yoggy’s fog band, but i am a bit clueless of how he did it. The standard fog in the rendering setting is not enough i guess, because it is a farsight. I know there are particles involved and i saw the tutorial from the tornadotwins (all 29 ), but that’s no way near fog…
If someone whould help me on my way, i would be verry gratefull, to bad i am a visual person, no programmer, otherwise i could have done this by reading the manual (rtfm!)
I can trade however, I teach photoshop at an acadamy, so if ya want some hard skills in return… let me know!
I’m hopeful that someone on this forum has a better way to do it in Unity, but when I’ve implemented it in other systems it required writing custom shader code.
Search for “Real Time Rendering of Light Scattering For Outdoor Scenes”. There is a good summary paper by James Long.
I would love this feature too, I hate that if you activate fog your skybox becomes totally useles… but horizont fog would be very helpful to close scene geometry at a certain point and retain the skybox feature.
The only possible solution for what you want i can think of is;
whatever your ground object is(the one which needs blending with horizon) must use a smiliar shader like i posted above and fades the texture to the fog texture depending on depth texture which unfortunately require pro and worse is it requires deferred rendering.
However, you can use particles to fake such an illusion i guess.
Edit: Or, why cant you just use normal fog and adjust the color to the horizon color and adjust the distance anyways?
Yes… I figured that you could use particles for such an effect… and i know already that one could use a mesh in the shape of a ring. The problem is, i cannot find a tutorial or something where i can learn to make a fog out of particles. And maybe it is beyond my set of skills, but id like to try. The normal fog; I d tweaked it for a while but i could not get anything near realism or even semi realism. It is nice for objects and buildings 50 meters away or something like that. But not for landscapes… Or maybe you caught me being a Noob… wich in fact I am… But trying so hard not to be one,
Flat horizons are always problematic, you might want to use some height variation at the horizon and then your fog will work as desired.
Nothin needs to be perfect though.