PDA

View Full Version : Layered fog



chicho
07-03-2002, 05:28 AM
Hi, Somebody knows or has idea how could I do layered fog with OpenGL?, There are extensions to do it?

Thanks a lot.

MrShoe
07-04-2002, 12:06 AM
What do you mean by layered fog?? Fog in opengl can be either for the entire scene, or vulemtrix where it is confined in a certain space. However, these fogs are static and are rathe simple. If you want to have advanced fog which isnt static you would have to use a particle system...

chicho
07-04-2002, 03:34 AM
I want to change the intensity of fog on Y axis, but I don't want volumetric fog because is very inefficient in real time. For example I have a city with fog and when I go up and see the city from the sky I want to see the fog in the city but not near of me (in clouds or other planes). Also, when I see to front I want light fog, but when I see to down I want dense fog over the city.

regards.

Bob
07-05-2002, 01:01 AM
Looks like a job for EXT_fog_coord (http://oss.sgi.com/projects/ogl-sample/registry/EXT/fog_coord.txt) . That extension, or a vertex program, is used to create fog effects OpenGL can't do.