Hi,
is there an easy way to have fog only at the edge of a ITerrainSceneNode? So that you can´t see the the border of it.
Thanks,
badday
Fog at the edge of terrain
yes you can use a linear fog in this way.
that's pretty simple. You can try with exponential fog also. I don't guarantee that this will work.
You should also remember to put as BG color the same color of the fog or at least uses a skydome/box with the lower part of the same color of the fog
Code: Select all
near plane = 1
far plane = 1000
linear fog starting limit = 900 (or what you like)
linear fog ending limit = 1000 (or what you like)
You should also remember to put as BG color the same color of the fog or at least uses a skydome/box with the lower part of the same color of the fog
Junior Irrlicht Developer.
Real value in social networks is not about "increasing" number of followers, but about getting in touch with Amazing people.
- by Me
Real value in social networks is not about "increasing" number of followers, but about getting in touch with Amazing people.
- by Me
-
randomMesh
- Posts: 1186
- Joined: Fri Dec 29, 2006 12:04 am
Re: Fog at the edge of terrain
@randomMesh: Well, ok, you´re right, that will do the trick. Thx.
Another problem I see is that the material type of the terrain is a GLSL shader. So as far as I see it, it won´t be affected by irrlicht´s fog, will it? Of course, I can make fog via shader, but the thing is that this doesn´t lead to the intended effect as only the terrain get´s another colour, but there is no fading effect.
Does anyone know how to accomplish that?
Another problem I see is that the material type of the terrain is a GLSL shader. So as far as I see it, it won´t be affected by irrlicht´s fog, will it? Of course, I can make fog via shader, but the thing is that this doesn´t lead to the intended effect as only the terrain get´s another colour, but there is no fading effect.
Does anyone know how to accomplish that?
Re: Fog at the edge of terrain
- The glory days.Re: Fog at the edge of terrain
Using that alpha-trick in the terrain shader worked well, thanks 