Hi,
I am developing a 3d environment, which have terrain, sky dome, sea and other ships. I need to simulate the visibiliy of the camera (in terms of visibility parameter in meters). To do that i am using Linear fog.
Here is the fogging parameters
setVisibility(double distance)
{
linearFog.setFrontDistance(1);
linearFog.setBackDistance(distance);
linearFog.setColor(new Color3f(05f,05f,05f);
}
The problem with this is, although it works with terrain, ships etc., it does not work with sea as i expected. All the sea gets fogged, without any interpolation.
I implemented sea as a bid quad covering all the sea area with a sea texture and i gave motion effect by just changing texture position of the sea continuesly.
Can the problem be related to how i implemented the sea (one big quad), do i need to partition the sea into smal quads (which i dont prefer ), or is there any other
paramter that i should think about.