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 3 of 3

Thread: glFogCoordfEXT / Quadrics

  1. #1
    Junior Member Newbie
    Join Date
    Aug 2001
    Posts
    6

    glFogCoordfEXT / Quadrics

    Is it possible to bind volumetric fog to any of the native openGL quadrics? You can bind it to vertices in normal polys, but can you do the same with Spheres, disks etc?

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Oct 2000
    Location
    Fargo, ND
    Posts
    1,755

    Re: glFogCoordfEXT / Quadrics

    Quadrics are actually not part of the OpenGL library, they are part of the GLU library.

    That being said, I haven't worked with the GLU callback stuff, so I'm not sure it's possible to use that to set the fog coords.

    Obviously, if you wanted to use the same fog coord for the whole object, you'd just set the fog coord and then draw the quadric. I'm assuming that's not what you're looking for, though.
    Deiussum
    Software Engineer and OpenGL enthusiast

  3. #3
    Junior Member Newbie
    Join Date
    Aug 2001
    Posts
    6

    Re: glFogCoordfEXT / Quadrics

    Well, *ahem*, in an example of extreme dodgy coding, Im looking for a "hack" method of simulating "atmospheric glow" on a GL quadric. It doesn't have to be accurate or overly attractive, just something to demonstrate the effect.

    I was guessing that binding one call of glFogCoordfEXT before calling the function to draw the quadric - not near my work terminal, so can't do trial and error for now.

Posting Permissions

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