Area between water and terrain effect?

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
freezzo
Posts: 27
Joined: Thu Mar 08, 2007 6:36 pm
Contact:

Area between water and terrain effect?

Post by freezzo »

Is there a way i can create a terrain, and then add a water node to it and modify the area between the two to make it seem murkier and when actually under the water apply a fog like characteristic to it?

Thanks
TheC
Posts: 93
Joined: Fri May 05, 2006 7:50 am

Post by TheC »

Check if the camera is below the water, then increase the fog range :)
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

Yeah, when below the water line enable fog, set color and range as appropriate. When you go back above, undo those changes.
freezzo
Posts: 27
Joined: Thu Mar 08, 2007 6:36 pm
Contact:

Post by freezzo »

is it possible to set fog to an area? for example, also have fog below the water level regardless of whether your above or below it?
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

Fog is enabled on a per-node basis. The fog doesn't appear like normal real-world fog, it only appears between the camera position and the node that has fog enabled. You should do some experiments with the fog to see if it will do what you want.

Travis
monkeycracks
Posts: 1029
Joined: Thu Apr 06, 2006 12:45 am
Location: Tennesee, USA
Contact:

Post by monkeycracks »

On terrain, the fog sticks to the terrain rather than filling out through it like real fog.

It sucks.
pinballwizard
Posts: 67
Joined: Wed Aug 02, 2006 1:47 am

Post by pinballwizard »

You could try this technique - http://www.nothings.org/computer/vfog/
Post Reply