pfColorTable :strange effects .....

New Message Reply Date view Thread view Subject view Author view

Slimane Merzouk (Slimane.Merzouk++at++insightvision.com)
Mon, 31 May 1999 14:26:47 +0200


Hi pfFolks,
I am having some problems when using the pfColorTable.
What I would like to do is to rapidly change the
color of the geometry using the color lookup mechanism
provided by the pfColorTable (which I do believe use
the underlying glColorTable capabilities!!).
However, when applying the pfColorTable, it looks like
that some geometries are colored with extra colors that
do not come from the pfColorTable!! For example if I create
a two entry pfColorTable, let's say red and blue, then for
some geometries there going to be white or yellow even though
such colors were not defined in the color table !!.
Also, I am not sure how the pfColorTable actually
maps an RGBA color into an entry within the color table,
may be the mapping looks like this one :

        R --> R [ColorTable[R*(tableSize - 1)]] + biasR
        G --> G [ColorTable[G*(tableSize - 1)]] + biasG
        B --> B [ColorTable[B*(tableSize - 1)]] + biasB
        A --> A [ColorTable[A*(tableSize - 1)]] + biasA
tableSize : size of the pfColorTable
ColorTable : pfColorTable array of RGBA colors.

        Any hints !!

        Thanks lot.

        Slimane Merzouk

*******************************************************
e-mail : slimane++at++insightvision.com
*******************************************************


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon May 31 1999 - 05:29:22 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.