Results 1 to 4 of 4

Thread: problems with radial fog

  1. #1
    Senior Member Regular Contributor
    Join Date
    Feb 2000
    Location
    milano, italy
    Posts
    282

    problems with radial fog

    i'm testing approaches to landscape modeling/rendering for a planetary rendering engine.
    i made a landscape testbed that uses perlin fractal noise for heightmapping and it works ok.

    a texture is tiled on the landscape to give a better impression of the terrain below.

    the testbed renders a patch at a time and as you move and some of the patch verts are invalidated, they are resampled from the fractal: new polygons appear at the horizon.

    to avoid this, i've first implemented opengl linear fog, and it worked good, but due to the nature of the algo, it has the unpleasant appearance of landscape appearing/desappearing as the camera rotates.
    also it hides too much polygons in the best case.

    so i implemented a custom linear radial fog algo, wich it works, but have the problem that it don't work good with textures.

    the texture completely in fog don't disappear, but it is modulated with the poly color.

    it has to work this way, since to fog a polygon i have to assign a vertex color.

    the question is: is there any extension wich let me assign a fog blend factor to a vertex, and let the opengl system fog the primitives correctly, even with textures?
    or maybe some multiple pass approach?

    Dolo/\/\ightY
    Dolo/\/\ightY

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

    Re: problems with radial fog

    Hello

    There is an extention called EXT_fog_coord, maybe that is what you are looking for.
    http://www.opengl.org/Documentation/.../fog_coord.txt

    Bob

  3. #3
    Senior Member Regular Contributor
    Join Date
    Feb 2000
    Posts
    154

    Re: problems with radial fog

    Or you can try a 2nd pass, blend with polygons that are fogged with your own radial fog.. somehow.

  4. #4
    Senior Member Regular Contributor
    Join Date
    Feb 2000
    Location
    milano, italy
    Posts
    282

    Re: problems with radial fog

    well no, since the NV10 supports EXT_fog_coord, i'm going to use that extension.

    not so opengl-related, but have some of you implemented some versions of fractal noise?
    i'd like to compare my version with others...

    Dolo/\/\ightY
    Dolo/\/\ightY

Similar Threads

  1. Radial blur methods...
    By in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 09-10-2004, 02:46 AM
  2. radial fog...anything new ?
    By gemelli_d in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 08-18-2004, 12:43 AM
  3. a big problem with radial blur
    By airseb in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 06-23-2003, 11:12 AM
  4. about how to program radial blur
    By airseb in forum OpenGL: Advanced Coding
    Replies: 4
    Last Post: 06-18-2003, 07:21 PM
  5. Radial fog on Radeon?
    By tobbe_t2 in forum OpenGL: Advanced Coding
    Replies: 3
    Last Post: 05-30-2001, 10:34 PM

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