View Full Version : Layered fog
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.
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...
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.
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.
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.