RGB color mode causes problem
Status: Alpha
Brought to you by:
shaiay
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
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
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