Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 4 of 4

Thread: Volumetric Fog

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2000
    Location
    Osby, Sweden
    Posts
    15

    Volumetric Fog

    When you want to do volumetric fog it would be nice to have some functions to declare 4 positions in 3d space that the fog will be in. That would be very cool when you want to do i.e a fogged floor or something like that.
    Is this possible???

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    Feb 2000
    Location
    London
    Posts
    503

    Re: Volumetric Fog

    Alternatively, how about being to specify the fogging vector? F'rinstance, instead of fog intensity being based on distance from the viewer (which is approximated as Z by most implementations), you could base fog intensity on the (negative) Y axis to get ground mist, cloud layers and so on.

    Volumetric fog patches would take a fair bit of work to implement - like lighting, it's really a scene-level thing rather than an immediate-mode primitive.

  3. #3
    Junior Member Newbie
    Join Date
    Mar 2000
    Posts
    5

    Re: Volumetric Fog

    You must base fogging on the distance from viewer because you need to know how much fog the viewer is looking through.

    To be a little more general, you have to know the distance through the fogging volume that the viewers line of sight has passed. If the fogging volume is the whole scene then the two are equivilent.

  4. #4
    Junior Member Newbie
    Join Date
    Mar 2000
    Location
    Norrköping, Sweden
    Posts
    1

    Re: Volumetric Fog

    Why not throw in like a volumetric fog material (or something like that) and you can render the fog using a texture as an opaque source. This is what most 3D rendering programs do, might be very slow, but it sure looks really nice, instead of having this constant fog all over.
    Daniel Netz, Sentinel Design

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •