Menu

#78 RGB color mode causes problem

open
nobody
None
1
2007-01-05
2006-10-25
Kai Habel
No

While trying to improve the current surface code, I
noticed the following problem.
I don't know if this known, but I think the usage of
OpenGLs RGBA color mode causes problems during
interpolation. If OpenGL interpolates a facet it uses
the RGB color space to go directly from e.g. 'red' to
'blue'. But, if we have colormap like 'jet' and we
interpolate from 'red' to 'blue' we should pass
'yellow' 'green' 'cyan'.
Unfortunately OpenGL doesnt support colomaps (or color
indicies), this is to be handled by the window toolkit.
Before looking deeper into this - maybe the are some
suggestions how to handle this?

Kai

Discussion

  • Shai Ayal

    Shai Ayal - 2006-10-25

    Logged In: YES
    user_id=136223

    Hmm ...

    1. I think OpenGL does support indexing
    2. I'm not sure how much work it will take to convert to
    indexed mode
    3. Doing this w/o OpenGL, i.e. doing indexing in octplot is
    also quite a lot of work

    to sum it up -- it's a lot of work :)
    Shai

     
  • Kai Habel

    Kai Habel - 2006-11-02

    Logged In: YES
    user_id=96081

    Yes indeed OpenGL does support indexing, but the colormap is
    controlled by the window toolkit. This complicates the usage
    of colormaps in OpenGL.
    I think this is not that important for the moment, and maybe
    someone else - more experienced than myself - steps in an
    starts implementing this ;-)

    Kai

     
  • Shai Ayal

    Shai Ayal - 2007-01-05
    • priority: 5 --> 1
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.