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 10 of 17

Thread: 3D field visualization

Hybrid View

  1. #1
    Junior Member Newbie
    Join Date
    Aug 2010
    Location
    Russia
    Posts
    12

    3D field visualization

    How I can implement this 3D visualization using OpenGL?
    This is something like fog colored by temperature.



  2. #2
    Junior Member Regular Contributor
    Join Date
    Dec 2009
    Posts
    105

    Re: 3D field visualization

    Build a texture containing the heat colours and overlay it using GL_BLEND and a quadrilateral that covers the entire screen. You can either blur it to make it nice and foggy or rely on GL's bilinear interpolation to make a not-quite-so-nice blur.

  3. #3
    Junior Member Newbie
    Join Date
    Aug 2010
    Location
    Russia
    Posts
    12

    Re: 3D field visualization

    Thank you very much.

    Quote Originally Posted by NeXEkho
    Build a texture containing the heat colours
    Can you explain a bit detailed - what kind of texture I should build (3D?) and how I can do it. May be you can advice a good example.

  4. #4
    Senior Member OpenGL Guru Dark Photon's Avatar
    Join Date
    Oct 2004
    Location
    Druidia
    Posts
    2,891

    Re: 3D field visualization

    Quote Originally Posted by Clash
    Quote Originally Posted by NeXEkho
    Build a texture containing the heat colours
    Can you explain a bit detailed - what kind of texture I should build
    Take a look at the legends here:

    * http://www.opendx.org/inaction/datam.../uk-insure.jpg
    * http://www.opendx.org/inaction/datam...l/walmart5.jpg
    * http://www.opendx.org/inaction/medic.../eyeCornea.jpg
    * http://www.opendx.org/inaction/datam.../neuralnet.jpg

    OpenDX contains one of these. VTK probably as well (both open source). Other commercial packages such as AVS no doubt too.

  5. #5
    Junior Member Newbie
    Join Date
    Aug 2010
    Location
    Russia
    Posts
    12

    Re: 3D field visualization

    Quote Originally Posted by Dark Photon
    Take a look at the legends here:
    Thank you, but I did not understand what you suggested.
    Are you talking about using some library? May be this is a good way, but I already have program that do not use any graphic library and I just search a recipe to do 3D filed visualization like showed on example picture.

  6. #6
    Senior Member OpenGL Guru Dark Photon's Avatar
    Join Date
    Oct 2004
    Location
    Druidia
    Posts
    2,891

    Re: 3D field visualization

    Quote Originally Posted by Clash
    Thank you, but I did not understand what you suggested.
    Are you talking about using some library?
    No. You can see the color order in the legend, right? Slap those in a texture, turn on GL_LINEAR interpolation, and use that as your value-to-temperature-color lookup table.

Posting Permissions

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