PDA

View Full Version : glColorTable



LLM
05-24-2006, 09:40 PM
I create a color table with the functiong glColorTable(), but how to use the color table
I created.

For example, when I Draw a triangle,
how can I use the color table to render it?

dorbie
06-03-2006, 01:24 AM
What are you trying to do?

Color Tables are for pixel LUTs in imaging.

There is also other functionality for color index rendering but I'd recomment (very firmly) that you stick with RGB rendering.

LLM
06-03-2006, 06:19 AM
Use 3D texture to rendering a volume and use 1D texture to control the 3D texture's alpha value.
Create 3D texture need much more time.So I want to find a way to do these in real-time mode
That is what I want to do.

Now I know that I can't use glColorTableEXT.
Becouse my graphic card do not support it.

I want to use texture combiner.Could you tell me the better method?