Results 1 to 9 of 9

Thread: Fog

  1. #1
    Senior Member Regular Contributor
    Join Date
    Nov 2000
    Location
    Sydney, NSW, Australia
    Posts
    426

    Fog

    Id like to ask about fog. The fog that is shown in NeHe's tutorials absolutely sucks, in my opinion. Look at the cool fog in Quake3 Arena, I beleive it is called volumetric Fog. Does anybody know of any good tutorials on better types of fog? Any fog at all that is better than the default OpenGL one would do.
    :: Sleep is a poor substitute for caffeine ::

  2. #2
    Senior Member Regular Contributor
    Join Date
    Nov 2000
    Location
    Dunblane, Scotland
    Posts
    333

    Re: Fog

    There is an extension to allow you to give a fog value per a vertex giving volumetric fog.
    Don't know the exact name...

    Tim
    Reality is for idiots only the best over come it!

  3. #3
    Junior Member Newbie
    Join Date
    May 2001
    Location
    Canada
    Posts
    1

    Re: Fog

    the extension name is fog.dll

  4. #4
    Senior Member OpenGL Guru
    Join Date
    Feb 2000
    Location
    Sweden
    Posts
    2,978

    Re: Fog

    The extensions for passing your own fog coordinates is called GL_EXT_fog_coord. fog.dll sounds more like a file that doesn't belong to OpenGL at all.

  5. #5
    Senior Member Regular Contributor
    Join Date
    Nov 2000
    Location
    Sydney, NSW, Australia
    Posts
    426

    Re: Fog

    Does anybody know of a good example program that uses the extention, or a tutorial or something I can learn from?
    :: Sleep is a poor substitute for caffeine ::

  6. #6
    Senior Member OpenGL Guru zed's Avatar
    Join Date
    Nov 2010
    Posts
    2,466

    Re: Fog

    an example on my site (url profile) beware its not cool

  7. #7
    Junior Member Newbie
    Join Date
    May 2001
    Location
    Poland
    Posts
    5

    Re: Fog

    In QuakeIIIArena, Carmack used many opaque triangles to simulate fog. With GL_FOG you cannot achieve volumetric fog. Triangles are needeed, because ordinary GL_FOG appeares only on other triangles and doesn't fill empty space. If you are using triangles, you can fill empty space with fog ( like in Unreal and QuakeIIIArena). If you are standing in the front of this kind of fog you cannot look behind it. With GL_FOG only walls would be covered, and empty space would be not.

  8. #8
    Junior Member Newbie
    Join Date
    May 2001
    Location
    Poland
    Posts
    5

    Re: Fog

    In QuakeIIIArena, Carmack used many opaque triangles (it looks like triangles) to simulate fog. With GL_FOG you cannot achieve volumetric fog. Triangles are needeed, because ordinary GL_FOG appeares only on other triangles and doesn't fill empty space. If you are using triangles, you can fill empty space with fog (like in Unreal and QuakeIIIArena). If you are standing in the front of this kind of volumetric fog you cannot look behind it. With GL_FOG or even GL_EXT_fog_coord only walls would be covered, and empty space would be not.

  9. #9
    Junior Member Newbie
    Join Date
    May 2001
    Posts
    22

    Re: Fog

    For what it's worth, there's a video on Gamasutra that shows Brian Hook talking about Quake3's features. He talks about the fog technique more than anything else. The video is in the GDC '99 collection.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean