PDA

View Full Version : glut colormap



Ben Chern
04-08-2008, 07:32 PM
hello, everybody!
Is there anyone who has such colormap that the colors are continuous?
Another problem is that, when I use colormap with glutSetColor() and glIndexi(), there is GLUT:fatal error:pixel format with necessary capabilities not found. But when I use auxSetOneColor() , the program can run without error.

Relic
04-09-2008, 05:57 AM
Color indexed pixelformats have been unsupported by most OpenGL implementations since years. That should be the reason for your "GLUT:fatal error:pixel format with necessary capabilities not found" message.

The only one which still offers such pixelformats under Windows is the OpenGL 1.1 software implementation from Microsoft.

On RGBA pixelformats the glIndex calls do not have any effect.


Is there anyone who has such colormap that the colors are continuous?
What do you mean with continuous? Like in a color wheel?
You could use some of these conversions to get there: http://en.wikipedia.org/wiki/HSV_color_space

Ben Chern
04-11-2008, 03:44 AM
Hi, Relic,
Thank you very much!
But why did the program run well when I used auxSetOneColor() ?
It seems that I can use color indexed pirxelformat.